From 4d0fac7c8057d2732203fe9f219059945aa9750c Mon Sep 17 00:00:00 2001 From: talig Date: Mon, 16 Apr 2018 08:50:56 +0300 Subject: Add flow tests for unique value RESTs Change-Id: I6ffbdbbcf83b5d17db83c39cc32fcd164ccfd6c0 Issue-ID: SDC-1177 Signed-off-by: talig --- .../features/Onboarding/UniqueValue.feature | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 openecomp-bdd/features/Onboarding/UniqueValue.feature (limited to 'openecomp-bdd/features/Onboarding') diff --git a/openecomp-bdd/features/Onboarding/UniqueValue.feature b/openecomp-bdd/features/Onboarding/UniqueValue.feature new file mode 100644 index 0000000000..31e41b9931 --- /dev/null +++ b/openecomp-bdd/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 -- cgit 1.2.3-korg