From f732342a2a3dcd5f3eab6f1de4ec094c49130471 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 27 Oct 2023 10:21:11 +0300 Subject: [PATCH] test/e2e: improved test logging --- test/e2e/node_feature_discovery_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/e2e/node_feature_discovery_test.go b/test/e2e/node_feature_discovery_test.go index 396b378eaa..169cfd0d83 100644 --- a/test/e2e/node_feature_discovery_test.go +++ b/test/e2e/node_feature_discovery_test.go @@ -657,7 +657,7 @@ var _ = SIGDescribe("NFD master and worker", func() { testpod.SpecWithTolerations(testTolerations), } }) - It("custom labels from the NodeFeatureRule rules should be created", func(ctx context.Context) { + It("custom features from the NodeFeatureRule rules should be created", func(ctx context.Context) { nodes, err := getNonControlPlaneNodes(ctx, f.ClientSet) Expect(err).NotTo(HaveOccurred()) @@ -766,9 +766,10 @@ core: eventuallyNonControlPlaneNodes(ctx, f.ClientSet).Should(MatchTaints(expectedTaints, nodes)) eventuallyNonControlPlaneNodes(ctx, f.ClientSet).Should(MatchAnnotations(expectedAnnotations, nodes)) - By("Deleting NodeFeatureRule object") + By("Deleting NodeFeatureRule #3") err = nfdClient.NfdV1alpha1().NodeFeatureRules().Delete(ctx, "e2e-test-3", metav1.DeleteOptions{}) Expect(err).NotTo(HaveOccurred()) + By("Verifying taints from NodeFeatureRules #3 were removed") expectedTaints["*"] = []corev1.Taint{} delete(expectedAnnotations["*"], "nfd.node.kubernetes.io/taints") eventuallyNonControlPlaneNodes(ctx, f.ClientSet).Should(MatchTaints(expectedTaints, nodes))