Documentation
¶
Index ¶
- Variables
- func DerefString(s *string) string
- func ExecuteIntegrationTestMiddleware() error
- func ExecuteIntegrationTestsConnector(t *testing.T) error
- func GetAgentConfig() *config.ConnectorConfig
- type TestConfig
- type TestSubscriptionContainer
- func (c *TestSubscriptionContainer) GetAPISpec() string
- func (c *TestSubscriptionContainer) GetCatalogItemName() string
- func (c *TestSubscriptionContainer) GetEnvironmentName() string
- func (c *TestSubscriptionContainer) GetExternalAPIID() string
- func (c *TestSubscriptionContainer) GetExternalAPIName() string
- func (c *TestSubscriptionContainer) GetRevisionId() string
- func (c *TestSubscriptionContainer) GetRevisionName() string
- func (c *TestSubscriptionContainer) GetServiceAttributes() map[string]string
- func (c *TestSubscriptionContainer) GetServiceInstanceMetadataScopeName() string
- func (c *TestSubscriptionContainer) GetServiceInstanceSpecEndpoints() []middleware.AxwayEndpoint
- func (c *TestSubscriptionContainer) GetServiceResourceMetaAttributes() map[string]string
- func (c *TestSubscriptionContainer) GetSolaceAsyncAPIAppInternalID() string
- func (c *TestSubscriptionContainer) GetSolaceAsyncAPIHint() string
- func (c *TestSubscriptionContainer) GetSubscriberEmailAddress() string
- func (c *TestSubscriptionContainer) GetSubscriberUserName() string
- func (c *TestSubscriptionContainer) GetSubscriptionAPIServiceName() string
- func (c *TestSubscriptionContainer) GetSubscriptionCatalogItemID() string
- func (c *TestSubscriptionContainer) GetSubscriptionCredentials() *connector.SolaceCredentialsDto
- func (c *TestSubscriptionContainer) GetSubscriptionID() string
- func (c *TestSubscriptionContainer) GetSubscriptionName() string
- func (c *TestSubscriptionContainer) GetSubscriptionOwningTeamID() string
- func (c *TestSubscriptionContainer) GetSubscriptionPropertyValue(key string) string
- func (c *TestSubscriptionContainer) IsEnvironmentDefined() bool
- func (c *TestSubscriptionContainer) IsExternalAPIIDDefined() bool
- func (c *TestSubscriptionContainer) IsExternalAPINameDefined() bool
- func (c *TestSubscriptionContainer) LogText() string
- func (c *TestSubscriptionContainer) SetSolaceAsyncAPIAppInternalID(id string)
- func (c *TestSubscriptionContainer) SetSolaceAsyncAPIHint(hint string)
- func (c *TestSubscriptionContainer) SetSubscriptionCredentials(credentials *connector.SolaceCredentialsDto)
- type TestSubscriptionMiddleware
Constants ¶
This section is empty.
Variables ¶
var RootCmd cmd.AgentRootCmd
RootCmd - Agent root command
Functions ¶
func DerefString ¶
DerefString dereferences pointer, return empty string for NIL
func ExecuteIntegrationTestMiddleware ¶
func ExecuteIntegrationTestMiddleware() error
ExecuteIntegrationTestMiddleware executes Middleware Integration Tests
func ExecuteIntegrationTestsConnector ¶
ExecuteIntegrationTestsConnector executes tests
Types ¶
type TestConfig ¶
type TestConfig struct { Org string `config:"org"` OrgEnvName string `config:"orgEnvName"` ServiceID string `config:"serviceId"` TeamName string `config:"teamName"` TeamAppName string `config:"teamAppName"` OrgToken string `config:"orgToken"` APIName string `config:"apiName"` APISpec string `config:"apiSpec"` APIProductName string `config:"apiProductName"` Cleanup bool `config:"cleanup"` ConnectorOrgMapping string `config:"orgMapping"` }
TestConfig - represents the config for middleware
type TestSubscriptionContainer ¶
type TestSubscriptionContainer struct {
// contains filtered or unexported fields
}
TestSubscriptionContainer - mocks Axway Subscription Data
func (*TestSubscriptionContainer) GetAPISpec ¶
func (c *TestSubscriptionContainer) GetAPISpec() string
GetAPISpec - Facade ti get API Spec (AsyncAPI spec)
func (*TestSubscriptionContainer) GetCatalogItemName ¶
func (c *TestSubscriptionContainer) GetCatalogItemName() string
GetCatalogItemName getter
func (*TestSubscriptionContainer) GetEnvironmentName ¶
func (c *TestSubscriptionContainer) GetEnvironmentName() string
GetEnvironmentName - Facade to get environment name (Service Instance Scope Name)
func (*TestSubscriptionContainer) GetExternalAPIID ¶
func (c *TestSubscriptionContainer) GetExternalAPIID() string
GetExternalAPIID - Facade to get External API ID
func (*TestSubscriptionContainer) GetExternalAPIName ¶
func (c *TestSubscriptionContainer) GetExternalAPIName() string
GetExternalAPIName - Facade to get External API Name
func (*TestSubscriptionContainer) GetRevisionId ¶ added in v0.0.16
func (c *TestSubscriptionContainer) GetRevisionId() string
func (*TestSubscriptionContainer) GetRevisionName ¶
func (c *TestSubscriptionContainer) GetRevisionName() string
GetRevisionName - Facade to retrieve RevisionName
func (*TestSubscriptionContainer) GetServiceAttributes ¶
func (c *TestSubscriptionContainer) GetServiceAttributes() map[string]string
GetServiceAttributes getter
func (*TestSubscriptionContainer) GetServiceInstanceMetadataScopeName ¶
func (c *TestSubscriptionContainer) GetServiceInstanceMetadataScopeName() string
GetServiceInstanceMetadataScopeName getter
func (*TestSubscriptionContainer) GetServiceInstanceSpecEndpoints ¶
func (c *TestSubscriptionContainer) GetServiceInstanceSpecEndpoints() []middleware.AxwayEndpoint
GetServiceInstanceSpecEndpoints getter
func (*TestSubscriptionContainer) GetServiceResourceMetaAttributes ¶ added in v0.0.20
func (c *TestSubscriptionContainer) GetServiceResourceMetaAttributes() map[string]string
GetServiceResourceMetaAttributes - provides service attributes
func (*TestSubscriptionContainer) GetSolaceAsyncAPIAppInternalID ¶
func (c *TestSubscriptionContainer) GetSolaceAsyncAPIAppInternalID() string
GetSolaceAsyncAPIAppInternalID getter
func (*TestSubscriptionContainer) GetSolaceAsyncAPIHint ¶ added in v0.0.20
func (c *TestSubscriptionContainer) GetSolaceAsyncAPIHint() string
GetSolaceAsyncAPIHint - provides AsyncAPIHint
func (*TestSubscriptionContainer) GetSubscriberEmailAddress ¶
func (c *TestSubscriptionContainer) GetSubscriberEmailAddress() string
GetSubscriberEmailAddress - Returns Email
func (*TestSubscriptionContainer) GetSubscriberUserName ¶
func (c *TestSubscriptionContainer) GetSubscriberUserName() string
GetSubscriberUserName - Returns Username
func (*TestSubscriptionContainer) GetSubscriptionAPIServiceName ¶
func (c *TestSubscriptionContainer) GetSubscriptionAPIServiceName() string
GetSubscriptionAPIServiceName getter
func (*TestSubscriptionContainer) GetSubscriptionCatalogItemID ¶
func (c *TestSubscriptionContainer) GetSubscriptionCatalogItemID() string
GetSubscriptionCatalogItemID getter
func (*TestSubscriptionContainer) GetSubscriptionCredentials ¶
func (c *TestSubscriptionContainer) GetSubscriptionCredentials() *connector.SolaceCredentialsDto
GetSubscriptionCredentials getter
func (*TestSubscriptionContainer) GetSubscriptionID ¶
func (c *TestSubscriptionContainer) GetSubscriptionID() string
GetSubscriptionID getter
func (*TestSubscriptionContainer) GetSubscriptionName ¶
func (c *TestSubscriptionContainer) GetSubscriptionName() string
GetSubscriptionName getter
func (*TestSubscriptionContainer) GetSubscriptionOwningTeamID ¶
func (c *TestSubscriptionContainer) GetSubscriptionOwningTeamID() string
GetSubscriptionOwningTeamID getter
func (*TestSubscriptionContainer) GetSubscriptionPropertyValue ¶
func (c *TestSubscriptionContainer) GetSubscriptionPropertyValue(key string) string
GetSubscriptionPropertyValue getter
func (*TestSubscriptionContainer) IsEnvironmentDefined ¶
func (c *TestSubscriptionContainer) IsEnvironmentDefined() bool
IsEnvironmentDefined - Facade to check if environment is set in Service Instance
func (*TestSubscriptionContainer) IsExternalAPIIDDefined ¶
func (c *TestSubscriptionContainer) IsExternalAPIIDDefined() bool
IsExternalAPIIDDefined - Facade to check if External API ID is set
func (*TestSubscriptionContainer) IsExternalAPINameDefined ¶
func (c *TestSubscriptionContainer) IsExternalAPINameDefined() bool
IsExternalAPINameDefined - Facade to check if External API Name is set
func (*TestSubscriptionContainer) LogText ¶
func (c *TestSubscriptionContainer) LogText() string
LogText - Extracts Logging Details
func (*TestSubscriptionContainer) SetSolaceAsyncAPIAppInternalID ¶
func (c *TestSubscriptionContainer) SetSolaceAsyncAPIAppInternalID(id string)
SetSolaceAsyncAPIAppInternalID getter
func (*TestSubscriptionContainer) SetSolaceAsyncAPIHint ¶ added in v0.0.20
func (c *TestSubscriptionContainer) SetSolaceAsyncAPIHint(hint string)
SetSolaceAsyncAPIHint - sets AsyncAPIHint
func (*TestSubscriptionContainer) SetSubscriptionCredentials ¶
func (c *TestSubscriptionContainer) SetSubscriptionCredentials(credentials *connector.SolaceCredentialsDto)
SetSubscriptionCredentials getter
type TestSubscriptionMiddleware ¶
type TestSubscriptionMiddleware struct { AxSub middleware.AxwaySubscription // contains filtered or unexported fields }
TestSubscriptionMiddleware middleware