Documentation ¶
Index ¶
- type ModelVerifier
- func (v *ModelVerifier) ClientConnectionExists(connectionID, srcID, dstID, remoteNSM, nse, forwarder string) *ModelVerifier
- func (v *ModelVerifier) ClientConnectionNotExists(connectionID string) *ModelVerifier
- func (v *ModelVerifier) EndpointExists(name, nsm string) *ModelVerifier
- func (v *ModelVerifier) EndpointNotExists(name string) *ModelVerifier
- func (v *ModelVerifier) ForwarderExists(name string) *ModelVerifier
- func (v *ModelVerifier) ForwarderNotExists(name string) *ModelVerifier
- func (v *ModelVerifier) Verify(t *testing.T)
- type Verifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelVerifier ¶
type ModelVerifier struct {
// contains filtered or unexported fields
}
ModelVerifier is a Verifier to check model.Model state
func NewModelVerifier ¶
func NewModelVerifier(model model.Model) *ModelVerifier
NewModelVerifier is a constructor for ModelVerifier
func (*ModelVerifier) ClientConnectionExists ¶
func (v *ModelVerifier) ClientConnectionExists(connectionID, srcID, dstID, remoteNSM, nse, forwarder string) *ModelVerifier
ClientConnectionExists is a builder method to add check if model.ClientConnection with
ConnectionID == connectionID Xcon.Source.Id = srcID Xcon.Destination.Id = dst.ID RemoteNsm.Name = remoteNSM Endpoint.NetworkServiceEndpoint.Name = nse Forwarder.RegisteredName = forwarder
exists in v.model
func (*ModelVerifier) ClientConnectionNotExists ¶
func (v *ModelVerifier) ClientConnectionNotExists(connectionID string) *ModelVerifier
ClientConnectionNotExists is a builder method to add check if model.ClientConnection with
ConnectionID == connectionID
doesn't exist in v.model
func (*ModelVerifier) EndpointExists ¶
func (v *ModelVerifier) EndpointExists(name, nsm string) *ModelVerifier
EndpointExists is a builder method to add check if model.Endpoint with
Endpoint.NetworkServiceEndpoint.Name == name Endpoint.NetworkServiceManager.Name == nsm
exists in v.model
func (*ModelVerifier) EndpointNotExists ¶
func (v *ModelVerifier) EndpointNotExists(name string) *ModelVerifier
EndpointNotExists is a builder method to add check if model.Endpoint with
Endpoint.NetworkServiceEndpoint.Name == name
doesn't exist in v.model
func (*ModelVerifier) ForwarderExists ¶
func (v *ModelVerifier) ForwarderExists(name string) *ModelVerifier
ForwarderExists is a builder method to add check if model.Forwarder with
RegisteredName = name
exists in v.model
func (*ModelVerifier) ForwarderNotExists ¶
func (v *ModelVerifier) ForwarderNotExists(name string) *ModelVerifier
ForwarderNotExists is a builder method to add check if model.Forwarder with
RegisteredName = name
doesn't exist in v.model
func (*ModelVerifier) Verify ¶
func (v *ModelVerifier) Verify(t *testing.T)
Verify invokes all stored checks