[VID-3] Setting docker image tag
[vid.git] / vid / src / main / webapp / WEB-INF / jsp / testMso.jsp
1 <link rel="stylesheet" type="text/css" href="app/vid/test/testMso.css" />
2 <script src="app/vid/test/testMso.js"></script>
3
4 <link rel="stylesheet" type="text/css" href="app/vid/styles/dialogs.css" />
5
6 <script src="app/vid/scripts/controller/msoCommitController.js"></script>
7 <script src="app/vid/scripts/controller/detailsDialogController.js"></script>
8
9 <script src="app/vid/scripts/services/dataService.js"></script>
10 <script src="app/vid/scripts/services/detailsService.js"></script>
11 <script src="app/vid/scripts/services/componentService.js"></script>
12 <script src="app/vid/scripts/services/propertyService.js"></script>
13 <script src="app/vid/scripts/services/msoService.js"></script>
14 <script src="app/vid/scripts/services/utilityService.js"></script>
15
16 <script src="app/vid/scripts/directives/extensionsDirective.js"></script>
17 <script src="app/vid/scripts/directives/parameterBlockDirective.js"></script>
18 <script src="app/vid/scripts/directives/popupWindowDirective.js"></script>
19 <script src="app/vid/scripts/directives/progressBarDirective.js"></script>
20
21 <script src="app/vid/scripts/constants/componentConstants.js"></script>
22 <script src="app/vid/scripts/constants/fieldConstants.js"></script>
23 <script src="app/vid/scripts/constants/parameterConstants.js"></script>
24
25 <!--
26         Read configuration properties from server-side properties settings and
27         pass to the test controller via the ng-include onload event.
28
29         Consider / investigate replacing this approach with an alternative
30         REST / Angular mechanism.
31 -->
32 <%@ page import="org.openecomp.vid.mso.*"%>
33 <%@ page import="org.openecomp.portalsdk.core.util.SystemProperties"%>
34 <%
35         String properties = "{msoMaxPolls:" + SystemProperties.getProperty(MsoProperties.MSO_MAX_POLLS)
36                         + ",msoMaxPollingIntervalMsec:"
37                         + SystemProperties.getProperty(MsoProperties.MSO_POLLING_INTERVAL_MSECS) + "}";
38 %>
39
40 <div ng-controller="testController" ng-init="init(<%=properties%>);"
41         ng-cloak>
42         <div popup-window class="popupContents" ngx-show="{{popup.isVisible}}"
43                 ng-cloak>
44                 <div ng-include="'app/vid/scripts/view-models/msoCommit.htm'"
45                         onload="autoStartCommitTest();"></div>
46                 <div ng-include="'app/vid/scripts/view-models/detailsDialog.htm'"
47                         onload="autoStartQueryTest();"></div>
48         </div>
49
50         <h1 class="heading2">
51                 <center>Various MSO Tests</center>
52         </h1>
53         <div>
54                 <input type="checkbox" ng-change="testMsoModeChanged();"
55                         ng-model="isTestMsoMode"></input> <span>Use test MSO
56                         controller</span>
57         </div>
58         <div>
59                 <h3>These actions are expected to return successfully.</h3>
60                 <button type="button" ng-click="queryServiceInstance();" att-button
61                         btn-type="primary" size="small">Query Service Instance</button>
62                 <button type="button" ng-click="createServiceInstance();" att-button
63                         btn-type="primary" size="small">Create Service Instance</button>
64                 <button type="button" ng-click="deleteServiceInstance();" att-button
65                         btn-type="primary" size="small">Delete Service Instance</button>
66                 <button type="button" ng-click="createNetworkInstance();" att-button
67                         btn-type="primary" size="small">Create Network Instance</button>
68                 <button type="button" ng-click="deleteNetworkInstance();" att-button
69                         btn-type="primary" size="small">Delete Network Instance</button>
70                 <button type="button" ng-click="createVNFInstance();" att-button
71                         btn-type="primary" size="small">Create VNF Instance</button>
72                 <button type="button" ng-click="deleteVNFInstance();" att-button
73                         btn-type="primary" size="small">Delete VNF Instance</button>
74                 <button type="button" ng-click="createVolumeGroupInstance();"
75                         att-button btn-type="primary" size="small">Create Volume
76                         Group</button>
77                 <button type="button" ng-click="deleteVolumeGroupInstance();"
78                         att-button btn-type="primary" size="small">Delete Volume
79                         Group</button>
80                 <button type="button" ng-click="createVFModuleInstance();" att-button
81                         btn-type="primary" size="small">Create VF Module</button>
82                 <button type="button" ng-click="deleteVFModuleInstance();" att-button
83                         btn-type="primary" size="small">Delete VF Module</button>
84         </div>
85         <hr />
86         <h3>These actions are expected to generate errors. These tests assume the above
87                 "Use test MSO controller" checkbox is checked. All tests are base on the Create Service
88                 Instance transaction.</h3>
89         <ol>
90                 <li>
91                         <button type="button"
92                                 ng-click="generateError('ERROR_POLICY_EXCEPTION');" att-button
93                                 btn-type="primary" size="small">Policy Exception</button> <span>Initial
94                                 response contains policy exception</span>
95                 </li>
96                 <li>
97                         <button type="button"
98                                 ng-click="generateError('ERROR_SERVICE_EXCEPTION');" att-button
99                                 btn-type="primary" size="small">Service Exception</button> <span>Initial
100                                 response contains service exception</span>
101                 </li>
102                 <li>
103                         <button type="button" ng-click="generateError('ERROR_POLL_FAILURE');"
104                                 att-button btn-type="primary" size="small">Poll Failure</button> <span>Subsequent
105                                 getOrchestrationRequest poll response contains MSO failure condition</span>
106                 </li>
107                 <li>
108                         <button type="button"
109                                 ng-click="generateError('ERROR_INVALID_FIELD_INITIAL');" att-button
110                                 btn-type="primary" size="small">Initial Invalid</button> <span>Initial
111                                 response contains invalid data field</span>
112                 </li>
113                 <li>
114                         <button type="button"
115                                 ng-click="generateError('ERROR_INVALID_FIELD_POLL');" att-button
116                                 btn-type="primary" size="small">Poll Invalid</button> <span>Subsequent
117                                 getOrchestrationRequest poll response contains invalid data field</span>
118                 </li>
119                 <li>
120                         <button type="button"
121                                 ng-click="generateError('ERROR_GENERAL_SERVER_EXCEPTION');"
122                                 att-button btn-type="primary" size="small">Server Exception</button>
123                         <span>VID controller code generates general exception</span>
124                 </li>
125                 <li>
126                         <button type="button" ng-click="generateError('ERROR_MAX_POLLS');"
127                                 att-button btn-type="primary" size="small">Maximum Polls</button> <span>Maximum
128                                 poll attempts exceeded</span>
129                 </li>
130                 <li>
131                         <button type="button"
132                                 ng-click="generateError('ERROR_SERVER_TIMEOUT_INITIAL');" att-button
133                                 btn-type="primary" size="small">Initial Timeout</button> <span>Timeout
134                                 on initial response</span>
135                 </li>
136                 <li>
137                         <button type="button"
138                                 ng-click="generateError('ERROR_SERVER_TIMEOUT_POLL');" att-button
139                                 btn-type="primary" size="small">Poll Timeout</button> <span>Timeout
140                                 on subsequent getOrchestrationRequest poll response</span>
141                 </li>
142                 <li>
143                         <button type="button" ng-click="generateInvalidUrl404();" att-button
144                                 btn-type="primary" size="small">Invalid URL (404)</button> <span>GUI
145                                 front-end specifies invalid URL - HTTP 404 response expected</span>
146                 </li>
147                 <li>
148                         <button type="button" ng-click="generateInvalidUrl405();" att-button
149                                 btn-type="primary" size="small">Invalid URL (405)</button> <span>GUI
150                                 front-end specifies invalid URL - HTTP 405 response expected</span>
151                 </li>
152         </ol>
153
154 </div>
155 <!--  Temporary solution for footer overlapping the men after talking to EComp SDK developer on 06/16/2016 -->
156
157 <br>
158 <br>
159 <br>
160 <br>
161 <br>
162 <br>
163 <br>
164 <br>
165 <br>
166 <br>
167 <br>
168 <br>
169 <br>
170 <br>
171 <br>
172