def test_roleName_existingRole_019(): logger = LogGen.loggen() com = Common_role_api() logger.info( "**************** IN Description: TestCase_019: Test CreateRole when user sends - existing 'userRoleName'. ****************" ) print( "In Description :Testcase_019: Test CreateRole when user sends - existing 'userRoleName'." ) logger.info( "Jama link: https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164299?projectId=50" ) print( "Jama link: https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164299?projectId=50" ) list = com.getRolesList() roleName = list[1] print("\n Trying to create role :::", roleName) files = readFiles() body = files.create_role_body() body['userRoleName'] = roleName com.create_role_negative(body, roleName) com.verify_roles_from_sm_with_api(roleName)
def test_getRoles_API_004(): logger = LogGen.loggen() com = Common_role_api() logger.info("**************** Test_004: GetRoles - Valid Request ****************") logger.info("https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164278?projectId=50") print("**************** Test_004: GetRoles - Valid Request ****************") print("Jama link is ::https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164278?projectId=50") roles = com.getRolesList() print("\n Roles are:", roles)