Skip to content

Commit

Permalink
Test showing labels and annotations stored during fake client.Status(…
Browse files Browse the repository at this point in the history
…).Update()
  • Loading branch information
berlin-ab authored and troy0820 committed Sep 8, 2023
1 parent 51c1809 commit b6a7a0e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/client/fake/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1460,6 +1460,13 @@ var _ = Describe("Fake client", func() {
objOriginal := obj.DeepCopy()

obj.Spec.PodCIDR = "cidr-from-status-update"
obj.Annotations = map[string]string{
"some-annotation-key": "some-annotation-value",
}
obj.Labels = map[string]string{
"some-label-key": "some-label-value",
}

obj.Status.NodeInfo.MachineID = "machine-id-from-status-update"
Expect(cl.Status().Update(context.Background(), obj)).NotTo(HaveOccurred())

Expand Down

0 comments on commit b6a7a0e

Please sign in to comment.