Skip to content

Commit

Permalink
e2e: ensure correct NRT data in pod running tests
Browse files Browse the repository at this point in the history
make sure the NRT data looks correct before attempting
to run a pod which consumes it.

Signed-off-by: Francesco Romani <[email protected]>
  • Loading branch information
ffromani committed Mar 5, 2024
1 parent 434d685 commit 5fa216b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/e2e/manifests.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ var _ = ginkgo.Describe("[ManifestFlow] Deployer rendering", func() {
ginkgo.Skip("skipping the pod check - not enough resources")
}

expectNodeResourceTopologyData()

testNs := &corev1.Namespace{
ObjectMeta: metav1.ObjectMeta{
GenerateName: "tas-test-",
Expand Down
4 changes: 4 additions & 0 deletions test/e2e/positive.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ var _ = ginkgo.Describe("[PositiveFlow] Deployer execution", func() {
ginkgo.Fail("no worker nodes found in the cluster")
}

expectNodeResourceTopologyData()

// min 1 reserved + min 1 allocatable = 2
nodes, err := e2enodes.FilterNodesWithEnoughCores(workerNodes, "2")
gomega.Expect(err).ToNot(gomega.HaveOccurred())
Expand Down Expand Up @@ -362,6 +364,8 @@ var _ = ginkgo.Describe("[PositiveFlow] Deployer execution", func() {
ginkgo.Skip("skipping the pod check - not enough resources")
}

expectNodeResourceTopologyData()

testNs := &corev1.Namespace{
ObjectMeta: metav1.ObjectMeta{
GenerateName: "tas-test-",
Expand Down

0 comments on commit 5fa216b

Please sign in to comment.