TAS-1015 REST API - valid request returns success status code 200 with Collaborator role

This commit is contained in:
Valentin Popa
2016-09-30 17:15:31 +03:00
parent 6334c0dd2f
commit f450bc6418

View File

@@ -56,4 +56,13 @@ public class GetSiteMembershipSanityTests extends RestTest
.assertStatusCodeIs(HttpStatus.OK);
}
@TestRail(section = { "rest-api",
"people" }, executionType = ExecutionType.SANITY, description = "Verify site collaborator is able to retrieve site membership information of another user")
public void siteCollaboratorCanRetrieveSiteMembershipInformation() throws JsonToModelConversionException, Exception
{
restClient.authenticateUser(usersWithRoles.getOneUserWithRole(UserRole.SiteCollaborator));
peopleApi.getSiteMembership(adminUser, siteModel);
peopleApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK);
}
}