INNER CODE UNIT · Go

doKitBuildInNamespace

apache/camel-k · e2e/advanced/build_max_pipelines_test.go:186

func doKitBuildInNamespace(t *testing.T, ctx context.Context, g *WithT, name string, ns string,
	testTimeout time.Duration, options kitOptions, buildPhase v1.BuildPhase, kitPhase v1.IntegrationKitPhase) {
	buildKitArgs := []string{"kit", "create", name, "-n", ns}
	for _, dependency := range options.dependencies {
		buildKitArgs = append(buildKitArgs, "-d", dependency)
	}
	for _, trait := range options.traits {
		buildKitArgs = append(buildKitArgs, "-t", trait)
	}

	g.Expect(Kamel(t, ctx, buildKitArgs...).Execute()).To(Succeed())

	g.Eventually(Build(t, ctx, ns, name), testTimeout).ShouldNot(BeNil())
	if buildPhase != v1.BuildPhaseNone {
		g.Eventually(BuildPhase(t, ctx, ns, name), testTimeout).Should(Equal(buildPhase))
	}
	if kitPhase != v1.IntegrationKitPhaseNone {
		g.Eventually(KitPhase(t, ctx, ns, name), testTimeout).Should(Equal(kitPhase))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…