assertions

package
v0.0.0-...-6d13c91 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAPI

func AssertAPI(t *testing.T, in []*graphql.APIDefinitionInput, actual []*graphql.APIDefinitionExt)

func AssertAppOnlyFormationTemplate

func AssertAppOnlyFormationTemplate(t *testing.T, in *graphql.FormationTemplateInput, actual *graphql.FormationTemplate)

func AssertApplication

func AssertApplication(t *testing.T, in graphql.ApplicationRegisterInput, actualApp graphql.ApplicationExt)

func AssertApplicationPageContainOnlyIDs

func AssertApplicationPageContainOnlyIDs(t *testing.T, page graphql.ApplicationPage, ids ...string)

func AssertApplicationTemplate

func AssertApplicationTemplate(t *testing.T, in graphql.ApplicationTemplateInput, actualApplicationTemplate graphql.ApplicationTemplate)

func AssertApplicationTemplatePlaceholder

func AssertApplicationTemplatePlaceholder(t *testing.T, in []*graphql.PlaceholderDefinitionInput, actualPlaceholders []*graphql.PlaceholderDefinition)

func AssertAuth

func AssertAuth(t *testing.T, in *graphql.AuthInput, actual *graphql.Auth)

func AssertAutomaticScenarioAssignment

func AssertAutomaticScenarioAssignment(t *testing.T, expectedScenario string, expectedSelector *graphql.Label, actual graphql.AutomaticScenarioAssignment)

func AssertAutomaticScenarioAssignments

func AssertAutomaticScenarioAssignments(t *testing.T, expected map[string]*graphql.Label, actual []*graphql.AutomaticScenarioAssignment)

func AssertBundle

func AssertBundle(t *testing.T, in *graphql.BundleCreateInput, actual *graphql.BundleExt)

func AssertBundleCorrelationIds

func AssertBundleCorrelationIds(t *testing.T, respBody string, entitiesMap map[string][]string, expectedNumber int)

func AssertBundleInstanceAuth

func AssertBundleInstanceAuth(t *testing.T, expectedAuth graphql.BundleInstanceAuth, actualAuth graphql.BundleInstanceAuth)

func AssertBundleInstanceAuthInput

func AssertBundleInstanceAuthInput(t *testing.T, expectedAuth graphql.BundleInstanceAuthRequestInput, actualAuth graphql.BundleInstanceAuth)

func AssertBundles

func AssertBundles(t *testing.T, in []*graphql.BundleCreateInput, actual []*graphql.BundleExt)

func AssertDefaultBundleID

func AssertDefaultBundleID(t *testing.T, respBody string, numberOfEntities int, entityDefaultBundleMap, ordAndInternalIDsMappingForBundles map[string]string)

func AssertDocumentationLabels

func AssertDocumentationLabels(t *testing.T, respBody string, expectedLabelKey string, possibleValues []string, expectedNumber int)

func AssertDocuments

func AssertDocuments(t *testing.T, in []*graphql.DocumentInput, actual []*graphql.DocumentExt)

func AssertEntityTypeMappings

func AssertEntityTypeMappings(t *testing.T, respBody string, numberOfEntities int, entityTitlesWithEntityTypeMappingsCountToCheck map[string]int, entityTitlesWithEntityTypeMappingsExpectedContent map[string]string)

func AssertEventsAPI

func AssertEventsAPI(t *testing.T, in []*graphql.EventDefinitionInput, actual []*graphql.EventAPIDefinitionExt)

func AssertFetchRequest

func AssertFetchRequest(t *testing.T, in *graphql.FetchRequestInput, actual *graphql.FetchRequest)

func AssertFormationTemplate

func AssertFormationTemplate(t *testing.T, in *graphql.FormationTemplateInput, actual *graphql.FormationTemplate)

func AssertGraphQLJSON

func AssertGraphQLJSON(t *testing.T, inExpected *graphql.JSON, inActual *graphql.JSON)

func AssertGraphQLJSONSchema

func AssertGraphQLJSONSchema(t *testing.T, inExpected *graphql.JSONSchema, inActual *graphql.JSONSchema)

func AssertHttpHeaders

func AssertHttpHeaders(t *testing.T, in *graphql.HTTPHeadersSerialized, actual *graphql.HTTPHeaders)

func AssertIntegrationSystem

func AssertIntegrationSystem(t *testing.T, in graphql.IntegrationSystemInput, actualIntegrationSystem graphql.IntegrationSystemExt)

func AssertIntegrationSystemNames

func AssertIntegrationSystemNames(t *testing.T, expectedNames []string, actual graphql.IntegrationSystemPageExt)

func AssertKymaRuntime

func AssertKymaRuntime(t *testing.T, in graphql.RuntimeRegisterInput, actualRuntime graphql.RuntimeExt)

func AssertKymaRuntimeWebhooks

func AssertKymaRuntimeWebhooks(t *testing.T, in []*graphql.WebhookInput, actual []graphql.Webhook)

func AssertLabel

func AssertLabel(t *testing.T, actualLabels graphql.Labels, key string, values interface{})

func AssertLabels

func AssertLabels(t *testing.T, in graphql.Labels, actual graphql.Labels, app graphql.ApplicationExt)

TODO: After fixing the 'Labels' scalar turn this back into regular assertion

func AssertMultipleEntitiesFromORDService

func AssertMultipleEntitiesFromORDService(t *testing.T, respBody string, entitiesMap map[string]string, expectedNumber int, descriptionField string)

func AssertNoErrorForOtherThanNotFound

func AssertNoErrorForOtherThanNotFound(t require.TestingT, err error)

func AssertProducts

func AssertProducts(t *testing.T, respBody string, expectedProductsMap map[string]string, expectedNumber int, descriptionField string)

func AssertQueryParams

func AssertQueryParams(t *testing.T, in *graphql.QueryParamsSerialized, actual *graphql.QueryParams)

func AssertRelationBetweenBundleAndEntityFromORDService

func AssertRelationBetweenBundleAndEntityFromORDService(t *testing.T, respBody string, entityType string, numberOfEntitiesForBundle map[string]int, entitiesDataForBundle map[string][]string) bool

func AssertRuntime

func AssertRuntime(t *testing.T, in graphql.RuntimeRegisterInput, actualRuntime graphql.RuntimeExt)

func AssertRuntimeContext

func AssertRuntimeContext(t *testing.T, in *graphql.RuntimeContextInput, actual *graphql.RuntimeContextExt)

func AssertRuntimeLabels

func AssertRuntimeLabels(t *testing.T, inLabels *graphql.Labels, actualLabels graphql.Labels)

func AssertRuntimePageContainOnlyIDs

func AssertRuntimePageContainOnlyIDs(t *testing.T, page graphql.RuntimePageExt, ids ...string)

func AssertRuntimeScenarios

func AssertRuntimeScenarios(t *testing.T, runtimes graphql.RuntimePageExt, expectedScenarios map[string][]interface{})

func AssertScenarios

func AssertScenarios(t *testing.T, actual graphql.Labels, expected []interface{})

func AssertSingleEntityFromORDService

func AssertSingleEntityFromORDService(t *testing.T, respBody string, expectedNumber int, expectedName, expectedDescription, descriptionField string)

func AssertSpecInBundleNotNil

func AssertSpecInBundleNotNil(t *testing.T, bndl graphql.BundleExt)

func AssertSpecsFromORDService

func AssertSpecsFromORDService(t *testing.T, respBody string, expectedNumberOfResources int, resourcesSpecsMap map[string]int, resourceDefinitionsFieldName string) []gjson.Result

func AssertTenants

func AssertTenants(t *testing.T, in []*graphql.Tenant, actual []*graphql.Tenant)

func AssertTombstoneFromORDService

func AssertTombstoneFromORDService(t *testing.T, respBody string, expectedNumber int, expectedIDRegex string)

func AssertUpdateApplicationTemplate

func AssertUpdateApplicationTemplate(t *testing.T, in graphql.ApplicationTemplateUpdateInput, actualApplicationTemplate graphql.ApplicationTemplate)

func AssertUpdatedRuntime

func AssertUpdatedRuntime(t *testing.T, in graphql.RuntimeUpdateInput, actualRuntime graphql.RuntimeExt)

func AssertVendorFromORDService

func AssertVendorFromORDService(t *testing.T, respBody string, expectedNumber int, expectedNumberCreatedByTest int, expectedTitle string)

func AssertVersion

func AssertVersion(t *testing.T, in *graphql.VersionInput, actual *graphql.Version)

func AssertWebhooks

func AssertWebhooks(t *testing.T, in []*graphql.WebhookInput, actual []graphql.Webhook)

func DoesAppExistsInAppPageData

func DoesAppExistsInAppPageData(appID string, page graphql.ApplicationPage) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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