asserters

package
v0.0.0-...-d6d012e Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asserter

type Asserter interface {
	AssertExpectations(t *testing.T, ctx context.Context)
}

type FormationAssignmentsAsserter

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

func NewFormationAssignmentAsserter

func NewFormationAssignmentAsserter(expectations map[string]map[string]fixtures.AssignmentState, expectedAssignmentsCount int, certSecuredGraphQLClient *graphql.Client, tenantID string) *FormationAssignmentsAsserter

func (*FormationAssignmentsAsserter) AssertExpectations

func (a *FormationAssignmentsAsserter) AssertExpectations(t *testing.T, ctx context.Context)

type FormationAssignmentsAsyncAsserter

type FormationAssignmentsAsyncAsserter struct {
	FormationAssignmentsAsserter
	// contains filtered or unexported fields
}

func NewFormationAssignmentAsyncAsserter

func NewFormationAssignmentAsyncAsserter(expectations map[string]map[string]fixtures.AssignmentState, expectedAssignmentsCount int, certSecuredGraphQLClient *graphql.Client, tenantID string) *FormationAssignmentsAsyncAsserter

func (*FormationAssignmentsAsyncAsserter) AssertExpectations

func (a *FormationAssignmentsAsyncAsserter) AssertExpectations(t *testing.T, ctx context.Context)

func (*FormationAssignmentsAsyncAsserter) WithFormationName

func (a *FormationAssignmentsAsyncAsserter) WithFormationName(formationName string) *FormationAssignmentsAsyncAsserter

func (*FormationAssignmentsAsyncAsserter) WithTick

func (*FormationAssignmentsAsyncAsserter) WithTimeout

type FormationAssignmentsAsyncCustomConfigMatcherAsserter

type FormationAssignmentsAsyncCustomConfigMatcherAsserter struct {
	FormationAssignmentsAsyncAsserter
	// contains filtered or unexported fields
}

func NewFormationAssignmentsAsyncCustomConfigMatcherAsserter

func NewFormationAssignmentsAsyncCustomConfigMatcherAsserter(configMatcher func(require.TestingT, *string, *string) bool, expectations map[string]map[string]fixtures.AssignmentState, expectedAssignmentsCount int, certSecuredGraphQLClient *graphql.Client, tenantID string) *FormationAssignmentsAsyncCustomConfigMatcherAsserter

func (*FormationAssignmentsAsyncCustomConfigMatcherAsserter) AssertExpectations

func (*FormationAssignmentsAsyncCustomConfigMatcherAsserter) WithTick

func (*FormationAssignmentsAsyncCustomConfigMatcherAsserter) WithTimeout

type FormationExpectation

type FormationExpectation struct {
	FormationName    string
	AssignmentsCount int
	StatusCondition  gql.FormationStatusCondition
}

type FormationIsDeletedAsserter

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

func NewFormationIsDeletedAsserter

func NewFormationIsDeletedAsserter(certSecuredGraphQLClient *graphql.Client) *FormationIsDeletedAsserter

func (*FormationIsDeletedAsserter) AssertExpectations

func (a *FormationIsDeletedAsserter) AssertExpectations(t *testing.T, ctx context.Context)

func (*FormationIsDeletedAsserter) WithFormationName

func (a *FormationIsDeletedAsserter) WithFormationName(formationName string) *FormationIsDeletedAsserter

func (*FormationIsDeletedAsserter) WithTenantID

func (*FormationIsDeletedAsserter) WithTick

func (*FormationIsDeletedAsserter) WithTimeout

type FormationStatusAsserter

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

func NewFormationStatusAsserter

func NewFormationStatusAsserter(tenant string, certSecuredGraphQLClient *graphql.Client) *FormationStatusAsserter

func (*FormationStatusAsserter) AssertExpectations

func (a *FormationStatusAsserter) AssertExpectations(t *testing.T, ctx context.Context)

func (*FormationStatusAsserter) WithCondition

func (*FormationStatusAsserter) WithErrors

func (*FormationStatusAsserter) WithFormationName

func (a *FormationStatusAsserter) WithFormationName(formationName string) *FormationStatusAsserter

func (*FormationStatusAsserter) WithState

type FormationVisibilityAsserter

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

func NewFormationVisibilityAsserter

func NewFormationVisibilityAsserter(certSecuredGraphQLClient *graphql.Client) *FormationVisibilityAsserter

func (*FormationVisibilityAsserter) AssertExpectations

func (a *FormationVisibilityAsserter) AssertExpectations(t *testing.T, ctx context.Context)

func (*FormationVisibilityAsserter) WithFormationExpectations

func (a *FormationVisibilityAsserter) WithFormationExpectations(expectations []*FormationExpectation) *FormationVisibilityAsserter

func (*FormationVisibilityAsserter) WithParticipantID

func (a *FormationVisibilityAsserter) WithParticipantID(participantID string) *FormationVisibilityAsserter

type LifecycleNotificationsAsserter

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

func NewLifecycleNotificationsAsserter

func NewLifecycleNotificationsAsserter(externalServicesMockMtlsSecuredURL string, gqlClient *graphql.Client, client *http.Client) *LifecycleNotificationsAsserter

func (*LifecycleNotificationsAsserter) AssertExpectations

func (a *LifecycleNotificationsAsserter) AssertExpectations(t *testing.T, ctx context.Context)

func (*LifecycleNotificationsAsserter) WithExpectNotifications

func (a *LifecycleNotificationsAsserter) WithExpectNotifications(expectNotifications bool) *LifecycleNotificationsAsserter

func (*LifecycleNotificationsAsserter) WithFormationName

func (a *LifecycleNotificationsAsserter) WithFormationName(formationName string) *LifecycleNotificationsAsserter

func (*LifecycleNotificationsAsserter) WithOperation

func (*LifecycleNotificationsAsserter) WithParentTenantID

func (a *LifecycleNotificationsAsserter) WithParentTenantID(parentTenantID string) *LifecycleNotificationsAsserter

func (*LifecycleNotificationsAsserter) WithState

func (*LifecycleNotificationsAsserter) WithTenantID

func (*LifecycleNotificationsAsserter) WithTick

func (*LifecycleNotificationsAsserter) WithTimeout

type NotificationsAsserter

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

func NewNotificationsAsserter

func NewNotificationsAsserter(expectedNotificationsCount int, op string, targetObjectID, sourceObjectID string, localTenantID string, appNamespace string, region string, tenant string, tenantParentCustomer string, config string, externalServicesMockMtlsSecuredURL string, client *http.Client) *NotificationsAsserter

func (*NotificationsAsserter) AssertExpectations

func (a *NotificationsAsserter) AssertExpectations(t *testing.T, ctx context.Context)

func (*NotificationsAsserter) WithAssertTrustDetails

func (a *NotificationsAsserter) WithAssertTrustDetails(assertTrustDetails bool) *NotificationsAsserter

func (*NotificationsAsserter) WithExpectedSubjects

func (a *NotificationsAsserter) WithExpectedSubjects(expectedSubjects []string) *NotificationsAsserter

func (*NotificationsAsserter) WithFormationName

func (a *NotificationsAsserter) WithFormationName(formationName string) *NotificationsAsserter

func (*NotificationsAsserter) WithGQLClient

func (a *NotificationsAsserter) WithGQLClient(gqlClient *graphql.Client) *NotificationsAsserter

func (*NotificationsAsserter) WithState

func (a *NotificationsAsserter) WithState(state string) *NotificationsAsserter

func (*NotificationsAsserter) WithUseItemsStruct

func (a *NotificationsAsserter) WithUseItemsStruct(useItemsStruct bool) *NotificationsAsserter

type NotificationsCountAsserter

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

func NewNotificationsCountAsserter

func NewNotificationsCountAsserter(expectedNotificationsCount int, op string, targetObjectID, externalServicesMockMtlsSecuredURL string, client *http.Client) *NotificationsCountAsserter

func (*NotificationsCountAsserter) AssertExpectations

func (nca *NotificationsCountAsserter) AssertExpectations(t *testing.T, _ context.Context)

type NotificationsCountAsyncAsserter

type NotificationsCountAsyncAsserter struct {
	NotificationsCountAsserter
	// contains filtered or unexported fields
}

func NewNotificationsCountAsyncAsserter

func NewNotificationsCountAsyncAsserter(expectedNotificationsCount int, op string, targetObjectID, externalServicesMockMtlsSecuredURL string, client *http.Client) *NotificationsCountAsyncAsserter

func (*NotificationsCountAsyncAsserter) AssertExpectations

func (a *NotificationsCountAsyncAsserter) AssertExpectations(t *testing.T, ctx context.Context)

type UnassignNotificationsAsserter

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

func NewUnassignNotificationsAsserter

func NewUnassignNotificationsAsserter(expectedNotificationsCountForOp int, targetObjectID string, sourceObjectID string, localTenantID string, appNamespace string, region string, tenant string, tenantParentCustomer string, config string, externalServicesMockMtlsSecuredURL string, client *http.Client) *UnassignNotificationsAsserter

func (*UnassignNotificationsAsserter) AssertExpectations

func (a *UnassignNotificationsAsserter) AssertExpectations(t *testing.T, ctx context.Context)

func (*UnassignNotificationsAsserter) WithFormationName

func (a *UnassignNotificationsAsserter) WithFormationName(formationName string) *UnassignNotificationsAsserter

func (*UnassignNotificationsAsserter) WithGQLClient

func (*UnassignNotificationsAsserter) WithState

func (*UnassignNotificationsAsserter) WithUseItemsStruct

func (a *UnassignNotificationsAsserter) WithUseItemsStruct(useItemsStruct bool) *UnassignNotificationsAsserter

Jump to

Keyboard shortcuts

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