Skip to content

Commit

Permalink
fix(tests): adapt unit tests to latest changes in the api
Browse files Browse the repository at this point in the history
Signed-off-by: Aldo Lacuku <[email protected]>
  • Loading branch information
alacuku committed Feb 17, 2025
1 parent 8033746 commit 72966ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/controllers/falco/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,20 @@ var _ = Describe("Falco Controller", Ordered, func() {
Expect(k8sClient.Delete(ctx, resource)).To(Succeed())
})

It("type should be set to daemonset", func() {
It("type should be set to DaemonSet", func() {
resource := &instancev1alpha1.Falco{}
By("Getting the created resource")
err := k8sClient.Get(ctx, typeNamespacedName, resource)
Expect(err).NotTo(HaveOccurred())
Expect(resource.Spec.Type).To(BeEquivalentTo("daemonset"))
Expect(resource.Spec.Type).To(BeEquivalentTo("DaemonSet"))
})

It("replicas should be set to nil", func() {
It("replicas should be set to 1", func() {
resource := &instancev1alpha1.Falco{}
By("Getting the created resource")
err := k8sClient.Get(ctx, typeNamespacedName, resource)
Expect(err).NotTo(HaveOccurred())
Expect(resource.Spec.Replicas).To(BeNil())
Expect(*resource.Spec.Replicas).To(BeEquivalentTo(1))
})

It("version should be set to empty string", func() {
Expand Down

0 comments on commit 72966ec

Please sign in to comment.