added Sanity Group to the tests

This commit is contained in:
NESS\P3700299
2017-01-04 16:21:32 +02:00
parent c29e1b9846
commit 5e0f325313
2 changed files with 5 additions and 5 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();