pkalsi97 commented on PR #6408:
URL: https://github.com/apache/camel-k/pull/6408#issuecomment-3649446393

   @squakez I am working on CLI `deploy`, I am facing some trouble in the e2e 
test. 
   
   When running `kamel bind --dont-run-after-build` followed by kamel deploy 
for Pipes, the deploy fails with:
   ```
   kamelets trait configuration failed: ConfigMap 
"pipe-xxx-kamelet-log-sink-template" not found
   ``` 
   
   here are the new test I am running 
   ```go
                t.Run("deploy the pipe", func(t *testing.T) {
                        g.Expect(Kamel(t, ctx, "deploy", name, "-n", 
ns).Execute()).To(Succeed())
                        g.Eventually(IntegrationPhase(t, ctx, ns, name), 
TestTimeoutMedium).Should(Equal(v1.IntegrationPhaseRunning))
                        g.Eventually(PipePhase(t, ctx, ns, name), 
TestTimeoutMedium).Should(Equal(v1.PipePhaseReady))
                        g.Eventually(Deployment(t, ctx, ns, 
name)).ShouldNot(BeNil())
                        g.Eventually(IntegrationPodPhase(t, ctx, ns, name), 
TestTimeoutMedium).Should(Equal(corev1.PodRunning))
                        g.Eventually(IntegrationConditionStatus(t, ctx, ns, 
name, v1.IntegrationConditionReady), TestTimeoutMedium).
                                Should(Equal(corev1.ConditionTrue))
                        g.Eventually(IntegrationLogs(t, ctx, ns, name), 
TestTimeoutMedium).Should(ContainSubstring("HelloPipe"))
                })
                t.Run("undeploy the pipe", func(t *testing.T) {
                        g.Expect(Kamel(t, ctx, "undeploy", name, "-n", 
ns).Execute()).To(Succeed())
                        g.Eventually(IntegrationPhase(t, ctx, ns, name), 
TestTimeoutMedium).Should(Equal(v1.IntegrationPhaseBuildComplete))
                        g.Eventually(PipePhase(t, ctx, ns, name), 
TestTimeoutMedium).Should(Equal(v1.PipePhaseBuildComplete))
                        g.Eventually(IntegrationPodsNumbers(t, ctx, ns, 
name)).Should(Equal(ptr.To(int32(0))))
                        g.Eventually(Deployment(t, ctx, ns, 
name)).Should(BeNil())
                })
   ``` 
   
   I'll look into this, I am not sure how much time it will take. do the test 
look good to you?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to