Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigureRouteOptionsWithFilterExtenstion = e2e.Test{ Name: "RouteOptions.ConfigureRouteOptionsWithFilterExtension", Description: "the RouteOptions will configure fault inject with a filter extension", Test: func(ctx context.Context, installation *e2e.TestInstallation) { extensionFilterRoutingOp := operations.ReversibleOperation{ Do: &operations.BasicOperation{ OpName: fmt.Sprintf("apply-manifest-%s", filepath.Base(filterExtensioManifest)), OpAction: installation.Actions.Kubectl().NewApplyManifestAction(filterExtensioManifest), OpAssertions: []assertions.ClusterAssertion{ installation.Assertions.ObjectsExist(proxyService, proxyDeployment), installation.Assertions.EphemeralCurlEventuallyResponds( curlPod, []curl.Option{ curl.WithHost(kubeutils.ServiceFQDN(proxyService.ObjectMeta)), curl.WithHostHeader("example.com"), }, expectedFaultInjectionResp), }, }, Undo: &operations.BasicOperation{ OpName: fmt.Sprintf("delete-manifest-%s", filepath.Base(filterExtensioManifest)), OpAction: installation.Actions.Kubectl().NewDeleteManifestAction(filterExtensioManifest), OpAssertion: func(ctx context.Context) { installation.Assertions.ObjectsNotExist(proxyService, proxyDeployment) }, }, } err := installation.Operator.ExecuteReversibleOperations(ctx, extensionFilterRoutingOp) Expect(err).NotTo(HaveOccurred()) }, }
View Source
var ConfigureRouteOptionsWithTargetRef = e2e.Test{ Name: "RouteOptions.ConfigureRouteOptionsWithTargetRef", Description: "the RouteOptions will configure fault inject with a targetRef", Test: func(ctx context.Context, installation *e2e.TestInstallation) { trafficRefRoutingOp := operations.ReversibleOperation{ Do: &operations.BasicOperation{ OpName: fmt.Sprintf("apply-manifest-%s", filepath.Base(targetRefManifest)), OpAction: installation.Actions.Kubectl().NewApplyManifestAction(targetRefManifest), OpAssertions: []assertions.ClusterAssertion{ installation.Assertions.ObjectsExist(proxyService, proxyDeployment), installation.Assertions.EphemeralCurlEventuallyResponds( curlPod, []curl.Option{ curl.WithHost(kubeutils.ServiceFQDN(proxyService.ObjectMeta)), curl.WithHostHeader("example.com"), }, expectedFaultInjectionResp), }, }, Undo: &operations.BasicOperation{ OpName: fmt.Sprintf("delete-manifest-%s", filepath.Base(targetRefManifest)), OpAction: installation.Actions.Kubectl().NewDeleteManifestAction(targetRefManifest), OpAssertion: func(ctx context.Context) { installation.Assertions.ObjectsNotExist(proxyService, proxyDeployment) }, }, } err := installation.Operator.ExecuteReversibleOperations(ctx, trafficRefRoutingOp) Expect(err).NotTo(HaveOccurred()) }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.