Documentation ¶
Index ¶
- Constants
- type AnyValue
- type EventAPIAccessChecker
- type K8sResourceChecker
- func (c *K8sResourceChecker) AssertAPIResources(t *testing.T, applicationName string, compassAPIs ...*graphql.APIDefinition)
- func (c *K8sResourceChecker) AssertAPIResourcesDeleted(t *testing.T, applicationName, apiId string)
- func (c *K8sResourceChecker) AssertAppResourcesDeleted(t *testing.T, applicationName string)
- func (c *K8sResourceChecker) AssertEventAPIResources(t *testing.T, applicationName string, ...)
- func (c *K8sResourceChecker) AssertResourcesForApp(t *testing.T, application compass.Application)
- type Labels
- type ProxyAPIAccessChecker
- func (c *ProxyAPIAccessChecker) AssertAPIAccess(t *testing.T, applicationName string, apis ...*graphql.APIDefinition)
- func (c *ProxyAPIAccessChecker) CallAccessService(t *testing.T, applicationName, apiId, path string) *http.Response
- func (c *ProxyAPIAccessChecker) GetPathBasedOnAuth(t *testing.T, auth *graphql.Auth) string
- type PublishRequest
- type PublishResponse
- type ServiceData
Constants ¶
View Source
const ( SpecAPIType = "API" SpecEventsType = "Events" CredentialsOAuthType = "OAuth" CredentialsBasicType = "Basic" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventAPIAccessChecker ¶
type EventAPIAccessChecker struct {
// contains filtered or unexported fields
}
func NewEventAPIAccessChecker ¶
func NewEventAPIAccessChecker(eventsURL string, directorClient *compass.Client, skipTLSVerify bool) *EventAPIAccessChecker
func (*EventAPIAccessChecker) AssertEventAPIAccess ¶
func (c *EventAPIAccessChecker) AssertEventAPIAccess(t *testing.T, application compass.Application, certificate tls.Certificate)
func (*EventAPIAccessChecker) SendEvent ¶
func (c *EventAPIAccessChecker) SendEvent(t *testing.T, application compass.Application, certificate tls.Certificate) (*http.Response, error)
type K8sResourceChecker ¶
type K8sResourceChecker struct {
// contains filtered or unexported fields
}
func NewK8sResourceChecker ¶
func NewK8sResourceChecker(serviceClient v1.ServiceInterface, secretClient v1.SecretInterface, appClient v1alpha1.ApplicationInterface, nameResolver *applications.NameResolver, istioClient istioclient.Interface, clusterAssetGroupClient dynamic.ResourceInterface, integrationNamespace string) *K8sResourceChecker
func (*K8sResourceChecker) AssertAPIResources ¶
func (c *K8sResourceChecker) AssertAPIResources(t *testing.T, applicationName string, compassAPIs ...*graphql.APIDefinition)
func (*K8sResourceChecker) AssertAPIResourcesDeleted ¶
func (c *K8sResourceChecker) AssertAPIResourcesDeleted(t *testing.T, applicationName, apiId string)
func (*K8sResourceChecker) AssertAppResourcesDeleted ¶
func (c *K8sResourceChecker) AssertAppResourcesDeleted(t *testing.T, applicationName string)
func (*K8sResourceChecker) AssertEventAPIResources ¶
func (c *K8sResourceChecker) AssertEventAPIResources(t *testing.T, applicationName string, compassEventAPIs ...*graphql.EventDefinition)
func (*K8sResourceChecker) AssertResourcesForApp ¶
func (c *K8sResourceChecker) AssertResourcesForApp(t *testing.T, application compass.Application)
type ProxyAPIAccessChecker ¶
type ProxyAPIAccessChecker struct {
// contains filtered or unexported fields
}
func NewAPIAccessChecker ¶
func NewAPIAccessChecker(nameResolver *applications.NameResolver) *ProxyAPIAccessChecker
func (*ProxyAPIAccessChecker) AssertAPIAccess ¶
func (c *ProxyAPIAccessChecker) AssertAPIAccess(t *testing.T, applicationName string, apis ...*graphql.APIDefinition)
func (*ProxyAPIAccessChecker) CallAccessService ¶
func (*ProxyAPIAccessChecker) GetPathBasedOnAuth ¶
type PublishRequest ¶
type PublishResponse ¶
Click to show internal directories.
Click to hide internal directories.