Skip to content

Commit

Permalink
unit test: should not add requirement if the corresponding parameter …
Browse files Browse the repository at this point in the history
…is set to false

Signed-off-by: Itamar Holder <iholder@redhat.com>
  • Loading branch information
iholder101 committed May 5, 2024
1 parent c22e8c7 commit fbcd7af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/virt-operator/resource/apply/reconcile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,13 @@ var _ = Describe("Apply", func() {

Expect(podSpec.Affinity).To(BeNil())
})

It("should not add requirement scheduling to control-plane nodes if the corresponding parameter is set to false", func() {
InjectPlacementMetadata(nil, podSpec, AnyNode)
Expect(podSpec.Affinity).To(BeNil())
})
})

})
})
})

0 comments on commit fbcd7af

Please sign in to comment.