Download Processed file updated flow tests 79/34779/1
authorshrikantawachar <shrikant.awachar@amdocs.com>
Thu, 8 Mar 2018 14:28:24 +0000 (19:58 +0530)
committershrikantawachar <shrikant.awachar@amdocs.com>
Thu, 8 Mar 2018 14:28:24 +0000 (19:58 +0530)
Corrected flow test for download file and updated rest of flow tests.

Change-Id: If61b4f0750c012de885894e3a5d294b226edb135
Issue-ID: SDC-1087
Signed-off-by: shrikantawachar <shrikant.awachar@amdocs.com>
openecomp-bdd/features/AbortFunctionality/TestAbort_ForInvalidHeatFile.feature
openecomp-bdd/features/AbortFunctionality/TestAbort_ForValidHeatFile.feature
openecomp-bdd/features/AbortFunctionality/TestProperties.feature
openecomp-bdd/features/AbortFunctionality/TestRollback.feature
openecomp-bdd/features/AbortFunctionality/TestSubmit.feature
openecomp-bdd/features/Example_HEAT.feature
openecomp-bdd/resources/uploads/BASE_MUX_with_no_base.zip [new file with mode: 0644]

index cdfea4f..1c501d6 100644 (file)
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-Feature: Abort Flow
+Feature: Abort Flow - Test validation data
 
   Background: Init
     Given I want to create a VLM
index 3eb0463..c3ee8a5 100644 (file)
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-Feature: Abort Flow
+Feature: Abort Flow - Test for valid heat
 
   Background: Init
     Given I want to create a VLM
index d268c64..e9e9acd 100644 (file)
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-Feature: Abort Flow
+Feature: Abort Flow - Test Properties
 
   Background: Init
     Given I want to create a VLM
@@ -29,5 +29,4 @@ Feature: Abort Flow
     Then I want to get path "/vendor-software-products/{item.id}/versions/{item.versionId}"
     Then I want to check property "candidateOnboardingOrigin" exists
     Then I want to check property "candidateOnboardingOrigin" for value "zip"
-    Then I want to check property "onboardingOrigin" does not exist
-    # Then I want to print the context data
\ No newline at end of file
+    Then I want to check property "onboardingOrigin" does not exist
\ No newline at end of file
index 50f16e6..d61a1cc 100644 (file)
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-Feature: Abort Flow
+Feature: Abort Flow - Test rollback
 
   Background: Init
     Given I want to create a VLM
index f39b95d..3153022 100644 (file)
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-Feature: Abort Flow
+Feature: Abort Flow - Test Submit
 
   Background: Init
     Given I want to create a VLM
index b46ff52..778fd96 100644 (file)
@@ -1,7 +1,19 @@
+# Copyright © 2016-2018 European Support Limited
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
 Feature: Heat Example File
   Scenario: Test with update for heat file and check for validation warning
-    # Use ONLY during development. Example for running a test with an existing item in order to not create an item each test.
-    # Given Item "c99b775cc0764746b15a32b728c10402" and version Id "f044f9e265ac46c2882cb14c4b1732a5"
     Given I want to create a VLM
 
     When I want to create a VSP with onboarding type "NetworkPackage"
@@ -10,14 +22,9 @@ Feature: Heat Example File
     When I want to upload a NetworkPackage for this VSP from path "resources/uploads/BASE_MUX.zip"
     And I want to process the NetworkPackage file for this VSP
 
-# See in tests for abort - part of new functionality
-#    When I want to download the NetworkPackage for this VSP to path "resources/downloads/base_mux.zip"
-#    Then I want to check property "data[0].file" for value "CB_BASE.yaml"
-#
-#    Then I want to set the input data to:
-#    """
-#    {"modules":[{"name":"module_1","isBase":false,"yaml":"CB_BASE.yaml"}],"unassigned":[],"artifacts":["MUX_Parameters.env","CB_MUX.yaml"],"nested":[]}
-#    """
-#    Then I want to update for path "/vendor-software-products/{item.id}/versions/{item.versionId}/orchestration-template-candidate/manifest" with the input data from the context
-#    Then I want to process the NetworkPackage file for this VSP
-#    Then I want to check property "errors['CB_MUX.yaml'][0].level" for value "WARNING"
\ No newline at end of file
+    When I want to download the NetworkPackage for this VSP to path "resources/downloads/base_mux.zip"
+    Then I want to check property "data[0].file" for value "CB_BASE.yaml"
+
+    When I want to upload a NetworkPackage for this VSP from path "resources/uploads/BASE_MUX_with_no_base.zip"
+    Then I want to process the NetworkPackage file for this VSP
+    Then I want to check property "errors['CB_MUX.yaml'][0].level" for value "WARNING"
\ No newline at end of file
diff --git a/openecomp-bdd/resources/uploads/BASE_MUX_with_no_base.zip b/openecomp-bdd/resources/uploads/BASE_MUX_with_no_base.zip
new file mode 100644 (file)
index 0000000..8698ef7
Binary files /dev/null and b/openecomp-bdd/resources/uploads/BASE_MUX_with_no_base.zip differ