mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-18 20:17:04 +00:00
larger time
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ func Exec(cli string) (string, error) {
|
||||
if err != nil {
|
||||
return string(output), err
|
||||
}
|
||||
s := session.Wait(30 * time.Second)
|
||||
s := session.Wait(1200 * time.Second)
|
||||
return string(s.Out.Contents()) + string(s.Err.Contents()), nil
|
||||
}
|
||||
|
||||
|
||||
@@ -209,20 +209,15 @@ var (
|
||||
k8sclient, err := newK8sClient()
|
||||
gomega.Expect(err).NotTo(gomega.HaveOccurred())
|
||||
|
||||
cli := fmt.Sprintf("kubectl -n %s get application %s -o yaml", envName, applicationName)
|
||||
output, err := Exec(cli)
|
||||
gomega.Expect(err).NotTo(gomega.HaveOccurred())
|
||||
gomega.Expect(output).To(gomega.ContainSubstring(applicationName))
|
||||
|
||||
ginkgo.By("check AppConfig reconciled ready")
|
||||
gomega.Eventually(func() int {
|
||||
appConfig := &corev1alpha2.ApplicationConfiguration{}
|
||||
_ = k8sclient.Get(ctx.Background(), client.ObjectKey{Name: applicationName, Namespace: "default"}, appConfig)
|
||||
return len(appConfig.Status.Workloads)
|
||||
}, 200*time.Second, 1*time.Second).ShouldNot(gomega.Equal(0))
|
||||
}, 1200*time.Second, 1*time.Second).ShouldNot(gomega.Equal(0))
|
||||
|
||||
cli = fmt.Sprintf("vela status %s", applicationName)
|
||||
output, err = LongTimeExec(cli, 120*time.Second)
|
||||
cli := fmt.Sprintf("vela status %s", applicationName)
|
||||
output, err := LongTimeExec(cli, 120*time.Second)
|
||||
gomega.Expect(err).NotTo(gomega.HaveOccurred())
|
||||
gomega.Expect(output).To(gomega.ContainSubstring("Checking health status"))
|
||||
// TODO(zzxwill) need to check workloadType after app status is refined
|
||||
|
||||
Reference in New Issue
Block a user