Arreglos en la sintaxis del feature roles
This commit is contained in:
@@ -47,52 +47,67 @@ Scenario Outline: Create new Role
|
|||||||
|
|
||||||
#Assign users to role
|
#Assign users to role
|
||||||
|
|
||||||
#Scenario: List assigned Users to Role & List available Users to assign to Role
|
Scenario: List assigned Users to Role & List available Users to assign to Role
|
||||||
# Given I request "role/00000000000000000000000000000003/users"
|
Given I request "role/00000000000000000000000000000003/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 61 records
|
And the response has 61 records
|
||||||
#
|
|
||||||
#Scenario: Assign User to Role
|
Scenario: Assign User to Role
|
||||||
# Given POST this data:
|
Given POST this data:
|
||||||
# """
|
"""
|
||||||
# {
|
{
|
||||||
# "usr_uid": "310985970530cbfa4ec0593063369294"
|
"usr_uid": "310985970530cbfa4ec0593063369294"
|
||||||
# }
|
}
|
||||||
# """
|
"""
|
||||||
# And I request "role/00000000000000000000000000000003/user"
|
And I request "role/00000000000000000000000000000003/user"
|
||||||
# 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"
|
||||||
#
|
|
||||||
#
|
|
||||||
#Scenario: Get list of Roles
|
Scenario: Get list of Roles
|
||||||
# Given I request "roles"
|
Given I request "roles"
|
||||||
# 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 62 records
|
And the response has 4 records
|
||||||
#
|
|
||||||
#
|
|
||||||
#Scenario: Unassign User of the Role
|
Scenario: Unassign User of the Role
|
||||||
# Given that I want to delete a resource with the key "310985970530cbfa4ec0593063369294"
|
Given that I want to delete a "User from a role"
|
||||||
# And I request "role/00000000000000000000000000000003/user/310985970530cbfa4ec0593063369294"
|
And I request "role/00000000000000000000000000000003/user/310985970530cbfa4ec0593063369294"
|
||||||
# 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"
|
||||||
#
|
|
||||||
#
|
|
||||||
#Scenario: Get list of Roles
|
Scenario: Assign User "Wendy" to Role "PROCESSMAKER_ADMIN"
|
||||||
# Given I request "roles"
|
Given POST this data:
|
||||||
# Then the response status code should be 200
|
"""
|
||||||
# And the response charset is "UTF-8"
|
{
|
||||||
# And the content type is "application/json"
|
"usr_uid": "310985970530cbfa4ec0593063369294"
|
||||||
# And the type is "array"
|
}
|
||||||
# And the response has 61 records
|
"""
|
||||||
|
And I request "role/00000000000000000000000000000002/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"
|
||||||
|
|
||||||
|
|
||||||
|
Scenario: Get list of Roles
|
||||||
|
Given I request "roles"
|
||||||
|
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 4 records
|
||||||
|
|
||||||
#Culminacion de los endpoint de asignacion de usuarios
|
#Culminacion de los endpoint de asignacion de usuarios
|
||||||
|
|
||||||
#Role and Permission
|
#Role and Permission
|
||||||
@@ -111,7 +126,7 @@ Scenario: List assigned Permissions to Role & List available Permissions to assi
|
|||||||
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 14 recordsuser
|
And the response has 14 records
|
||||||
|
|
||||||
Scenario: Assign Permission "PM_DASHBOARD" to Role
|
Scenario: Assign Permission "PM_DASHBOARD" to Role
|
||||||
Given POST this data:
|
Given POST this data:
|
||||||
@@ -126,7 +141,7 @@ Scenario: Assign Permission "PM_DASHBOARD" to Role
|
|||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
And the type is "object"
|
And the type is "object"
|
||||||
|
|
||||||
Scenario: List assigned Permissions to Role & List available Permissions to assign to Role
|
Scenario: List assigned Permissions to Role
|
||||||
Given I request "role/00000000000000000000000000000003/permissions"
|
Given I request "role/00000000000000000000000000000003/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"
|
||||||
@@ -134,21 +149,23 @@ Scenario: List assigned Permissions to Role & List available Permissions to assi
|
|||||||
And the type is "array"
|
And the type is "array"
|
||||||
And the response has 4 records
|
And the response has 4 records
|
||||||
|
|
||||||
Scenario: List assigned Permissions to Role & List available Permissions to assign to Role
|
Scenario: List available Permissions to assign to Role
|
||||||
Given I request "role/00000000000000000000000000000003/available-permissions"
|
Given I request "role/00000000000000000000000000000003/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"
|
||||||
And the type is "array"
|
And the type is "array"
|
||||||
And the response has 15 records
|
And the response has 13 records
|
||||||
|
|
||||||
|
|
||||||
Scenario: Unassign Permission of the Role
|
Scenario: Unassign Permission of the Role
|
||||||
Given that I want to delete a resource with the key ""
|
Given that I want to delete a "Permmission from a role"
|
||||||
And I request "role/00000000000000000000000000000003/permission/00000000000000000000000000000011"
|
And I request "role/00000000000000000000000000000003/permission/00000000000000000000000000000011"
|
||||||
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"
|
||||||
|
|
||||||
|
|
||||||
Scenario: List assigned Permissions to Role & List available Permissions to assign to Role
|
Scenario: List assigned Permissions to Role & List available Permissions to assign to Role
|
||||||
Given I request "role/00000000000000000000000000000003/permissions"
|
Given I request "role/00000000000000000000000000000003/permissions"
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
|
|||||||
@@ -408,13 +408,13 @@ Scenario Outline: Assign Permission "PM_DASHBOARD" to Role
|
|||||||
| Assign Permissions "PM_CASES" to rol 1 | 1 | 00000000000000000000000000000005 |
|
| Assign Permissions "PM_CASES" to rol 1 | 1 | 00000000000000000000000000000005 |
|
||||||
| Assign Permissions "PM_LOGIN" to rol 2 | 2 | 00000000000000000000000000000001 |
|
| Assign Permissions "PM_LOGIN" to rol 2 | 2 | 00000000000000000000000000000001 |
|
||||||
| Assign Permissions "PM_ALLCASES" to rol 2 | 2 | 00000000000000000000000000000006 |
|
| Assign Permissions "PM_ALLCASES" to rol 2 | 2 | 00000000000000000000000000000006 |
|
||||||
| Assign Permissions "PM_REPORTS" to rol 2 | 2 | 00000000000000000000000000000008 |
|
| Assign Permissions "PM_FOLDERS_VIEW" to rol 2 | 2 | 00000000000000000000000000000015 |
|
||||||
| Assign Permissions "PM_REASSIGNCASE" to rol 2 | 2 | 00000000000000000000000000000007 |
|
| Assign Permissions "PM_REASSIGNCASE" to rol 2 | 2 | 00000000000000000000000000000007 |
|
||||||
| Assign Permissions "PM_SUPERVISOR" to rol 2 | 2 | 00000000000000000000000000000009 |
|
| Assign Permissions "PM_SUPERVISOR" to rol 2 | 2 | 00000000000000000000000000000009 |
|
||||||
| Assign Permissions "PM_SETUP_ADVANCE" to rol 3 | 3 | 00000000000000000000000000000010 |
|
| Assign Permissions "PM_SETUP_ADVANCE" to rol 3 | 3 | 00000000000000000000000000000010 |
|
||||||
| Assign Permissions "PM_DASHBOARD" to rol 4 | 4 | 00000000000000000000000000000011 |
|
| Assign Permissions "PM_DASHBOARD" to rol 4 | 4 | 00000000000000000000000000000011 |
|
||||||
| Assign Permissions "PM_WEBDAV" to rol 5 | 5 | 00000000000000000000000000000012 |
|
| Assign Permissions "PM_WEBDAV" to rol 5 | 5 | 00000000000000000000000000000012 |
|
||||||
| Assign Permissions "PM_DELETECASE" to rol 6 | 6 | 00000000000000000000000000000013 |
|
| Assign Permissions "PM_LOGIN" to rol 6 | 6 | 00000000000000000000000000000001 |
|
||||||
| Assign Permissions "PM_EDITPERSONALINFO" to rol 7 | 7 | 00000000000000000000000000000014 |
|
| Assign Permissions "PM_EDITPERSONALINFO" to rol 7 | 7 | 00000000000000000000000000000014 |
|
||||||
| Assign Permissions "PM_FOLDERS_VIEW" to rol 8 | 8 | 00000000000000000000000000000015 |
|
| Assign Permissions "PM_FOLDERS_VIEW" to rol 8 | 8 | 00000000000000000000000000000015 |
|
||||||
| Assign Permissions "PM_FOLDERS_ADD_FOLDER" to rol 8 | 8 | 00000000000000000000000000000016 |
|
| Assign Permissions "PM_FOLDERS_ADD_FOLDER" to rol 8 | 8 | 00000000000000000000000000000016 |
|
||||||
@@ -482,13 +482,13 @@ Scenario Outline: Unassign Permission of the Role
|
|||||||
| Unassign Permissions "PM_CASES" to rol 1 | 1 | 00000000000000000000000000000005 |
|
| Unassign Permissions "PM_CASES" to rol 1 | 1 | 00000000000000000000000000000005 |
|
||||||
| Unassign Permissions "PM_LOGIN" to rol 2 | 2 | 00000000000000000000000000000001 |
|
| Unassign Permissions "PM_LOGIN" to rol 2 | 2 | 00000000000000000000000000000001 |
|
||||||
| Unassign Permissions "PM_ALLCASES" to rol 2 | 2 | 00000000000000000000000000000006 |
|
| Unassign Permissions "PM_ALLCASES" to rol 2 | 2 | 00000000000000000000000000000006 |
|
||||||
| Unassign Permissions "PM_REPORTS" to rol 2 | 2 | 00000000000000000000000000000008 |
|
| Unassign Permissions "PM_FOLDERS_VIEW" to rol 2 | 2 | 00000000000000000000000000000015 |
|
||||||
| Unassign Permissions "PM_REASSIGNCASE" to rol 2 | 2 | 00000000000000000000000000000007 |
|
| Unassign Permissions "PM_REASSIGNCASE" to rol 2 | 2 | 00000000000000000000000000000007 |
|
||||||
| Unassign Permissions "PM_SUPERVISOR" to rol 2 | 2 | 00000000000000000000000000000009 |
|
| Unassign Permissions "PM_SUPERVISOR" to rol 2 | 2 | 00000000000000000000000000000009 |
|
||||||
| Unassign Permissions "PM_SETUP_ADVANCE" to rol 3 | 3 | 00000000000000000000000000000010 |
|
| Unassign Permissions "PM_SETUP_ADVANCE" to rol 3 | 3 | 00000000000000000000000000000010 |
|
||||||
| Unassign Permissions "PM_DASHBOARD" to rol 4 | 4 | 00000000000000000000000000000011 |
|
| Unassign Permissions "PM_DASHBOARD" to rol 4 | 4 | 00000000000000000000000000000011 |
|
||||||
| Unassign Permissions "PM_WEBDAV" to rol 5 | 5 | 00000000000000000000000000000012 |
|
| Unassign Permissions "PM_WEBDAV" to rol 5 | 5 | 00000000000000000000000000000012 |
|
||||||
| Unassign Permissions "PM_DELETECASE" to rol 6 | 6 | 00000000000000000000000000000013 |
|
| Unassign Permissions "PM_LOGIN" to rol 6 | 6 | 00000000000000000000000000000001 |
|
||||||
| Unassign Permissions "PM_EDITPERSONALINFO" to rol 7 | 7 | 00000000000000000000000000000014 |
|
| Unassign Permissions "PM_EDITPERSONALINFO" to rol 7 | 7 | 00000000000000000000000000000014 |
|
||||||
| Unassign Permissions "PM_FOLDERS_VIEW" to rol 8 | 8 | 00000000000000000000000000000015 |
|
| Unassign Permissions "PM_FOLDERS_VIEW" to rol 8 | 8 | 00000000000000000000000000000015 |
|
||||||
| Unassign Permissions "PM_FOLDERS_ADD_FOLDER" to rol 8 | 8 | 00000000000000000000000000000016 |
|
| Unassign Permissions "PM_FOLDERS_ADD_FOLDER" to rol 8 | 8 | 00000000000000000000000000000016 |
|
||||||
|
|||||||
@@ -21,30 +21,30 @@ Scenario Outline: Create new Role (NEGATIVE TESTS)
|
|||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
| test_description | rol_code | rol_name | rol_status | error_code | error_message |
|
| test_description | rol_code | rol_name | rol_status | error_code | error_message |
|
||||||
| Create Role with same name | PROCESSMAKER_OPERATOR | Operator | ACTIVE | 400 | already_exists |
|
| Create Role with same name | PROCESSMAKER_OPERATOR | Operator | ACTIVE | 400 | already exists |
|
||||||
| Create Role without fill required fields "rol_code" | | sample | | 400 | required_fields |
|
| Create Role without fill required fields "rol_code" | | sample | | 400 | rol_code |
|
||||||
| Create Role without fill required fields "rol_name" | PROCESSMAKER_ADMINISTRATOR1 | | ACTIVE | 400 | required_fields |
|
| Create Role without fill required fields "rol_name" | PROCESSMAKER_ADMINISTRATOR1 | | ACTIVE | 400 | rol_name |
|
||||||
| Create Role without fill required fields "rol_status" | PROCESSMAKER_MANAGER1 | Rol con code manager | | 400 | required_fields |
|
| Create Role without fill required fields "rol_status" | PROCESSMAKER_MANAGER1 | Rol con code manager | | 400 | rol_status |
|
||||||
| Create Role with wrong field rol_status | PROCESSMAKER_ADMINISTRATOR2 | Rol con code administrator/inactive | SAMPLE | 400 | rol_status |
|
| Create Role with wrong field rol_status | PROCESSMAKER_ADMINISTRATOR2 | Rol con code administrator/inactive | SAMPLE | 400 | rol_status |
|
||||||
|
|
||||||
|
|
||||||
#Scenario Outline: Assign User to Role (NEGATIVE TESTS)
|
Scenario Outline: Assign User to Role (NEGATIVE TESTS)
|
||||||
# Given POST this data:
|
Given POST this data:
|
||||||
# """
|
"""
|
||||||
# {
|
{
|
||||||
# "usr_uid": "<usr_uid>"
|
"usr_uid": "<usr_uid>"
|
||||||
# }
|
}
|
||||||
# """
|
"""
|
||||||
# And I request "role/rol_uid/user"
|
And I request "role/rol_uid/user"
|
||||||
# Then the response status code should be <error_code>
|
Then the response status code should be <error_code>
|
||||||
# And the response status message should have the following text "<error_message>"
|
And the response status message should have the following text "<error_message>"
|
||||||
#
|
|
||||||
# Examples:
|
Examples:
|
||||||
#
|
|
||||||
# | Description | rol_uid | usr_uid | error_code | error_message |
|
| Description | rol_uid | usr_uid | error_code | error_message |
|
||||||
# | Without rol_uid | 00000000000000000000000000000004 | 51049032352d56710347233042615067 | 400 | rol_uid |
|
| Without rol_uid | 00000000000000000000000000000004 | 51049032352d56710347233042615067 | 400 | rol_uid |
|
||||||
# | Without usr_uid | 00000000000000000000000000000004 | | 400 | usr_uid |
|
| Without usr_uid | 00000000000000000000000000000004 | | 400 | usr_uid |
|
||||||
# | Assign same user to rol | 00000000000000000000000000000002 | 00000000000000000000000000000001 | 400 | usr_uid |
|
| Assign same user to rol | 00000000000000000000000000000002 | 00000000000000000000000000000001 | 400 | usr_uid |
|
||||||
|
|
||||||
|
|
||||||
Scenario Outline: Assign Permission "PM_DASHBOARD" to Role (NEGATIVE TESTS)
|
Scenario Outline: Assign Permission "PM_DASHBOARD" to Role (NEGATIVE TESTS)
|
||||||
|
|||||||
Reference in New Issue
Block a user