Modificacion en sintaxis del feature roles y se descomento la parte de permisos

This commit is contained in:
Wendy Nestor
2014-06-04 08:48:10 -04:00
parent 9d092236ad
commit 2e686dd068

View File

@@ -41,8 +41,8 @@ Scenario Outline: Get list of Roles using different filters
| search 0 | 0 | 0 | 0 | 0 | 200 | array |
| search 0 | 0 | 0 | 100 | 0 | 200 | array |
| negative numbers | a | -10 | -20 | 0 | 400 | string |
| real numbers | a | 0.0 | 1.0 | 1 | 200 | string |
| real numbers | a | 0.0 | 0.0 | 0 | 200 | string |
| real numbers | a | 0.0 | 1.0 | 0 | 400 | string |
| real numbers | a | 0.0 | 0.0 | 0 | 400 | string |
| real numbers | a | 0.1 | 1.4599 | 0 | 400 | string |
| real numbers | a | 1.5 | 1.4599 | 0 | 400 | string |
@@ -85,15 +85,15 @@ Scenario Outline: Create new Role
Examples:
| test_description | rol_uid_number | rol_code | rol_name | rol_status |
| Create Role with name short | 1 | PROCESSMAKER_OPERATOR | s | ACTIVE |
| Create Role with name large | 2 | PROCESSMAKER_OPERATOR | Esta es una prueba de un rol con nombre largo | ACTIVE |
| Create Role with Code Adminsitrator | 3 | PROCESSMAKER_ADMINISTRATOR | Rol con code administrator | ACTIVE |
| Create Role with Code Manager | 4 | PROCESSMAKER_MANAGER | Rol con code manager | ACTIVE |
| Create Role with Code Adminsitrator/inactive | 5 | PROCESSMAKER_ADMINISTRATOR | Rol con code administrator/inactive | INACTIVE |
| Create Role with Code Operator/inactive | 6 | PROCESSMAKER_OPERATOR | Rol con code operator/inactive | INACTIVE |
| Create Role with Code Manager/inactive | 7 | PROCESSMAKER_MANAGER | Rol con code manager/inactive | INACTIVE |
| Create Role with character special | 8 | PROCESSMAKER_ADMINISTRATOR | Rol !@##$%&*()'][' 123 | ACTIVE |
| test_description | rol_uid_number | rol_code | rol_name | rol_status |
| Create Role with name short | 1 | PROCESSMAKER_UNO | s | ACTIVE |
| Create Role with name large | 2 | PROCESSMAKER_DOS | Esta es una prueba de un rol con nombre largo | ACTIVE |
| Create Role with Code Adminsitrator | 3 | PROCESSMAKER_TRES | Rol con code administrator | ACTIVE |
| Create Role with Code Manager | 4 | PROCESSMAKER_CUATRO | Rol con code manager | ACTIVE |
| Create Role with Code Adminsitrator/inactive | 5 | PROCESSMAKER_CINCO | Rol con code administrator/inactive | INACTIVE |
| Create Role with Code Operator/inactive | 6 | PROCESSMAKER_SEIS | Rol con code operator/inactive | INACTIVE |
| Create Role with Code Manager/inactive | 7 | PROCESSMAKER_SIETE | Rol con code manager/inactive | INACTIVE |
| Create Role with character special | 8 | PROCESSMAKER_OCHO | Rol !@##$%&*()'][' 123 | ACTIVE |
Scenario: Get list of Roles
@@ -106,187 +106,183 @@ Scenario: Get list of Roles
#Assign users to role
Scenario Outline: List assigned Users to Role & List available Users to assign to Role
Given I request "role/rol_uid/users" with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "array"
And the response has <records> records
#Scenario Outline: List assigned Users to Role & List available Users to assign to Role
# Given that I want to get a resource with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
# And I request "role/<rol_uid_number>/users"
# Then the response status code should be 200
# And the response charset is "UTF-8"
# And the content type is "application/json"
# And the type is "array"
# And the response has <records> records
#
# Examples:
#
# | rol_uid_number | records |
# | 1 | 0 |
# | 2 | 0 |
# | 3 | 0 |
# | 4 | 0 |
# | 5 | 0 |
# | 6 | 0 |
# | 7 | 0 |
# | 8 | 0 |
#
#
#Scenario Outline: List assigned Users to Role & List available Users to assign to Role, using different filters
# Given I request "roles/00000000000000000000000000000003/users?filter=<filter>&start=<start>&limit=<limit>"
# Then the response status code should be <http_code>
# And the response charset is "UTF-8"
# And the content type is "application/json"
# And the type is "<type>"
# And the response has <records> records
#
# Examples:
#
# | test_description | filter | start | limit | records | http_code | type |
# | lowercase | amy | 0 | 1 | 1 | 200 | array |
# | uppercase | AMY | 0 | 1 | 1 | 200 | array |
# | limit=3 | a | 0 | 3 | 3 | 200 | array |
# | limit and start | a | 1 | 2 | 2 | 200 | array |
# | high number for start | a | 1000 | 1 | 0 | 200 | array |
# | high number for start | a | 1000 | 0 | 0 | 200 | array |
# | empty result | xyz | 0 | 0 | 0 | 200 | array |
# | empty string | | 0 | 10000 | 61 | 200 | array |
# | empty string | | 1 | 2 | 2 | 200 | array |
# | invalid start | a | b | c | 0 | 400 | string |
# | invalid limit | a | 0 | c | 0 | 400 | string |
# | search 0 | 0 | 0 | 0 | 0 | 200 | array |
# | search 0 | 0 | 0 | 100 | 0 | 200 | array |
# | negative numbers | a | -10 | -20 | 0 | 400 | string |
# | real numbers | a | 0.0 | 1.0 | 1 | 200 | string |
# | real numbers | a | 0.0 | 0.0 | 0 | 200 | string |
# | real numbers | a | 0.1 | 1.4599 | 0 | 400 | string |
# | real numbers | a | 1.5 | 1.4599 | 0 | 400 | string |
#
#
#Scenario Outline: List assigned Users to Role & List available Users to assign to Role, using different filters
# Given I request "roles/00000000000000000000000000000002/available-users?filter=<filter>&start=<start>&limit=<limit>"
# Then the response status code should be <http_code>
# And the response charset is "UTF-8"
# And the content type is "application/json"
# And the type is "<type>"
# And the response has <records> records
#
# Examples:
#
# | test_description | filter | start | limit | records | http_code | type |
# | lowercase | amy | 0 | 1 | 1 | 200 | array |
# | uppercase | AMY | 0 | 1 | 1 | 200 | array |
# | limit=3 | a | 0 | 3 | 3 | 200 | array |
# | limit and start | a | 1 | 2 | 2 | 200 | array |
# | high number for start | a | 1000 | 1 | 0 | 200 | array |
# | high number for start | a | 1000 | 0 | 0 | 200 | array |
# | empty result | xyz | 0 | 0 | 0 | 200 | array |
# | empty string | | 0 | 10000 | 61 | 200 | array |
# | empty string | | 1 | 2 | 2 | 200 | array |
# | invalid start | a | b | c | 0 | 400 | string |
# | invalid limit | a | 0 | c | 0 | 400 | string |
# | search 0 | 0 | 0 | 0 | 0 | 200 | array |
# | search 0 | 0 | 0 | 100 | 0 | 200 | array |
# | negative numbers | a | -10 | -20 | 0 | 400 | string |
# | real numbers | a | 0.0 | 1.0 | 1 | 200 | string |
# | real numbers | a | 0.0 | 0.0 | 0 | 200 | string |
# | real numbers | a | 0.1 | 1.4599 | 0 | 400 | string |
# | real numbers | a | 1.5 | 1.4599 | 0 | 400 | string |
#
#
#Scenario Outline: Assign User to Role
# Given POST this data:
# """
# {
# "usr_uid": "<usr_uid>"
# }
# """
# And I request "role/rol_uid/user" with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
# Then the response status code should be 201
# And the response charset is "UTF-8"
# And the content type is "application/json"
# And the type is "object"
#
# Examples:
#
# | Description | rol_uid_number | usr_uid |
# | Assign user "aaron" | 1 | 51049032352d56710347233042615067 |
# | Assign user "adam" | 2 | 44811996752d567110634a1013636964 |
# | Assign user "alexis" | 3 | 61364466452d56711adb378002702791 |
# | Assign user "amy" | 4 | 25286582752d56713231082039265791 |
# | Assign user "brianna" | 5 | 86021298852d56716b85f73067566944 |
# | Assign user "carter" | 6 | 32444503652d5671778fd20059078570 |
# | Assign user "emily" | 7 | 34289569752d5673d310e82094574281 |
# | Assign user "olivia" | 8 | 73005191052d56727901138030694610 |
#
#
#Scenario Outline: List assigned Users to Role & List available Users to assign to Role
# Given that I want to get a resource with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
# And I request "role/<rol_uid_number>/users"
# Then the response status code should be 200
# And the response charset is "UTF-8"
# And the content type is "application/json"
# And the type is "array"
# And the response has <records> records
#
# Examples:
#
# | rol_uid_number | records |
# | 1 | 1 |
# | 2 | 1 |
# | 3 | 1 |
# | 4 | 1 |
# | 5 | 1 |
# | 6 | 1 |
# | 7 | 1 |
# | 8 | 1 |
#
#
#Scenario Outline: Unassign User of the Role
# Given that I want to delete a resource with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
# And I request "role/rol_uid/users/<usr_uid>"
# And the content type is "application/json"
# Then the response status code should be 200
# And the response charset is "UTF-8"
#
# Examples:
#
# | Description | rol_uid_number | usr_uid |
# | Unassign user "aaron" | 1 | 51049032352d56710347233042615067 |
# | Unassign user "adam" | 2 | 44811996752d567110634a1013636964 |
# | Unassign user "alexis" | 3 | 61364466452d56711adb378002702791 |
# | Unassign user "amy" | 4 | 25286582752d56713231082039265791 |
# | Unassign user "brianna" | 5 | 86021298852d56716b85f73067566944 |
# | Unassign user "carter" | 6 | 32444503652d5671778fd20059078570 |
# | Unassign user "emily" | 7 | 34289569752d5673d310e82094574281 |
# | Unassign user "olivia" | 8 | 73005191052d56727901138030694610 |
#
#
#Scenario Outline: List assigned Users to Role & List available Users to assign to Role
# Given that I want to get a resource with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
# And I request "role/<rol_uid_number>/users"
# Then the response status code should be 200
# And the response charset is "UTF-8"
# And the content type is "application/json"
# And the type is "array"
# And the response has <records> records
#
# Examples:
#
# | rol_uid_number | records |
# | 1 | 0 |
# | 2 | 0 |
# | 3 | 0 |
# | 4 | 0 |
# | 5 | 0 |
# | 6 | 0 |
# | 7 | 0 |
# | 8 | 0 |
Examples:
| rol_uid_number | records |
| 1 | 0 |
| 2 | 0 |
| 3 | 0 |
| 4 | 0 |
| 5 | 0 |
| 6 | 0 |
| 7 | 0 |
| 8 | 0 |
Scenario Outline: List assigned Users to Role & List available Users to assign to Role, using different filters
Given I request "role/00000000000000000000000000000003/users?filter=<filter>&start=<start>&limit=<limit>"
Then the response status code should be <http_code>
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "<type>"
And the response has <records> records
Examples:
| test_description | filter | start | limit | records | http_code | type |
| lowercase | amy | 0 | 1 | 1 | 200 | array |
| uppercase | AMY | 0 | 1 | 1 | 200 | array |
| limit=3 | a | 0 | 3 | 3 | 200 | array |
| limit and start | a | 1 | 2 | 2 | 200 | array |
| high number for start | a | 1000 | 1 | 0 | 200 | array |
| high number for start | a | 1000 | 0 | 0 | 200 | array |
| empty result | xyz | 0 | 0 | 0 | 200 | array |
| empty string | | 0 | 10000 | 61 | 200 | array |
| empty string | | 1 | 2 | 2 | 200 | array |
| invalid start | a | b | c | 0 | 400 | string |
| invalid limit | a | 0 | c | 0 | 400 | string |
| search 0 | 0 | 0 | 0 | 0 | 200 | array |
| search 0 | 0 | 0 | 100 | 0 | 200 | array |
| negative numbers | a | -10 | -20 | 0 | 400 | string |
| real numbers | a | 0.0 | 1.0 | 0 | 400 | string |
| real numbers | a | 0.0 | 0.0 | 0 | 400 | string |
| real numbers | a | 0.1 | 1.4599 | 0 | 400 | string |
| real numbers | a | 1.5 | 1.4599 | 0 | 400 | string |
Scenario Outline: List assigned Users to Role & List available Users to assign to Role, using different filters
Given I request "role/00000000000000000000000000000002/available-users?filter=<filter>&start=<start>&limit=<limit>"
Then the response status code should be <http_code>
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "<type>"
And the response has <records> records
Examples:
| test_description | filter | start | limit | records | http_code | type |
| lowercase | amy | 0 | 1 | 1 | 200 | array |
| uppercase | AMY | 0 | 1 | 1 | 200 | array |
| limit=3 | a | 0 | 3 | 3 | 200 | array |
| limit and start | a | 1 | 2 | 2 | 200 | array |
| high number for start | a | 1000 | 1 | 0 | 200 | array |
| high number for start | a | 1000 | 0 | 0 | 200 | array |
| empty result | xyz | 0 | 0 | 0 | 200 | array |
| empty string | | 0 | 10000 | 61 | 200 | array |
| empty string | | 1 | 2 | 2 | 200 | array |
| invalid start | a | b | c | 0 | 400 | string |
| invalid limit | a | 0 | c | 0 | 400 | string |
| search 0 | 0 | 0 | 0 | 0 | 200 | array |
| search 0 | 0 | 0 | 100 | 0 | 200 | array |
| negative numbers | a | -10 | -20 | 0 | 400 | string |
| real numbers | a | 0.0 | 1.0 | 0 | 400 | string |
| real numbers | a | 0.0 | 0.0 | 0 | 400 | string |
| real numbers | a | 0.1 | 1.4599 | 0 | 400 | string |
| real numbers | a | 1.5 | 1.4599 | 0 | 400 | string |
Scenario Outline: Assign User to Role
Given POST this data:
"""
{
"usr_uid": "<usr_uid>"
}
"""
And I request "role/rol_uid/user" with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
Then the response status code should be 201
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "object"
Examples:
| Description | rol_uid_number | usr_uid |
| Assign user "aaron" | 1 | 51049032352d56710347233042615067 |
| Assign user "adam" | 2 | 44811996752d567110634a1013636964 |
| Assign user "alexis" | 3 | 61364466452d56711adb378002702791 |
| Assign user "amy" | 4 | 25286582752d56713231082039265791 |
| Assign user "brianna" | 5 | 86021298852d56716b85f73067566944 |
| Assign user "carter" | 6 | 32444503652d5671778fd20059078570 |
| Assign user "emily" | 7 | 34289569752d5673d310e82094574281 |
| Assign user "olivia" | 8 | 73005191052d56727901138030694610 |
Scenario Outline: List assigned Users to Role & List available Users to assign to Role
Given I request "role/rol_uid/users" with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "array"
And the response has <records> records
Examples:
| rol_uid_number | records |
| 1 | 1 |
| 2 | 1 |
| 3 | 1 |
| 4 | 1 |
| 5 | 1 |
| 6 | 1 |
| 7 | 1 |
| 8 | 1 |
Scenario Outline: Unassign User of the Role
Given that I want to delete a "User from a role"
And I request "role/rol_uid/user/<usr_uid>" with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
And the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
Examples:
| Description | rol_uid_number | usr_uid |
| Unassign user "aaron" | 1 | 51049032352d56710347233042615067 |
| Unassign user "adam" | 2 | 44811996752d567110634a1013636964 |
| Unassign user "alexis" | 3 | 61364466452d56711adb378002702791 |
| Unassign user "amy" | 4 | 25286582752d56713231082039265791 |
| Unassign user "brianna" | 5 | 86021298852d56716b85f73067566944 |
| Unassign user "carter" | 6 | 32444503652d5671778fd20059078570 |
| Unassign user "emily" | 7 | 34289569752d5673d310e82094574281 |
| Unassign user "olivia" | 8 | 73005191052d56727901138030694610 |
Scenario Outline: List assigned Users to Role & List available Users to assign to Role
Given I request "role/rol_uid/users" with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "array"
And the response has <records> records
Examples:
| rol_uid_number | records |
| 1 | 0 |
| 2 | 0 |
| 3 | 0 |
| 4 | 0 |
| 5 | 0 |
| 6 | 0 |
| 7 | 0 |
| 8 | 0 |
#Culminacion de los endpoint de asignacion de usuarios
#Role and Permission
Scenario Outline: List assigned Permissions to Role & List available Permissions to assign to Role
Given that I want to get a resource with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
And I request "role/rol_uid/permissions"
Given I request "role/rol_uid/permissions" with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -307,7 +303,7 @@ Scenario Outline: List assigned Permissions to Role & List available Permissions
Scenario Outline: List assigned Permissions to Role & List available Permissions to assign to Role, using different filters
Given I request "roles/00000000000000000000000000000004/users?filter=<filter>&start=<start>&limit=<limit>"
Given I request "role/00000000000000000000000000000004/permissions?filter=<filter>&start=<start>&limit=<limit>"
Then the response status code should be <http_code>
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -331,14 +327,14 @@ Scenario Outline: List assigned Permissions to Role & List available Permissions
| search 0 | 0 | 0 | 0 | 0 | 200 | array |
| search 0 | 0 | 0 | 100 | 0 | 200 | array |
| negative numbers | a | -10 | -20 | 0 | 400 | string |
| real numbers | a | 0.0 | 1.0 | 1 | 200 | string |
| real numbers | a | 0.0 | 0.0 | 0 | 200 | string |
| real numbers | a | 0.0 | 1.0 | 0 | 400 | string |
| real numbers | a | 0.0 | 0.0 | 0 | 400 | string |
| real numbers | a | 0.1 | 1.4599 | 0 | 400 | string |
| real numbers | a | 1.5 | 1.4599 | 0 | 400 | string |
Scenario Outline: List assigned Permissions to Role & List available Permissions to assign to Role, using different filters
Given I request "roles/00000000000000000000000000000003/available-users?filter=<filter>&start=<start>&limit=<limit>"
Given I request "role/00000000000000000000000000000003/available-permissions?filter=<filter>&start=<start>&limit=<limit>"
Then the response status code should be <http_code>
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -362,15 +358,14 @@ Scenario Outline: List assigned Permissions to Role & List available Permissions
| search 0 | 0 | 0 | 0 | 0 | 200 | array |
| search 0 | 0 | 0 | 100 | 0 | 200 | array |
| negative numbers | a | -10 | -20 | 0 | 400 | string |
| real numbers | a | 0.0 | 1.0 | 1 | 200 | string |
| real numbers | a | 0.0 | 0.0 | 0 | 200 | string |
| real numbers | a | 0.0 | 1.0 | 0 | 400 | string |
| real numbers | a | 0.0 | 0.0 | 0 | 400 | string |
| real numbers | a | 0.1 | 1.4599 | 0 | 400 | string |
| real numbers | a | 1.5 | 1.4599 | 0 | 400 | string |
Scenario Outline: List assigned Permissions to Role & List available Permissions to assign to Role
Given that I want to get a resource with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
And I request "role/rol_uid/available-permissions"
Given I request "role/rol_uid/available-permissions" with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -429,8 +424,7 @@ Scenario Outline: Assign Permission "PM_DASHBOARD" to Role
Scenario Outline: List assigned Permissions to Role & List available Permissions to assign to Role
Given that I want to get a resource with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
And I request "role/rol_uid/permissions"
Given I request "role/rol_uid/permissions" with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -451,8 +445,7 @@ Scenario Outline: List assigned Permissions to Role & List available Permissions
Scenario Outline: List assigned Permissions to Role & List available Permissions to assign to Role
Given that I want to get a resource with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
And I request "role/rol_uid/available-permissions"
Given I request "role/rol_uid/available-permissions" with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -473,8 +466,8 @@ Scenario Outline: List assigned Permissions to Role & List available Permissions
Scenario Outline: Unassign Permission of the Role
Given that I want to delete a resource with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
And I request "role/rol_uid/permission/per_uid"
Given that I want to delete a "Permmission from a role"
And I request "role/rol_uid/permission/<per_uid>" with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
And the content type is "application/json"
Then the response status code should be 200
And the response charset is "UTF-8"
@@ -505,8 +498,7 @@ Scenario Outline: Unassign Permission of the Role
Scenario Outline: List assigned Permissions to Role & List available Permissions to assign to Role
Given that I want to get a resource with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
And I request "role/rol_uid/permissions"
Given I request "role/rol_uid/permissions" with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -527,8 +519,7 @@ Scenario Outline: List assigned Permissions to Role & List available Permissions
Scenario Outline: List assigned Permissions to Role & List available Permissions to assign to Role
Given that I want to get a resource with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
And I request "role/rol_uid/available-permissions"
Given I request "role/rol_uid/available-permissions" with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
@@ -567,10 +558,10 @@ Scenario Outline: Update Role
Examples:
| test_description | rol_uid_number | rol_code | rol_name | rol_status |
| Update name of role created in this script | 1 | PROCESSMAKER_OPERATOR | update_sample | INACTIVE |
| Update name of role created in this script | 5 | PROCESSMAKER_ADMINISTRATOR | update2 | ACTIVE |
| Update name of role created in this script | 8 | PROCESSMAKER_ADMINISTRATOR | update*'123 | INACTIVE |
| test_description | rol_uid_number | rol_code | rol_name | rol_status |
| Update name of role created in this script | 1 | PROCESSMAKER_UNO | update_sample | INACTIVE |
| Update name of role created in this script | 5 | PROCESSMAKER_CINCO | update2 | ACTIVE |
| Update name of role created in this script | 8 | PROCESSMAKER_OCHO | update*'123 | INACTIVE |
Scenario Outline: Get a single Role created in this script
@@ -586,10 +577,10 @@ Scenario Outline: Get a single Role created in this script
Examples:
| test_description | rol_uid_number | rol_code | rol_name | rol_status |
| Update name of role created in this script | 1 | PROCESSMAKER_OPERATOR | update_sample | INACTIVE |
| Update name of role created in this script | 5 | PROCESSMAKER_ADMINISTRATOR | update2 | ACTIVE |
| Update name of role created in this script | 8 | PROCESSMAKER_ADMINISTRATOR | update*'123 | INACTIVE |
| test_description | rol_uid_number | rol_code | rol_name | rol_status |
| Update name of role created in this script | 1 | PROCESSMAKER_UNO | update_sample | INACTIVE |
| Update name of role created in this script | 5 | PROCESSMAKER_CINCO | update2 | ACTIVE |
| Update name of role created in this script | 8 | PROCESSMAKER_OCHO | update*'123 | INACTIVE |
Scenario: Get list of Roles
@@ -628,4 +619,30 @@ Scenario: Get list of Roles
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "array"
And the response has 3 records
And the response has 3 records
Scenario Outline: Assign User to Role "PROCESSMAKER_OPERATOR"
Given POST this data:
"""
{
"usr_uid": "<usr_uid>"
}
"""
And I request "role/00000000000000000000000000000003/user"
Then the response status code should be 201
And the response charset is "UTF-8"
And the content type is "application/json"
And the type is "object"
Examples:
| Description | usr_uid |
| Assign user "aaron" | 51049032352d56710347233042615067 |
| Assign user "adam" | 44811996752d567110634a1013636964 |
| Assign user "alexis" | 61364466452d56711adb378002702791 |
| Assign user "amy" | 25286582752d56713231082039265791 |
| Assign user "brianna" | 86021298852d56716b85f73067566944 |
| Assign user "carter" | 32444503652d5671778fd20059078570 |
| Assign user "emily" | 34289569752d5673d310e82094574281 |
| Assign user "olivia" | 73005191052d56727901138030694610 |