Discover Packages
github.com/meta-quick/opax
sdk
test
package
Version:
v0.37.26
Opens a new window with list of versions in this module.
Published: Sep 20, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
MockBundle sets a bundle named file on the test server containing the given
policies.
Ready provides a channel that the server will use to gate readiness. The
caller can provide this channel to prevent the server from becoming ready.
The server will response with HTTP 500 responses until ready. The caller
should close the channel to indicate readiness.
Server provides a mock HTTP server for testing the SDK and integrations.
MustNewServer returns a new Server for test purposes or panics if an error occurs.
NewServer returns a new Server for test purposes.
Stop stops the test server.
URL returns the base URL of the server.
WithTestBundle adds a bundle to the server at the specified endpoint.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.