Remove regression tag from disabled daily tests
[osm/tests.git] / robot-systest / deprecated / testsuite / cli / TS04__Hackfest_Simplecharm_NS.robot
1 # -*- coding: utf-8 -*-
2
3 ##
4 # Copyright 2019 Tech Mahindra Limited
5 #
6 # All Rights Reserved.
7 #
8 # Licensed under the Apache License, Version 2.0 (the "License"); you may
9 # not use this file except in compliance with the License. You may obtain
10 # a copy of the License at
11 #
12 #         http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
17 # License for the specific language governing permissions and limitations
18 # under the License.
19 ##
20
21 ## Change log:
22 # 1. Feature 7829: Mrityunjay Yadav, Jayant Madavi : MY00514913@techmahindra.com : 06-aug-2019
23 ##
24
25
26 *** Settings ***
27 Documentation    Test Suite to create hackfest simplecharm ns
28 Library     OperatingSystem
29 Library     String
30 Library     Collections
31 Resource    ../../lib/cli/vnfd_lib.robot
32 Resource    ../../lib/cli/nsd_lib.robot
33 Resource    ../../lib/cli/ns_lib.robot
34 Resource    ../../lib/cli/vim_account_lib.robot
35 Library     ../../lib/custom_lib.py
36 Variables   ../../resource/cli/hackfest_simplecharm_ns_data.py
37
38 Suite Teardown     Run Keyword And Ignore Error    Test Cleanup
39
40
41 *** Variables ***
42 @{vnfd_ids}
43 ${nsd_id}
44 @{nsd_ids}
45 @{ns_ids}
46 ${vnfdftpPath}    https://osm-download.etsi.org/ftp/osm-6.0-six/7th-hackfest/packages/hackfest_simplecharm_vnf.tar.gz
47 ${nsdftpPath}    https://osm-download.etsi.org/ftp/osm-6.0-six/7th-hackfest/packages/hackfest_simplecharm_ns.tar.gz
48
49
50 *** Test Cases ***
51 Create Hackfest Simple Charm VNF Descriptor
52     [Tags]   hackfest_simplecharm    comprehensive
53
54     #Build VNF Descriptor    ${vnfdPckgPath}
55     #Workarround for charm build issue
56     ${rc}   ${stdout}=      Run and Return RC and Output    wget -P '${CURDIR}${/}../../..${vnfdPckgPath}${/}build/' ${vnfdftpPath}
57     ${vnfd_id}=    Create VNFD    '${CURDIR}${/}../../..${vnfdPckgPath}${vnfdPckg}'
58     Append To List     ${vnfd_ids}       ${vnfd_id}
59
60
61 Create Hackfest Simple Charm NS Descriptor
62     [Tags]   hackfest_simplecharm    comprehensive
63
64     #Build NS Descriptor    ${nsdPckgPath}
65     ${rc}   ${stdout}=      Run and Return RC and Output    wget -P '${CURDIR}${/}../../..${nsdPckgPath}${/}build/' ${nsdftpPath}
66     ${nsd_id}=    Create NSD    '${CURDIR}${/}../../..${nsdPckgPath}${nsdPckg}'
67     Append To List     ${nsd_ids}       ${nsd_id}
68
69
70 Network Service Instance Test
71     [Documentation]  Launch and terminate network services
72     [Tags]   hackfest_simplecharm    comprehensive
73
74     :FOR    ${vim_name}    IN    @{vim}
75     \    Launch Network Services and Return    ${vim_name}
76
77
78 Delete NS Instance Test
79     [Tags]    comprehensive   hackfest_simplecharm
80
81     :FOR    ${ns}  IN   @{ns_ids}
82     \   Delete NS   ${ns}
83
84
85 Delete NS Descriptor Test
86     [Tags]   hackfest_simplecharm    comprehensive
87
88     :FOR    ${nsd}  IN   @{nsd_ids}
89     \   Delete NSD      ${nsd}
90
91
92 Delete VNF Descriptor Test
93     [Tags]   hackfest_simplecharm    comprehensive
94
95     :FOR    ${vnfd_id}  IN   @{vnfd_ids}
96     \   Delete VNFD     ${vnfd_id}
97
98
99 *** Keywords ***
100 Test Cleanup
101     [Documentation]  Test Suit Cleanup: Deliting Descriptor, instance and vim
102
103     :FOR    ${ns}  IN   @{ns_ids}
104     \   Delete NS   ${ns}
105
106     :FOR    ${nsd}  IN   @{nsd_ids}
107     \   Delete NSD      ${nsd}
108
109     :FOR    ${vnfd}  IN   @{vnfd_ids}
110     \   Delete VNFD     ${vnfd}
111
112 #    :FOR    ${vim_id}  IN   @{vim}
113 #    \   Delete Vim Account    ${vim_id}