Documentation
¶
Index ¶
- type RESTSteps
- func (d *RESTSteps) RegisterRoute(agentID, varNames string) error
- func (d *RESTSteps) RegisterSteps(s *godog.Suite)
- func (d *RESTSteps) SetContext(ctx *context.BDDContext)
- func (d *RESTSteps) UnregisterRoute(agentID, varNames string) error
- func (d *RESTSteps) VerifyConnections(agentID, varNames string) error
- type SDKSteps
- func (d *SDKSteps) ApproveRequest(agentID string, args interface{})
- func (d *SDKSteps) CreateRouteClient(agentID string) error
- func (d *SDKSteps) GetEventReceived(msgID string, timeout time.Duration) (*service.DIDCommAction, error)
- func (d *SDKSteps) GetRoutingConfig(agent, connectionID string, timeout time.Duration) (*routesvc.Config, error)
- func (d *SDKSteps) RegisterRoute(agentID, varName, routerID string) error
- func (d *SDKSteps) RegisterSteps(s *godog.Suite)
- func (d *SDKSteps) SetContext(ctx *context.BDDContext)
- func (d *SDKSteps) VerifyConnection(agentID, varName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RESTSteps ¶
type RESTSteps struct {
// contains filtered or unexported fields
}
RESTSteps is steps for route using REST APIs.
func NewRouteRESTSteps ¶
func NewRouteRESTSteps() *RESTSteps
NewRouteRESTSteps return steps for route using REST APIs.
func (*RESTSteps) RegisterRoute ¶
RegisterRoute registers the router for the agent.
func (*RESTSteps) RegisterSteps ¶
RegisterSteps registers router steps.
func (*RESTSteps) SetContext ¶
func (d *RESTSteps) SetContext(ctx *context.BDDContext)
SetContext is called before every scenario is run with a fresh new context.
func (*RESTSteps) UnregisterRoute ¶
UnregisterRoute unregisters the router.
func (*RESTSteps) VerifyConnections ¶
VerifyConnections verifies the router connections id has been set to the provided connections id.
type SDKSteps ¶
type SDKSteps struct {
// contains filtered or unexported fields
}
SDKSteps is steps for route using client SDK.
func NewRouteSDKSteps ¶
func NewRouteSDKSteps() *SDKSteps
NewRouteSDKSteps return steps for router using client SDK.
func (*SDKSteps) ApproveRequest ¶
ApproveRequest approves a routing protocol request with the given args.
func (*SDKSteps) CreateRouteClient ¶
CreateRouteClient creates route client.
func (*SDKSteps) GetEventReceived ¶
func (d *SDKSteps) GetEventReceived(msgID string, timeout time.Duration) (*service.DIDCommAction, error)
GetEventReceived blocks until a routing event for the given message ID is found or until the timeout is reached.
func (*SDKSteps) GetRoutingConfig ¶
func (d *SDKSteps) GetRoutingConfig(agent, connectionID string, timeout time.Duration) (*routesvc.Config, error)
GetRoutingConfig blocks until it fetches the agent's routing configuration or until the timeout is reached.
func (*SDKSteps) RegisterRoute ¶
RegisterRoute registers the router for the agent.
func (*SDKSteps) RegisterSteps ¶
RegisterSteps registers router steps.
func (*SDKSteps) SetContext ¶
func (d *SDKSteps) SetContext(ctx *context.BDDContext)
SetContext is called before every scenario is run with a fresh new context.
func (*SDKSteps) VerifyConnection ¶
VerifyConnection verifies the router connection id has been set to the provided connection id.