Skip to content

Conversation

@hungphan227
Copy link
Collaborator

In test normalUserCannotSetPublicRightOfDomainAddressBook and normalUserCannotDelegateDomainAddressBook, the returned http code is 403. Should it be 405?

.baseUri(tcalendarAdminApiBase)
.put("/domains/" + domainName + "/admins/" + bob.email())
.then()
.statusCode(204);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.statusCode(204);
.statusCode(405);

Copy link
Member

@chibenwa chibenwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please write the same tests also for domain-member addressbook.

Please refine the behaviours in particular:

  • dab: update public right result in 405
  • FAIL1 dab: update public right shall not be persisted
  • dab: update sharee result in 405
  • dab: update sharee is not persisted

While we are at it we shall also test domainMemberAddress book right management which shall fail:

  • FAIL domain members -> result in 405 and not persisted for sharing and public right update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants