assertions

package
v0.0.0-...-4315425 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 28 Imported by: 3

Documentation

Index

Constants

View Source
const (
	SpecAPIType    = "API"
	SpecEventsType = "Events"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AnyValue

type AnyValue interface{}

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(appClient v1alpha1.ApplicationInterface, clusterAssetGroupClient dynamic.ResourceInterface) *K8sResourceChecker

func (*K8sResourceChecker) AssertAPIPackageDeleted

func (c *K8sResourceChecker) AssertAPIPackageDeleted(t *testing.T, logger *testkit.Logger, apiPackage *graphql.PackageExt, applicationName string)

func (*K8sResourceChecker) AssertAPIPackageResources

func (c *K8sResourceChecker) AssertAPIPackageResources(t *testing.T, logger *testkit.Logger, apiPackage *graphql.PackageExt, applicationName string)

func (*K8sResourceChecker) AssertAppResourcesDeleted

func (c *K8sResourceChecker) AssertAppResourcesDeleted(t *testing.T, applicationName string)

func (*K8sResourceChecker) AssertResourcesForApp

func (c *K8sResourceChecker) AssertResourcesForApp(t *testing.T, logger *testkit.Logger, application compass.Application)

type Labels

type Labels map[string]string

type ProxyAPIAccessChecker

type ProxyAPIAccessChecker struct {
	// contains filtered or unexported fields
}

func NewAPIAccessChecker

func NewAPIAccessChecker(
	namespace string,
	kymaConfigurator *kymaconfig.KymaConfigurator,
) *ProxyAPIAccessChecker

func (*ProxyAPIAccessChecker) AssertAPIAccess

func (c *ProxyAPIAccessChecker) AssertAPIAccess(t *testing.T, log *testkit.Logger, applicationId string, packages []*graphql.PackageExt)

func (*ProxyAPIAccessChecker) CallAPIThroughGateway

func (c *ProxyAPIAccessChecker) CallAPIThroughGateway(t *testing.T, log *testkit.Logger, api *graphql.APIDefinitionExt, secretName, path string) *http.Response

func (*ProxyAPIAccessChecker) GetPathBasedOnAuth

func (c *ProxyAPIAccessChecker) GetPathBasedOnAuth(auth *graphql.Auth) string

type PublishRequest

type PublishRequest struct {
	EventType        string   `json:"event-type,omitempty"`
	EventTypeVersion string   `json:"event-type-version,omitempty"`
	EventID          string   `json:"event-id,omitempty"`
	EventTime        string   `json:"event-time,omitempty"`
	Data             AnyValue `json:"data,omitempty"`
}

type PublishResponse

type PublishResponse struct {
	EventID string `json:"event-id,omitempty"`
	Status  string `json:"status"`
	Reason  string `json:"reason"`
}

type ServiceData

type ServiceData struct {
	ServiceId            string
	DisplayName          string
	ProviderDisplayName  string
	LongDescription      string
	HasAPI               bool
	TargetUrl            string
	OauthUrl             string
	GatewayUrl           string
	AccessLabel          string
	HasEvents            bool
	CSRFTokenEndpointURL string
}

Jump to

Keyboard shortcuts

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