aboutsummaryrefslogtreecommitdiffstats
path: root/workflow/workflow-bdd/features/VersionState.feature
diff options
context:
space:
mode:
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