Modificacion en sintaxis del feature roles y se descomento la parte de permisos
This commit is contained in:
@@ -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 | 0 | 0 | 200 | array |
|
||||||
| search 0 | 0 | 0 | 100 | 0 | 200 | array |
|
| search 0 | 0 | 0 | 100 | 0 | 200 | array |
|
||||||
| negative numbers | a | -10 | -20 | 0 | 400 | string |
|
| negative numbers | a | -10 | -20 | 0 | 400 | string |
|
||||||
| real numbers | a | 0.0 | 1.0 | 1 | 200 | string |
|
| real numbers | a | 0.0 | 1.0 | 0 | 400 | string |
|
||||||
| real numbers | a | 0.0 | 0.0 | 0 | 200 | string |
|
| real numbers | a | 0.0 | 0.0 | 0 | 400 | string |
|
||||||
| real numbers | a | 0.1 | 1.4599 | 0 | 400 | string |
|
| real numbers | a | 0.1 | 1.4599 | 0 | 400 | string |
|
||||||
| real numbers | a | 1.5 | 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:
|
Examples:
|
||||||
|
|
||||||
| test_description | rol_uid_number | rol_code | rol_name | rol_status |
|
| 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 short | 1 | PROCESSMAKER_UNO | s | ACTIVE |
|
||||||
| Create Role with name large | 2 | PROCESSMAKER_OPERATOR | Esta es una prueba de un rol con nombre largo | 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_ADMINISTRATOR | Rol con code administrator | ACTIVE |
|
| Create Role with Code Adminsitrator | 3 | PROCESSMAKER_TRES | Rol con code administrator | ACTIVE |
|
||||||
| Create Role with Code Manager | 4 | PROCESSMAKER_MANAGER | Rol con code manager | ACTIVE |
|
| Create Role with Code Manager | 4 | PROCESSMAKER_CUATRO | Rol con code manager | ACTIVE |
|
||||||
| Create Role with Code Adminsitrator/inactive | 5 | PROCESSMAKER_ADMINISTRATOR | Rol con code administrator/inactive | INACTIVE |
|
| Create Role with Code Adminsitrator/inactive | 5 | PROCESSMAKER_CINCO | 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 Operator/inactive | 6 | PROCESSMAKER_SEIS | Rol con code operator/inactive | INACTIVE |
|
||||||
| Create Role with Code Manager/inactive | 7 | PROCESSMAKER_MANAGER | Rol con code manager/inactive | INACTIVE |
|
| Create Role with Code Manager/inactive | 7 | PROCESSMAKER_SIETE | Rol con code manager/inactive | INACTIVE |
|
||||||
| Create Role with character special | 8 | PROCESSMAKER_ADMINISTRATOR | Rol !@##$%&*()'][' 123 | ACTIVE |
|
| Create Role with character special | 8 | PROCESSMAKER_OCHO | Rol !@##$%&*()'][' 123 | ACTIVE |
|
||||||
|
|
||||||
|
|
||||||
Scenario: Get list of Roles
|
Scenario: Get list of Roles
|
||||||
@@ -107,186 +107,182 @@ Scenario: Get list of Roles
|
|||||||
|
|
||||||
#Assign users to role
|
#Assign users to role
|
||||||
|
|
||||||
#Scenario Outline: List assigned Users to Role & List available Users to assign to Role
|
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>"
|
Given I request "role/rol_uid/users" 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
|
||||||
# Then the response status code should be 200
|
And the response charset is "UTF-8"
|
||||||
# And the response charset is "UTF-8"
|
And the content type is "application/json"
|
||||||
# And the content type is "application/json"
|
And the type is "array"
|
||||||
# And the type is "array"
|
And the response has <records> records
|
||||||
# And the response has <records> records
|
|
||||||
#
|
Examples:
|
||||||
# Examples:
|
|
||||||
#
|
| rol_uid_number | records |
|
||||||
# | rol_uid_number | records |
|
| 1 | 0 |
|
||||||
# | 1 | 0 |
|
| 2 | 0 |
|
||||||
# | 2 | 0 |
|
| 3 | 0 |
|
||||||
# | 3 | 0 |
|
| 4 | 0 |
|
||||||
# | 4 | 0 |
|
| 5 | 0 |
|
||||||
# | 5 | 0 |
|
| 6 | 0 |
|
||||||
# | 6 | 0 |
|
| 7 | 0 |
|
||||||
# | 7 | 0 |
|
| 8 | 0 |
|
||||||
# | 8 | 0 |
|
|
||||||
#
|
|
||||||
#
|
Scenario Outline: List assigned Users to Role & List available Users to assign to Role, using different filters
|
||||||
#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>"
|
||||||
# Given I request "roles/00000000000000000000000000000003/users?filter=<filter>&start=<start>&limit=<limit>"
|
Then the response status code should be <http_code>
|
||||||
# Then the response status code should be <http_code>
|
And the response charset is "UTF-8"
|
||||||
# And the response charset is "UTF-8"
|
And the content type is "application/json"
|
||||||
# And the content type is "application/json"
|
And the type is "<type>"
|
||||||
# And the type is "<type>"
|
And the response has <records> records
|
||||||
# And the response has <records> records
|
|
||||||
#
|
Examples:
|
||||||
# Examples:
|
|
||||||
#
|
| test_description | filter | start | limit | records | http_code | type |
|
||||||
# | test_description | filter | start | limit | records | http_code | type |
|
| lowercase | amy | 0 | 1 | 1 | 200 | array |
|
||||||
# | lowercase | amy | 0 | 1 | 1 | 200 | array |
|
| uppercase | AMY | 0 | 1 | 1 | 200 | array |
|
||||||
# | uppercase | AMY | 0 | 1 | 1 | 200 | array |
|
| limit=3 | a | 0 | 3 | 3 | 200 | array |
|
||||||
# | limit=3 | a | 0 | 3 | 3 | 200 | array |
|
| limit and start | a | 1 | 2 | 2 | 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 | 1 | 0 | 200 | array |
|
| high number for start | a | 1000 | 0 | 0 | 200 | array |
|
||||||
# | high number for start | a | 1000 | 0 | 0 | 200 | array |
|
| empty result | xyz | 0 | 0 | 0 | 200 | array |
|
||||||
# | empty result | xyz | 0 | 0 | 0 | 200 | array |
|
| empty string | | 0 | 10000 | 61 | 200 | array |
|
||||||
# | empty string | | 0 | 10000 | 61 | 200 | array |
|
| empty string | | 1 | 2 | 2 | 200 | array |
|
||||||
# | empty string | | 1 | 2 | 2 | 200 | array |
|
| invalid start | a | b | c | 0 | 400 | string |
|
||||||
# | invalid start | a | b | c | 0 | 400 | string |
|
| invalid limit | a | 0 | c | 0 | 400 | string |
|
||||||
# | invalid limit | a | 0 | c | 0 | 400 | string |
|
| search 0 | 0 | 0 | 0 | 0 | 200 | array |
|
||||||
# | search 0 | 0 | 0 | 0 | 0 | 200 | array |
|
| search 0 | 0 | 0 | 100 | 0 | 200 | array |
|
||||||
# | search 0 | 0 | 0 | 100 | 0 | 200 | array |
|
| negative numbers | a | -10 | -20 | 0 | 400 | string |
|
||||||
# | negative numbers | a | -10 | -20 | 0 | 400 | string |
|
| real numbers | a | 0.0 | 1.0 | 0 | 400 | string |
|
||||||
# | real numbers | a | 0.0 | 1.0 | 1 | 200 | string |
|
| real numbers | a | 0.0 | 0.0 | 0 | 400 | string |
|
||||||
# | real numbers | a | 0.0 | 0.0 | 0 | 200 | string |
|
| real numbers | a | 0.1 | 1.4599 | 0 | 400 | string |
|
||||||
# | real numbers | a | 0.1 | 1.4599 | 0 | 400 | string |
|
| real numbers | a | 1.5 | 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
|
||||||
#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>"
|
||||||
# Given I request "roles/00000000000000000000000000000002/available-users?filter=<filter>&start=<start>&limit=<limit>"
|
Then the response status code should be <http_code>
|
||||||
# Then the response status code should be <http_code>
|
And the response charset is "UTF-8"
|
||||||
# And the response charset is "UTF-8"
|
And the content type is "application/json"
|
||||||
# And the content type is "application/json"
|
And the type is "<type>"
|
||||||
# And the type is "<type>"
|
And the response has <records> records
|
||||||
# And the response has <records> records
|
|
||||||
#
|
Examples:
|
||||||
# Examples:
|
|
||||||
#
|
| test_description | filter | start | limit | records | http_code | type |
|
||||||
# | test_description | filter | start | limit | records | http_code | type |
|
| lowercase | amy | 0 | 1 | 1 | 200 | array |
|
||||||
# | lowercase | amy | 0 | 1 | 1 | 200 | array |
|
| uppercase | AMY | 0 | 1 | 1 | 200 | array |
|
||||||
# | uppercase | AMY | 0 | 1 | 1 | 200 | array |
|
| limit=3 | a | 0 | 3 | 3 | 200 | array |
|
||||||
# | limit=3 | a | 0 | 3 | 3 | 200 | array |
|
| limit and start | a | 1 | 2 | 2 | 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 | 1 | 0 | 200 | array |
|
| high number for start | a | 1000 | 0 | 0 | 200 | array |
|
||||||
# | high number for start | a | 1000 | 0 | 0 | 200 | array |
|
| empty result | xyz | 0 | 0 | 0 | 200 | array |
|
||||||
# | empty result | xyz | 0 | 0 | 0 | 200 | array |
|
| empty string | | 0 | 10000 | 61 | 200 | array |
|
||||||
# | empty string | | 0 | 10000 | 61 | 200 | array |
|
| empty string | | 1 | 2 | 2 | 200 | array |
|
||||||
# | empty string | | 1 | 2 | 2 | 200 | array |
|
| invalid start | a | b | c | 0 | 400 | string |
|
||||||
# | invalid start | a | b | c | 0 | 400 | string |
|
| invalid limit | a | 0 | c | 0 | 400 | string |
|
||||||
# | invalid limit | a | 0 | c | 0 | 400 | string |
|
| search 0 | 0 | 0 | 0 | 0 | 200 | array |
|
||||||
# | search 0 | 0 | 0 | 0 | 0 | 200 | array |
|
| search 0 | 0 | 0 | 100 | 0 | 200 | array |
|
||||||
# | search 0 | 0 | 0 | 100 | 0 | 200 | array |
|
| negative numbers | a | -10 | -20 | 0 | 400 | string |
|
||||||
# | negative numbers | a | -10 | -20 | 0 | 400 | string |
|
| real numbers | a | 0.0 | 1.0 | 0 | 400 | string |
|
||||||
# | real numbers | a | 0.0 | 1.0 | 1 | 200 | string |
|
| real numbers | a | 0.0 | 0.0 | 0 | 400 | string |
|
||||||
# | real numbers | a | 0.0 | 0.0 | 0 | 200 | string |
|
| real numbers | a | 0.1 | 1.4599 | 0 | 400 | string |
|
||||||
# | real numbers | a | 0.1 | 1.4599 | 0 | 400 | string |
|
| real numbers | a | 1.5 | 1.4599 | 0 | 400 | string |
|
||||||
# | real numbers | a | 1.5 | 1.4599 | 0 | 400 | string |
|
|
||||||
#
|
|
||||||
#
|
Scenario Outline: Assign User to Role
|
||||||
#Scenario Outline: Assign User to Role
|
Given POST this data:
|
||||||
# Given POST this data:
|
"""
|
||||||
# """
|
{
|
||||||
# {
|
"usr_uid": "<usr_uid>"
|
||||||
# "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>"
|
||||||
# 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
|
||||||
# Then the response status code should be 201
|
And the response charset is "UTF-8"
|
||||||
# And the response charset is "UTF-8"
|
And the content type is "application/json"
|
||||||
# And the content type is "application/json"
|
And the type is "object"
|
||||||
# And the type is "object"
|
|
||||||
#
|
Examples:
|
||||||
# Examples:
|
|
||||||
#
|
| Description | rol_uid_number | usr_uid |
|
||||||
# | Description | rol_uid_number | usr_uid |
|
| Assign user "aaron" | 1 | 51049032352d56710347233042615067 |
|
||||||
# | Assign user "aaron" | 1 | 51049032352d56710347233042615067 |
|
| Assign user "adam" | 2 | 44811996752d567110634a1013636964 |
|
||||||
# | Assign user "adam" | 2 | 44811996752d567110634a1013636964 |
|
| Assign user "alexis" | 3 | 61364466452d56711adb378002702791 |
|
||||||
# | Assign user "alexis" | 3 | 61364466452d56711adb378002702791 |
|
| Assign user "amy" | 4 | 25286582752d56713231082039265791 |
|
||||||
# | Assign user "amy" | 4 | 25286582752d56713231082039265791 |
|
| Assign user "brianna" | 5 | 86021298852d56716b85f73067566944 |
|
||||||
# | Assign user "brianna" | 5 | 86021298852d56716b85f73067566944 |
|
| Assign user "carter" | 6 | 32444503652d5671778fd20059078570 |
|
||||||
# | Assign user "carter" | 6 | 32444503652d5671778fd20059078570 |
|
| Assign user "emily" | 7 | 34289569752d5673d310e82094574281 |
|
||||||
# | Assign user "emily" | 7 | 34289569752d5673d310e82094574281 |
|
| Assign user "olivia" | 8 | 73005191052d56727901138030694610 |
|
||||||
# | Assign user "olivia" | 8 | 73005191052d56727901138030694610 |
|
|
||||||
#
|
|
||||||
#
|
Scenario Outline: List assigned Users to Role & List available Users to assign 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>"
|
||||||
# Given that I want to get a resource 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 I request "role/<rol_uid_number>/users"
|
And the response charset is "UTF-8"
|
||||||
# Then the response status code should be 200
|
And the content type is "application/json"
|
||||||
# And the response charset is "UTF-8"
|
And the type is "array"
|
||||||
# And the content type is "application/json"
|
And the response has <records> records
|
||||||
# And the type is "array"
|
|
||||||
# And the response has <records> records
|
Examples:
|
||||||
#
|
|
||||||
# Examples:
|
| rol_uid_number | records |
|
||||||
#
|
| 1 | 1 |
|
||||||
# | rol_uid_number | records |
|
| 2 | 1 |
|
||||||
# | 1 | 1 |
|
| 3 | 1 |
|
||||||
# | 2 | 1 |
|
| 4 | 1 |
|
||||||
# | 3 | 1 |
|
| 5 | 1 |
|
||||||
# | 4 | 1 |
|
| 6 | 1 |
|
||||||
# | 5 | 1 |
|
| 7 | 1 |
|
||||||
# | 6 | 1 |
|
| 8 | 1 |
|
||||||
# | 7 | 1 |
|
|
||||||
# | 8 | 1 |
|
|
||||||
#
|
Scenario Outline: Unassign User of the Role
|
||||||
#
|
Given that I want to delete a "User from a role"
|
||||||
#Scenario Outline: Unassign User of the 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>"
|
||||||
# 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 the content type is "application/json"
|
||||||
# And I request "role/rol_uid/users/<usr_uid>"
|
Then the response status code should be 200
|
||||||
# And the content type is "application/json"
|
And the response charset is "UTF-8"
|
||||||
# Then the response status code should be 200
|
|
||||||
# And the response charset is "UTF-8"
|
Examples:
|
||||||
#
|
|
||||||
# Examples:
|
| Description | rol_uid_number | usr_uid |
|
||||||
#
|
| Unassign user "aaron" | 1 | 51049032352d56710347233042615067 |
|
||||||
# | Description | rol_uid_number | usr_uid |
|
| Unassign user "adam" | 2 | 44811996752d567110634a1013636964 |
|
||||||
# | Unassign user "aaron" | 1 | 51049032352d56710347233042615067 |
|
| Unassign user "alexis" | 3 | 61364466452d56711adb378002702791 |
|
||||||
# | Unassign user "adam" | 2 | 44811996752d567110634a1013636964 |
|
| Unassign user "amy" | 4 | 25286582752d56713231082039265791 |
|
||||||
# | Unassign user "alexis" | 3 | 61364466452d56711adb378002702791 |
|
| Unassign user "brianna" | 5 | 86021298852d56716b85f73067566944 |
|
||||||
# | Unassign user "amy" | 4 | 25286582752d56713231082039265791 |
|
| Unassign user "carter" | 6 | 32444503652d5671778fd20059078570 |
|
||||||
# | Unassign user "brianna" | 5 | 86021298852d56716b85f73067566944 |
|
| Unassign user "emily" | 7 | 34289569752d5673d310e82094574281 |
|
||||||
# | Unassign user "carter" | 6 | 32444503652d5671778fd20059078570 |
|
| Unassign user "olivia" | 8 | 73005191052d56727901138030694610 |
|
||||||
# | 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>"
|
||||||
#Scenario Outline: List assigned Users to Role & List available Users to assign to Role
|
Then the response status code should be 200
|
||||||
# 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 the response charset is "UTF-8"
|
||||||
# And I request "role/<rol_uid_number>/users"
|
And the content type is "application/json"
|
||||||
# Then the response status code should be 200
|
And the type is "array"
|
||||||
# And the response charset is "UTF-8"
|
And the response has <records> records
|
||||||
# And the content type is "application/json"
|
|
||||||
# And the type is "array"
|
Examples:
|
||||||
# And the response has <records> records
|
|
||||||
#
|
| rol_uid_number | records |
|
||||||
# Examples:
|
| 1 | 0 |
|
||||||
#
|
| 2 | 0 |
|
||||||
# | rol_uid_number | records |
|
| 3 | 0 |
|
||||||
# | 1 | 0 |
|
| 4 | 0 |
|
||||||
# | 2 | 0 |
|
| 5 | 0 |
|
||||||
# | 3 | 0 |
|
| 6 | 0 |
|
||||||
# | 4 | 0 |
|
| 7 | 0 |
|
||||||
# | 5 | 0 |
|
| 8 | 0 |
|
||||||
# | 6 | 0 |
|
|
||||||
# | 7 | 0 |
|
|
||||||
# | 8 | 0 |
|
|
||||||
|
|
||||||
#Culminacion de los endpoint de asignacion de usuarios
|
#Culminacion de los endpoint de asignacion de usuarios
|
||||||
|
|
||||||
#Role and Permission
|
#Role and Permission
|
||||||
|
|
||||||
Scenario Outline: List assigned Permissions to Role & List available Permissions to assign 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>"
|
Given I request "role/rol_uid/permissions" with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
|
||||||
And I request "role/rol_uid/permissions"
|
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the content type is "application/json"
|
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
|
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>
|
Then the response status code should be <http_code>
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the content type is "application/json"
|
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 | 0 | 0 | 200 | array |
|
||||||
| search 0 | 0 | 0 | 100 | 0 | 200 | array |
|
| search 0 | 0 | 0 | 100 | 0 | 200 | array |
|
||||||
| negative numbers | a | -10 | -20 | 0 | 400 | string |
|
| negative numbers | a | -10 | -20 | 0 | 400 | string |
|
||||||
| real numbers | a | 0.0 | 1.0 | 1 | 200 | string |
|
| real numbers | a | 0.0 | 1.0 | 0 | 400 | string |
|
||||||
| real numbers | a | 0.0 | 0.0 | 0 | 200 | string |
|
| real numbers | a | 0.0 | 0.0 | 0 | 400 | string |
|
||||||
| real numbers | a | 0.1 | 1.4599 | 0 | 400 | string |
|
| real numbers | a | 0.1 | 1.4599 | 0 | 400 | string |
|
||||||
| real numbers | a | 1.5 | 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
|
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>
|
Then the response status code should be <http_code>
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the content type is "application/json"
|
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 | 0 | 0 | 200 | array |
|
||||||
| search 0 | 0 | 0 | 100 | 0 | 200 | array |
|
| search 0 | 0 | 0 | 100 | 0 | 200 | array |
|
||||||
| negative numbers | a | -10 | -20 | 0 | 400 | string |
|
| negative numbers | a | -10 | -20 | 0 | 400 | string |
|
||||||
| real numbers | a | 0.0 | 1.0 | 1 | 200 | string |
|
| real numbers | a | 0.0 | 1.0 | 0 | 400 | string |
|
||||||
| real numbers | a | 0.0 | 0.0 | 0 | 200 | string |
|
| real numbers | a | 0.0 | 0.0 | 0 | 400 | string |
|
||||||
| real numbers | a | 0.1 | 1.4599 | 0 | 400 | string |
|
| real numbers | a | 0.1 | 1.4599 | 0 | 400 | string |
|
||||||
| real numbers | a | 1.5 | 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
|
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>"
|
Given I request "role/rol_uid/available-permissions" with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
|
||||||
And I request "role/rol_uid/available-permissions"
|
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the content type is "application/json"
|
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
|
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>"
|
Given I request "role/rol_uid/permissions" with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
|
||||||
And I request "role/rol_uid/permissions"
|
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the content type is "application/json"
|
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
|
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>"
|
Given I request "role/rol_uid/available-permissions" with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
|
||||||
And I request "role/rol_uid/available-permissions"
|
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the content type is "application/json"
|
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
|
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>"
|
Given that I want to delete a "Permmission from a role"
|
||||||
And I request "role/rol_uid/permission/per_uid"
|
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"
|
And the content type is "application/json"
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
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
|
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>"
|
Given I request "role/rol_uid/permissions" with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
|
||||||
And I request "role/rol_uid/permissions"
|
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the content type is "application/json"
|
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
|
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>"
|
Given I request "role/rol_uid/available-permissions" with the key "rol_uid" stored in session array as variable "rol_uid_<rol_uid_number>"
|
||||||
And I request "role/rol_uid/available-permissions"
|
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
@@ -567,10 +558,10 @@ Scenario Outline: Update Role
|
|||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
| test_description | rol_uid_number | rol_code | rol_name | rol_status |
|
| 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 | 1 | PROCESSMAKER_UNO | update_sample | INACTIVE |
|
||||||
| Update name of role created in this script | 5 | PROCESSMAKER_ADMINISTRATOR | update2 | ACTIVE |
|
| Update name of role created in this script | 5 | PROCESSMAKER_CINCO | update2 | ACTIVE |
|
||||||
| Update name of role created in this script | 8 | PROCESSMAKER_ADMINISTRATOR | update*'123 | INACTIVE |
|
| Update name of role created in this script | 8 | PROCESSMAKER_OCHO | update*'123 | INACTIVE |
|
||||||
|
|
||||||
|
|
||||||
Scenario Outline: Get a single Role created in this script
|
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:
|
Examples:
|
||||||
|
|
||||||
| test_description | rol_uid_number | rol_code | rol_name | rol_status |
|
| 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 | 1 | PROCESSMAKER_UNO | update_sample | INACTIVE |
|
||||||
| Update name of role created in this script | 5 | PROCESSMAKER_ADMINISTRATOR | update2 | ACTIVE |
|
| Update name of role created in this script | 5 | PROCESSMAKER_CINCO | update2 | ACTIVE |
|
||||||
| Update name of role created in this script | 8 | PROCESSMAKER_ADMINISTRATOR | update*'123 | INACTIVE |
|
| Update name of role created in this script | 8 | PROCESSMAKER_OCHO | update*'123 | INACTIVE |
|
||||||
|
|
||||||
|
|
||||||
Scenario: Get list of Roles
|
Scenario: Get list of Roles
|
||||||
@@ -629,3 +620,29 @@ Scenario: Get list of Roles
|
|||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
And the type is "array"
|
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 |
|
||||||
Reference in New Issue
Block a user