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