integrationtest

package
v0.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

RootCmd - Agent root command

Functions

func DerefString

func DerefString(s *string) string

DerefString dereferences pointer, return empty string for NIL

func ExecuteIntegrationTestMiddleware

func ExecuteIntegrationTestMiddleware() error

ExecuteIntegrationTestMiddleware executes Middleware Integration Tests

func ExecuteIntegrationTestsConnector

func ExecuteIntegrationTestsConnector(t *testing.T) error

ExecuteIntegrationTestsConnector executes tests

func GetAgentConfig

func GetAgentConfig() *config.ConnectorConfig

GetAgentConfig getter

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL