aboutsummaryrefslogtreecommitdiffstats
path: root/workflow/workflow-bdd/features/VersionState.feature
diff options
context:
space:
mode:
authortalig <talig@amdocs.com>2018-07-24 10:30:55 +0300
committertalig <talig@amdocs.com>2018-07-24 10:30:55 +0300
commitf96e244d1764e0dfb5f574b73eb4d248840447c6 (patch)
tree8a9e3d26846d38192c76c6f8b61fc963bf15ad48 /workflow/workflow-bdd/features/VersionState.feature
parentc25c8557c370e683fc97e27364b71f3468ec8354 (diff)
Add/Fix workflow/version flow tests
Change-Id: I63d432333d5038ff5178742fb3b2347d1b551879 Issue-ID: SDC-1503 Signed-off-by: talig <talig@amdocs.com>
Diffstat (limited to 'workflow/workflow-bdd/features/VersionState.feature')
-rw-r--r--workflow/workflow-bdd/features/VersionState.feature17
1 files changed, 14 insertions, 3 deletions
diff --git a/workflow/workflow-bdd/features/VersionState.feature b/workflow/workflow-bdd/features/VersionState.feature
index c869d146..1bb72ab8 100644
--- a/workflow/workflow-bdd/features/VersionState.feature
+++ b/workflow/workflow-bdd/features/VersionState.feature
@@ -25,7 +25,7 @@ Feature: Workflow Version State
Then I want to check property "name" for value "DRAFT"
And I want to check property "nextStates[0]" for value "CERTIFIED"
- Scenario: Update state to current state
+ Scenario: Update state to current state - invalid
Then I want the following to fail with response status code 422
When I want to update the input property "name" with value "DRAFT"
And I want to create for path "/workflows/{item.id}/versions/{item.versionId}/state" with the input data from the context
@@ -37,8 +37,19 @@ Feature: Workflow Version State
And I want to check property "name" for value "CERTIFIED"
And I want to check property "nextStates" to have length 0
- Scenario: Update state when CERTIFIED
+ Scenario: Update state when CERTIFIED - invalid
When I want to update the input property "name" with value "CERTIFIED"
And I want to create for path "/workflows/{item.id}/versions/{item.versionId}/state" with the input data from the context
When I want the following to fail with response status code 422
- Then I want to create for path "/workflows/{item.id}/versions/{item.versionId}/state" with the input data from the context \ No newline at end of file
+ Then I want to create for path "/workflows/{item.id}/versions/{item.versionId}/state" with the input data from the context
+
+ Scenario: Update when CERTIFIED - invalid
+ When I want to update the input property "name" with value "CERTIFIED"
+ And I want to create for path "/workflows/{item.id}/versions/{item.versionId}/state" with the input data from the context
+ And I want to update the input property "description" with value "workflow version description updated"
+ Then I want the following to fail with response status code 422
+ When I want to update for path "/workflows/{item.id}/versions/{item.versionId}" with the input data from the context
+
+ Scenario: Create second version based on non CERTIFIED one - invalid
+ Then I want the following to fail with response status code 403
+ When I want to create for path "/workflows/{item.id}/versions?baseVersionId={item.versionId}" with the input data from the context \ No newline at end of file