(t *testing.T)
| 35 | ) |
| 36 | |
| 37 | func TestRunSimpleJavaExamples(t *testing.T) { |
| 38 | t.Parallel() |
| 39 | WithNewTestNamespace(t, func(ctx context.Context, g *WithT, ns string) { |
| 40 | t.Run("run java", func(t *testing.T) { |
| 41 | g.Expect(KamelRun(t, ctx, ns, "files/Java.java").Execute()).To(Succeed()) |
| 42 | g.Eventually(IntegrationPodPhase(t, ctx, ns, "java"), TestTimeoutLong).Should(Equal(corev1.PodRunning)) |
| 43 | g.Eventually(IntegrationConditionStatus(t, ctx, ns, "java", v1.IntegrationConditionReady), TestTimeoutShort).Should(Equal(corev1.ConditionTrue)) |
| 44 | g.Eventually(IntegrationLogs(t, ctx, ns, "java"), TestTimeoutShort).Should(ContainSubstring("Magicstring!")) |
| 45 | }) |
| 46 | }) |
| 47 | } |
nothing calls this directly
no test coverage detected