4ca68f3b2b2d204774303037361eed31bd9bc582
[so.git] / bpmn / MSOInfrastructureBPMN / src / test / groovy / org / openecomp / mso / bpmn / infrastructure / scripts / UpdateVfModuleVolumeInfraV1Test.groovy
1 /*- \r
2  * ============LICENSE_START======================================================= \r
3  * OPENECOMP - MSO \r
4  * ================================================================================ \r
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. \r
6  * ================================================================================ \r
7  * Licensed under the Apache License, Version 2.0 (the "License"); \r
8  * you may not use this file except in compliance with the License. \r
9  * You may obtain a copy of the License at \r
10  * \r
11  *      http://www.apache.org/licenses/LICENSE-2.0 \r
12  * \r
13  * Unless required by applicable law or agreed to in writing, software \r
14  * distributed under the License is distributed on an "AS IS" BASIS, \r
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. \r
16  * See the License for the specific language governing permissions and \r
17  * limitations under the License. \r
18  * ============LICENSE_END========================================================= \r
19  */ \r
20 \r
21 package org.openecomp.mso.bpmn.infrastructure.scripts;\r
22 \r
23 import static org.junit.Assert.*\r
24 import static org.mockito.Mockito.*\r
25 \r
26 import org.junit.Before\r
27 import org.junit.Ignore\r
28 import org.junit.Rule\r
29 import org.junit.runner.RunWith\r
30 import org.mockito.MockitoAnnotations\r
31 import org.mockito.runners.MockitoJUnitRunner\r
32 \r
33 import com.github.tomakehurst.wiremock.junit.WireMockRule\r
34 \r
35 @RunWith(MockitoJUnitRunner.class)\r
36 @Ignore // No Junits exists in this class to run\r
37 class UpdateVfModuleVolumeInfraV1Test {\r
38         \r
39         String xml = """\r
40         <relationship-list>\r
41                 <relationship>\r
42                         <related-to>tenant</related-to>\r
43                         <related-link>https://aai-ext1.test.com:8443/aai/v7/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mdt1/tenants/tenant/fba1bd1e195a404cacb9ce17a9b2b421/</related-link>\r
44                         <relationship-data>\r
45                                 <relationship-key>tenant.tenant-id</relationship-key>\r
46                                 <relationship-value>fba1bd1e195a404cacb9ce17a9b2b421</relationship-value>\r
47                         </relationship-data>\r
48                         <relationship-data>\r
49                                 <relationship-key>cloud-region.cloud-owner</relationship-key>\r
50                                 <relationship-value>att-aic</relationship-value>\r
51                         </relationship-data>\r
52                         <relationship-data>\r
53                                 <relationship-key>cloud-region.cloud-region-id</relationship-key>\r
54                                 <relationship-value>mdt1</relationship-value>\r
55                         </relationship-data>\r
56                         <related-to-property>\r
57                                 <property-key>tenant.tenant-name</property-key>\r
58                                 <property-value>ECOMP_MDT1</property-value>\r
59                         </related-to-property>\r
60                 </relationship>\r
61                 <relationship>\r
62                         <related-to>vf-module</related-to>\r
63                         <related-link>https://aai-ext1.test.com:8443/aai/v7/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mdt1/tenants/tenant/fba1bd1e195a404cacb9ce17a9b2b421/</related-link>\r
64                         <relationship-data>\r
65                                 <relationship-key>vf-module.vf-module-ids</relationship-key>\r
66                                 <relationship-value>fba1bd1e195a404cacb9ce17a9b2b421</relationship-value>\r
67                         </relationship-data>\r
68                         <relationship-data>\r
69                                 <relationship-key>cloud-region.cloud-owner</relationship-key>\r
70                                 <relationship-value>att-aic</relationship-value>\r
71                         </relationship-data>\r
72                         <relationship-data>\r
73                                 <relationship-key>cloud-region.cloud-region-id</relationship-key>\r
74                                 <relationship-value>mdt1</relationship-value>\r
75                         </relationship-data>\r
76                         <related-to-property>\r
77                                 <property-key>vf-module.vf-module-name</property-key>\r
78                                 <property-value>ECOMP_MDT1</property-value>\r
79                         </related-to-property>\r
80                 </relationship>         \r
81         </relationship-list>\r
82 """\r
83         \r
84         @Rule\r
85         public WireMockRule wireMockRule = new WireMockRule(28090);\r
86         \r
87         @Before\r
88         public void init()\r
89         {\r
90                 MockitoAnnotations.initMocks(this)\r
91                 \r
92         }\r
93 }\r