From fe3da3dade5461784248466c8392f3c043a945e5 Mon Sep 17 00:00:00 2001 From: Amit Uniyal Date: Mon, 18 Nov 2024 14:43:00 +0530 Subject: [PATCH] Functional test dbpurge job Nova operator's dbpurge job should assigned a node Depends-on: #894 Closes #OSPRH-10765 --- test/functional/novaconductor_controller_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/functional/novaconductor_controller_test.go b/test/functional/novaconductor_controller_test.go index f4c5a4753..0d726dd05 100644 --- a/test/functional/novaconductor_controller_test.go +++ b/test/functional/novaconductor_controller_test.go @@ -376,6 +376,8 @@ var _ = Describe("NovaConductor controller", func() { Equal(fmt.Sprintf("%d", *conductor.Spec.DBPurge.ArchiveAge))) Expect(GetEnvVarValue(jobEnv, "PURGE_AGE", "")).To( Equal(fmt.Sprintf("%d", *conductor.Spec.DBPurge.PurgeAge))) + nodeSelector := cron.Spec.JobTemplate.Spec.Template.Spec.NodeSelector + Expect(nodeSelector).NotTo(BeNil()) th.ExpectCondition( cell0.ConductorName,