docker for cucumber BDD
[sdc.git] / cucumber-js-test-apis-ci / features / AbortFunctionality / TestAbort_ForInvalidHeatFile.feature
1 # Copyright © 2016-2018 European Support Limited
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 Feature: Abort Flow - Test validation data
16
17   Background: Init
18     Given I want to create a VLM
19
20   Scenario: Test abort functionality , Check validation data for invalid heat
21     When I want to create a VSP with onboarding type "NetworkPackage"
22     Then I want to make sure this Item has status "Draft"
23
24     When I want to upload a NetworkPackage for this VSP from path "resources/uploads/errorHeat.zip"
25     # abort
26     When I want to delete for path "/vendor-software-products/{item.id}/versions/{item.versionId}/orchestration-template-candidate"
27
28     When I want to get path "/vendor-software-products/{item.id}/versions/{item.versionId}"
29     Then I want to check property "onboardingOrigin" does not exist
30     Then I want to check property "candidateOnboardingOrigin" does not exist
31     Then I want to check property "validationData" does not exist
32
33     When I want to upload a NetworkPackage for this VSP from path "resources/uploads/errorHeat.zip"
34     When I want to process the NetworkPackage file for this VSP
35     # validation data should have been updated as heat is invalid
36     Then I want to get path "/vendor-software-products/{item.id}/versions/{item.versionId}"
37     Then I want to check property "validationData" exists
38
39     # abort - processed invalid file and check validation data
40     When I want to delete for path "/vendor-software-products/{item.id}/versions/{item.versionId}/orchestration-template-candidate"
41
42     When I want to get path "/vendor-software-products/{item.id}/versions/{item.versionId}"
43     Then I want to check property "onboardingOrigin" does not exist
44     Then I want to check property "candidateOnboardingOrigin" does not exist
45     Then I want to check property "validationData" does not exist