Skip to content

Commit b2aceec

Browse files
committed
Add api/repositories patch service instance api forbidden test
1 parent 138672c commit b2aceec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/repositories/service_instance_repository_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,10 @@ var _ = Describe("ServiceInstanceRepository", func() {
732732
serviceInstanceRecord, err = serviceInstanceRepo.PatchManagedServiceInstance(ctx, authInfo, patchMessage)
733733
})
734734

735+
It("returns a Forbidden error", func() {
736+
Expect(err).To(BeAssignableToTypeOf(apierrors.ForbiddenError{}))
737+
})
738+
735739
When("authorized in the space", func() {
736740
BeforeEach(func() {
737741
createRoleBinding(ctx, userName, orgUserRole.Name, org.Name)

0 commit comments

Comments
 (0)