From 5fa216b081ac6ea203ebae8ca5632f86fa756d00 Mon Sep 17 00:00:00 2001 From: Francesco Romani Date: Tue, 5 Mar 2024 17:39:28 +0100 Subject: [PATCH] e2e: ensure correct NRT data in pod running tests make sure the NRT data looks correct before attempting to run a pod which consumes it. Signed-off-by: Francesco Romani --- test/e2e/manifests.go | 2 ++ test/e2e/positive.go | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/test/e2e/manifests.go b/test/e2e/manifests.go index f4eeb004..e35cfbcf 100644 --- a/test/e2e/manifests.go +++ b/test/e2e/manifests.go @@ -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-", diff --git a/test/e2e/positive.go b/test/e2e/positive.go index 8539d0cf..4bd4816f 100644 --- a/test/e2e/positive.go +++ b/test/e2e/positive.go @@ -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()) @@ -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-",