diff options
author | 2018-09-26 09:33:04 +0300 | |
---|---|---|
committer | 2018-09-26 09:33:04 +0300 | |
commit | 373f52e9080ec7b5c0fb0b2c371bd557060bc9ae (patch) | |
tree | 3b8ac1ec3222314f81d97d46721d81df052e2146 /workflow-bdd/features | |
parent | ac89252d0999c9916915e7997261a681b39544a1 (diff) |
Add version request/response DTOs.
In order to prevent duplicate key error when updating input/output parameters - hide their internal Ids.
Change-Id: I9bd23cb0b6559a94e32c5c7d75f3e0135822bcb1
Issue-ID: SDC-1793
Signed-off-by: talig <talig@amdocs.com>
Diffstat (limited to 'workflow-bdd/features')
-rw-r--r-- | workflow-bdd/features/Version.feature | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/workflow-bdd/features/Version.feature b/workflow-bdd/features/Version.feature index a5327fd7..3ca68c96 100644 --- a/workflow-bdd/features/Version.feature +++ b/workflow-bdd/features/Version.feature @@ -65,6 +65,24 @@ Feature: Workflow Versions Then I want to get path "/workflows/{item.id}/versions/{item.versionId}" And I want to check property "description" for value "workflow version description updated" + Scenario: Update version with duplicate input name - invalid + And I want to update the input property "description" with value "version with with duplicate input name" + And I want to create for path "/workflows/{item.id}/versions" with the input data from the context + And I want to copy to property "item.versionId" from response data path "id" + + And I want to set the input data to file "resources/json/versionWithDuplicateInputName.json" + Then I want the following to fail with response status code 400 + When I want to update for path "/workflows/{item.id}/versions/{item.versionId}" with the input data from the context + + Scenario: Update version with duplicate output name - invalid + And I want to update the input property "description" with value "version with with duplicate output name" + And I want to create for path "/workflows/{item.id}/versions" with the input data from the context + And I want to copy to property "item.versionId" from response data path "id" + + And I want to set the input data to file "resources/json/versionWithDuplicateOutputName.json" + Then I want the following to fail with response status code 400 + When I want to update for path "/workflows/{item.id}/versions/{item.versionId}" with the input data from the context + Scenario: Update version with inputs/outputs (create/update/delete parameters) And I want to set the input data to file "resources/json/versionWith2Inputs2Outputs1.json" And I want to create for path "/workflows/{item.id}/versions" with the input data from the context |