Skip to content

Commit

Permalink
better test
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgb committed Mar 3, 2024
1 parent 7a5ef23 commit 40a3172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/namespace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ var _ = Describe("Namespace webhook", func() {
Eventually(k8sClient.Create(ctx, sub2)).Should(Succeed())

sub.Labels[constants.LabelParent] = "sub2-of-non-circular-root"
Consistently(k8sClient.Update(ctx, sub)).Should(HaveOccurred())
Expect(k8sClient.Update(ctx, sub)).To(MatchError("admission webhook \"namespace.accurate.cybozu.io\" denied the request: circular reference is not permitted"))
})

It("should deny updating a template namespace that would create a circular reference", func() {
Expand Down

0 comments on commit 40a3172

Please sign in to comment.