diff options
author | Avi Gaffa <avi.gaffa@amdocs.com> | 2018-09-27 08:16:25 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-09-27 08:16:25 +0000 |
commit | ced52387d2d333d860dbee2fa1ee0a7a0108a960 (patch) | |
tree | d603391b7915cea2f6db336cee35f92cd4c9bf50 /workflow-bdd | |
parent | 1369104088bddbb370441edb3223ed99619e1d77 (diff) | |
parent | 373f52e9080ec7b5c0fb0b2c371bd557060bc9ae (diff) |
Merge "Add version request/response DTOs."
Diffstat (limited to 'workflow-bdd')
3 files changed, 72 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 diff --git a/workflow-bdd/resources/json/versionWithDuplicateInputName.json b/workflow-bdd/resources/json/versionWithDuplicateInputName.json new file mode 100644 index 00000000..978d9c09 --- /dev/null +++ b/workflow-bdd/resources/json/versionWithDuplicateInputName.json @@ -0,0 +1,27 @@ +{ + "description": "version with with duplicate input name", + "inputs": [ + { + "mandatory": true, + "name": "in1", + "type": "STRING" + }, + { + "mandatory": true, + "name": "in1", + "type": "INTEGER" + } + ], + "outputs": [ + { + "mandatory": true, + "name": "out1", + "type": "TIMESTAMP" + }, + { + "mandatory": true, + "name": "out2", + "type": "BOOLEAN" + } + ] +}
\ No newline at end of file diff --git a/workflow-bdd/resources/json/versionWithDuplicateOutputName.json b/workflow-bdd/resources/json/versionWithDuplicateOutputName.json new file mode 100644 index 00000000..4810ebe9 --- /dev/null +++ b/workflow-bdd/resources/json/versionWithDuplicateOutputName.json @@ -0,0 +1,27 @@ +{ + "description": "version with duplicate output name", + "inputs": [ + { + "mandatory": true, + "name": "in1", + "type": "STRING" + }, + { + "mandatory": true, + "name": "in2", + "type": "INTEGER" + } + ], + "outputs": [ + { + "mandatory": true, + "name": "out1", + "type": "TIMESTAMP" + }, + { + "mandatory": true, + "name": "out1", + "type": "BOOLEAN" + } + ] +}
\ No newline at end of file |