Skip to content

Commit fd9006b

Browse files
committed
add: patch status test
1 parent 18763c2 commit fd9006b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/client/client_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,12 @@ var _ = Describe("Client", func() {
869869
By("validating updated Deployment has type information")
870870
Expect(u.GroupVersionKind()).To(Equal(depGvk))
871871

872+
By("validating patched Deployment has new status")
873+
actual, err := clientset.AppsV1().Deployments(ns).Get(dep.Name, metav1.GetOptions{})
874+
Expect(err).NotTo(HaveOccurred())
875+
Expect(actual).NotTo(BeNil())
876+
Expect(actual.Status.Replicas).To(BeEquivalentTo(1))
877+
872878
close(done)
873879
})
874880

0 commit comments

Comments
 (0)