Skip to content

Commit

Permalink
Update operator_integ_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
swang392 committed Dec 18, 2024
1 parent 5f65327 commit 78a1f61
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/integ/operator_integ_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,20 @@ func verifyNumPodsForSelector(t *testing.T, kubectlOptions *k8s.KubectlOptions,
k8s.WaitUntilNumPodsCreated(t, kubectlOptions, v1.ListOptions{
LabelSelector: selector,
}, numPods, 9, 10*time.Second)

operatorPods, err := k8s.ListPodsE(t, kubectlOptions, metav1.ListOptions{
LabelSelector: selector,
})
require.NoError(t, err)

for _, pod := range operatorPods {
k8s.WaitUntilPodAvailable(t, kubectlOptions, pod.Name, 5, 15*time.Second)

output, err := k8s.RunKubectlAndGetOutputE(t, kubectlOptions, "logs", pod.Name)
// assert.NoError(c, err)
// fmt.Sprintf("Operator pod logs: %s", output)
require.NoError(t, err)
}
}

func currentContext(t *testing.T) string {
Expand Down

0 comments on commit 78a1f61

Please sign in to comment.