Skip to content

Commit

Permalink
add delete ovn-ic-config cm e2e case
Browse files Browse the repository at this point in the history
Signed-off-by: Changlu Yi <[email protected]>
  • Loading branch information
changluyi committed Jan 23, 2024
1 parent 923dbc4 commit 17dc3a1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/e2e/ovn-ic/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,17 @@ var _ = framework.SerialDescribe("[group:ovn-ic]", func() {
})

framework.ConformanceIt("should be able to communicate between clusters", func() {
ginkgo.By("case 1: Pod in different clusters can be communicated ")
fnCheckPodHTTP()

ginkgo.By("case 2: Delete configmap ovn-ic-config and rebuild it")
execCmd := "kubectl get configmap ovn-ic-config -n kube-system -oyaml > temp-ovn-ic-config.yaml; kubectl delete configmap ovn-ic-config -n kube-system"
_, err := exec.Command("bash", "-c", execCmd).CombinedOutput()
framework.ExpectNoError(err)

execCmd = "kubectl apply -f temp-ovn-ic-config.yaml; rm -f temp-ovn-ic-config.yaml"
_, err = exec.Command("bash", "-c", execCmd).CombinedOutput()
framework.ExpectNoError(err)
fnCheckPodHTTP()
})

Expand Down

0 comments on commit 17dc3a1

Please sign in to comment.