-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functional test for dbpurge job #896
Functional test for dbpurge job #896
Conversation
/retest |
1 similar comment
/retest |
fe3da3d
to
7139863
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test changes is failing need rework
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that the fix is merged to main, let's rebase this PR.
@@ -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()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want to test that the NodeSelector from the NovaConductor Spec is passed to the DB purge job's NodeSelector.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe what Gibi meant was to check if this is the same NodeSelector as in NovaConductorSpec. Please verify and ensure they are identical
7139863
to
a52914c
Compare
Nova operator's dbpurge job should assigned a node Closes #OSPRH-10765
a52914c
to
713fa2f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: auniyal61, mrkisaolamb The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
dfc4cc1
into
openstack-k8s-operators:main
Nova operator's dbpurge job should assigned a node
Closes #OSPRH-10765