Skip to content

Commit

Permalink
DNM: Run the e2e regression at mutiple nodes in parallel to check sta…
Browse files Browse the repository at this point in the history
…bility

Signed-off-by: Quique Llorente <[email protected]>
  • Loading branch information
qinqon committed Sep 26, 2019
1 parent 6842b13 commit 7d56f18
Show file tree
Hide file tree
Showing 20 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ifdef UNIT_TEST_EXTRA_ARGS
UNIT_TEST_ARGS += $(UNIT_TEST_ARGS)
endif

E2E_TEST_ARGS ?= -test.v -test.timeout=20m -ginkgo.v -ginkgo.slowSpecThreshold=60
E2E_TEST_ARGS ?= -test.v -test.timeout=40m -ginkgo.v -ginkgo.slowSpecThreshold=60
ifdef E2E_TEST_FOCUS
E2E_TEST_ARGS += -ginkgo.focus $(E2E_TEST_FOCUS)
endif
Expand Down
1 change: 1 addition & 0 deletions automation/check-patch.k8s-1.13.3-1.mounts
1 change: 1 addition & 0 deletions automation/check-patch.k8s-1.13.3-1.packages
1 change: 1 addition & 0 deletions automation/check-patch.k8s-1.13.3-1.sh
1 change: 1 addition & 0 deletions automation/check-patch.k8s-1.13.3-2.mounts
1 change: 1 addition & 0 deletions automation/check-patch.k8s-1.13.3-2.packages
1 change: 1 addition & 0 deletions automation/check-patch.k8s-1.13.3-2.sh
1 change: 1 addition & 0 deletions automation/check-patch.k8s-1.13.3-3.mounts
1 change: 1 addition & 0 deletions automation/check-patch.k8s-1.13.3-3.packages
1 change: 1 addition & 0 deletions automation/check-patch.k8s-1.13.3-3.sh
1 change: 1 addition & 0 deletions automation/check-patch.k8s-1.13.3-4.mounts
1 change: 1 addition & 0 deletions automation/check-patch.k8s-1.13.3-4.packages
1 change: 1 addition & 0 deletions automation/check-patch.k8s-1.13.3-4.sh
1 change: 1 addition & 0 deletions automation/check-patch.k8s-1.13.3-5.mounts
1 change: 1 addition & 0 deletions automation/check-patch.k8s-1.13.3-5.packages
1 change: 1 addition & 0 deletions automation/check-patch.k8s-1.13.3-5.sh
2 changes: 1 addition & 1 deletion automation/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ teardown() {
make cluster-down
}

export KUBEVIRT_PROVIDER=$TARGET
export KUBEVIRT_PROVIDER=$(echo $TARGET| sed "s/3-.*/3/")

# Make sure that the VM is properly shut down on exit
trap teardown EXIT SIGINT SIGTERM SIGSTOP
Expand Down
5 changes: 5 additions & 0 deletions stdci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
sub-stages:
- k8s-1.13.3
- k8s-1.13.3-1
- k8s-1.13.3-2
- k8s-1.13.3-3
- k8s-1.13.3-4
- k8s-1.13.3-5
- os-3.11.0

runtime_requirements:
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/default_bridged_network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,6 @@ func waitForNodesReady() {
for _, node := range nodes {
Eventually(func() (corev1.ConditionStatus, error) {
return nodeReadyConditionStatus(node)
}, 60*time.Second, 1*time.Second).Should(Equal(corev1.ConditionTrue))
}, 180*time.Second, 1*time.Second).Should(Equal(corev1.ConditionTrue))
}
}
6 changes: 6 additions & 0 deletions test/e2e/nns_conditions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ var _ = Describe("NodeNetworkStateCondition", func() {
BeforeEach(func() {
updateDesiredState(invalidConfig)
})
AfterEach(func() {
updateDesiredState(br1Absent)
for _, node := range nodes {
interfacesNameForNode(node).ShouldNot(ContainElement("br1"))
}
})
It("should have Failing ConditionType set to true", func() {
for _, node := range nodes {
checkCondition(node, nmstatev1alpha1.NodeNetworkStateConditionFailing).Should(
Expand Down

0 comments on commit 7d56f18

Please sign in to comment.