This commit is contained in:
Paul Brodner
2017-01-04 21:35:56 +02:00
3 changed files with 6 additions and 6 deletions
@@ -13,7 +13,7 @@ import org.testng.annotations.Test;
public class AuthTests extends RestTest
{
@TestRail(section = { TestGroup.REST_API }, executionType = ExecutionType.SANITY, description = "Verify TICKET is returned on admin user")
@Test(groups = { TestGroup.REST_API })
@Test(groups = { TestGroup.REST_API, TestGroup.SANITY })
public void adminShouldGetTicketBody() throws JsonToModelConversionException, Exception
{
RestTicketBodyModel ticketBody = new RestTicketBodyModel();
@@ -29,7 +29,7 @@ public class RestGetNetworkForPersonSanityTests extends RestTest
@Bug(id = "MNT-16904")
@TestRail(section = { TestGroup.REST_API,TestGroup.NETWORKS }, executionType = ExecutionType.SANITY,
description = "Verify non existing user gets another exisiting network with Rest API and checks the forbidden status")
@Test(groups = { TestGroup.REST_API, TestGroup.NETWORKS, TestGroup.COMMENTS })
@Test(groups = { TestGroup.REST_API, TestGroup.NETWORKS, TestGroup.COMMENTS, TestGroup.SANITY })
public void nonExistingTenantUserIsNotAuthorizedToRequest() throws Exception
{
UserModel tenantUser = new UserModel("nonexisting", "password");
@@ -41,7 +41,7 @@ public class RestGetNetworkForPersonSanityTests extends RestTest
@TestRail(section = { TestGroup.REST_API,TestGroup.NETWORKS }, executionType = ExecutionType.SANITY,
description = "Verify tenant admin user gets specific network with Rest API and response is not empty")
@Test(groups = { TestGroup.REST_API, TestGroup.NETWORKS, TestGroup.COMMENTS })
@Test(groups = { TestGroup.REST_API, TestGroup.NETWORKS, TestGroup.COMMENTS,TestGroup.SANITY })
public void adminTenantChecksIfNetworkIsPresent() throws Exception
{
restClient.authenticateUser(adminTenantUser);
@@ -51,7 +51,7 @@ public class RestGetNetworkForPersonSanityTests extends RestTest
@TestRail(section = { TestGroup.REST_API,TestGroup.NETWORKS }, executionType = ExecutionType.SANITY,
description = "Verify tenant user is not authorized to check network of admin user with Rest API and checks the forbidden status")
@Test(groups = { TestGroup.REST_API, TestGroup.NETWORKS, TestGroup.COMMENTS })
@Test(groups = { TestGroup.REST_API, TestGroup.NETWORKS, TestGroup.COMMENTS, TestGroup.SANITY })
public void tenantUserIsNotAuthorizedToCheckNetworkOfAdminUser() throws Exception
{
restClient.authenticateUser(tenantUser);
@@ -61,7 +61,7 @@ public class RestGetNetworkForPersonSanityTests extends RestTest
@TestRail(section = { TestGroup.REST_API,TestGroup.NETWORKS }, executionType = ExecutionType.SANITY,
description = "Verify admin tenant user is not authorized to check network of another user with Rest API and checks the forbidden status")
@Test(groups = { TestGroup.REST_API, TestGroup.NETWORKS, TestGroup.COMMENTS })
@Test(groups = { TestGroup.REST_API, TestGroup.NETWORKS, TestGroup.COMMENTS, TestGroup.SANITY })
public void adminTenantUserIsNotAuthorizedToCheckNetworkOfAnotherUser() throws Exception
{
UserModel secondAdminTenantUser = UserModel.getAdminTenantUser();
@@ -11,7 +11,7 @@ import org.springframework.http.HttpStatus;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class GetPeoplePreferencesCoreTests extends RestTest
public class GetPeoplePreferenceCoreTests extends RestTest
{
UserModel userModel;
SiteModel siteModel;