TAS-914 - REST API - valid site membership information request returns success status code 200 with Contributor role

This commit is contained in:
Valentin Popa
2016-09-27 17:21:18 +03:00
parent 35195c024e
commit eafcc41859
@@ -67,5 +67,16 @@ public class GetSiteMembershipInformationSanityTest extends RestTest
siteAPI.usingRestWrapper()
.assertStatusCodeIs(HttpStatus.OK.toString());
}
@TestRail(section = { "rest-api", "sites" },
executionType = ExecutionType.SANITY,
description = "Verify site contributor is able to retrieve site membership information of another user")
public void siteContributorCanRetrieveSiteMembershipInformation() throws JsonToModelConversionException, Exception
{
restClient.authenticateUser(usersWithRoles.get(UserRole.SiteContributor));
siteAPI.getSiteMembershipInformation(adminUser.getUsername());
siteAPI.usingRestWrapper()
.assertStatusCodeIs(HttpStatus.OK.toString());
}
}