It was fixed the 'error password' verification test in order to start a task with a wrong password.
This commit is contained in:
@@ -4,6 +4,9 @@ Feature: Project User Resources
|
|||||||
Background:
|
Background:
|
||||||
Given that I have a valid access_token
|
Given that I have a valid access_token
|
||||||
|
|
||||||
|
|
||||||
|
# GET /api/1.0/{workspace}/project/<project-uid>/users
|
||||||
|
# Get project users list
|
||||||
Scenario: Get a list of users of a project
|
Scenario: Get a list of users of a project
|
||||||
Given I request "project/1265557095225ff5c688f46031700471/users"
|
Given I request "project/1265557095225ff5c688f46031700471/users"
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
@@ -11,40 +14,48 @@ Feature: Project User Resources
|
|||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
And the type is "array"
|
And the type is "array"
|
||||||
|
|
||||||
|
|
||||||
|
# GET /api/1.0/{workspace}/project/<project-uid>/starting-tasks
|
||||||
|
# Get started tasks list
|
||||||
Scenario: Get a list of starting task of a project
|
Scenario: Get a list of starting task of a project
|
||||||
Given I request "project/1265557095225ff5c688f46031700471/starting-tasks"
|
Given I request "project/1265557095225ff5c688f46031700471/starting-tasks"
|
||||||
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"
|
|
||||||
|
|
||||||
Scenario: Get a list of start task of a user
|
|
||||||
Given I request "project/1265557095225ff5c688f46031700471/user/00000000000000000000000000000001/starting-tasks"
|
|
||||||
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"
|
||||||
|
|
||||||
|
|
||||||
|
# GET /api/1.0/{workspace}/project/<project-uid>/user/<user-uid>/starting-tasks
|
||||||
|
# Get started tasks list by a user
|
||||||
|
Scenario: Get a list of start task of a user
|
||||||
|
Given I request "project/1265557095225ff5c688f46031700471/user/00000000000000000000000000000001/starting-tasks"
|
||||||
|
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"
|
||||||
|
|
||||||
|
|
||||||
|
# GET /api/1.0/{workspace}/project/<project-uid>/ws/user/can-start-task
|
||||||
|
# Verify if it is possible to start a task with valid/invalid credentials
|
||||||
Scenario Outline: Verify if a user can start a task
|
Scenario Outline: Verify if a user can start a task
|
||||||
Given POST this data:
|
Given POST this data:
|
||||||
"""
|
"""
|
||||||
{
|
{
|
||||||
"act_uid": "<act_uid>",
|
"act_uid": "<act_uid>",
|
||||||
"username": "<username>",
|
"username": "<username>",
|
||||||
"password": "<password>"
|
"password": "<password>"
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
And I request "project/1265557095225ff5c688f46031700471/ws/user/can-start-task"
|
And I request "project/1265557095225ff5c688f46031700471/ws/user/can-start-task"
|
||||||
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>"
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
| test_description | act_uid | username | password | http_code | type |
|
| test_description | act_uid | username | password | http_code | type |
|
||||||
| error username | 1352844695225ff5fe54de2005407079 | adm | admin | 400 | string |
|
| error username | 1352844695225ff5fe54de2005407079 | adm | admin | 400 | string |
|
||||||
# TODO review the Backend QA instance and Michelangelo instance (because a user with wrong password can able to start a task)
|
| error password | 1352844695225ff5fe54de2005407079 | admin | adm | 400 | string |
|
||||||
#| error password | 1352844695225ff5fe54de2005407079 | admin | adm | 400 | string |
|
|
||||||
| short activity | 1352844695225ff5fe54de20 | admin | admin | 400 | string |
|
| short activity | 1352844695225ff5fe54de20 | admin | admin | 400 | string |
|
||||||
| error activity | 225ff5fe54de20054070791352844695 | admin | admin | 400 | string |
|
| error activity | 225ff5fe54de20054070791352844695 | admin | admin | 400 | string |
|
||||||
| all ok | 1352844695225ff5fe54de2005407079 | admin | sample123* | 200 | array |
|
| all ok | 1352844695225ff5fe54de2005407079 | admin | sample123* | 200 | array |
|
||||||
|
|||||||
Reference in New Issue
Block a user