diff options
author | ilanap <ilanap@amdocs.com> | 2019-01-01 17:22:07 +0200 |
---|---|---|
committer | Oren Kleks <orenkle@amdocs.com> | 2019-01-02 12:37:08 +0000 |
commit | 866418030975f2ee09a27d144de4e880218e84e8 (patch) | |
tree | 70a329025f0c382b658c667813dd4f9183e6e98e /cucumber-js-test-apis-ci/features/Onboarding/UniqueValue.feature | |
parent | 9da0b14bb0a0321f08458ba7b9148336e00d77d3 (diff) |
docker for cucumber BDD
Issue-ID: SDC-2028
Change-Id: I7c1376c449ba7650c3bbc1838726cfd178d2ca40
Signed-off-by: ilanap <ilanap@amdocs.com>
Diffstat (limited to 'cucumber-js-test-apis-ci/features/Onboarding/UniqueValue.feature')
-rw-r--r-- | cucumber-js-test-apis-ci/features/Onboarding/UniqueValue.feature | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/cucumber-js-test-apis-ci/features/Onboarding/UniqueValue.feature b/cucumber-js-test-apis-ci/features/Onboarding/UniqueValue.feature new file mode 100644 index 0000000000..31e41b9931 --- /dev/null +++ b/cucumber-js-test-apis-ci/features/Onboarding/UniqueValue.feature @@ -0,0 +1,33 @@ +Feature: Unique value + + Scenario: List unique types + When I want to get path "/unique-types" + Then I want to check property "listCount" for value 2 + And I want to check property "results[0]" for value "VspName" + And I want to check property "results[1]" for value "VlmName" + + Scenario: Get unique value - non existing type (negative) + Given I want the following to fail with error code "UNIQUE_TYPE_NOT_FOUND" + When I want to get path "/unique-types/nonExistingType/values/someValue" + + Scenario: Get unique value - non existing VLM name + When I want to get path "/unique-types/VlmName/values/nonExistingName" + Then I want to check property "occupied" to be false + + Scenario: Get unique value - non existing VSP name + When I want to get path "/unique-types/VspName/values/nonExistingName" + Then I want to check property "occupied" to be false + + Scenario: Get unique value - existing VLM name + Given I want to create a VLM + + When I want to get path "/unique-types/VlmName/values/{vlm.name}" + Then I want to check property "occupied" to be true + + Scenario: Get unique value - existing VSP name + Given I want to create a VLM + And I want to create a VSP with onboarding type "NetworkPackage" + And I want to get path "/vendor-software-products/{item.id}/versions/{item.versionId}" + + When I want to get path "/unique-types/VspName/values/{responseData.name}" + Then I want to check property "occupied" to be true
\ No newline at end of file |