1 <link rel="stylesheet" type="text/css" href="app/vid/test/testMso.css" />
2 <script src="app/vid/test/testMso.js"></script>
4 <link rel="stylesheet" type="text/css" href="app/vid/styles/dialogs.css" />
6 <script src="app/vid/scripts/controller/msoCommitController.js"></script>
7 <script src="app/vid/scripts/controller/detailsDialogController.js"></script>
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>
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>
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>
26 Read configuration properties from server-side properties settings and
27 pass to the test controller via the ng-include onload event.
29 Consider / investigate replacing this approach with an alternative
30 REST / Angular mechanism.
32 <%@ page import="org.openecomp.vid.mso.*"%>
33 <%@ page import="org.openecomp.portalsdk.core.util.SystemProperties"%>
35 String properties = "{msoMaxPolls:" + SystemProperties.getProperty(MsoProperties.MSO_MAX_POLLS)
36 + ",msoMaxPollingIntervalMsec:"
37 + SystemProperties.getProperty(MsoProperties.MSO_POLLING_INTERVAL_MSECS) + "}";
40 <div ng-controller="testController" ng-init="init(<%=properties%>);"
42 <div popup-window class="popupContents" ngx-show="{{popup.isVisible}}"
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>
51 <center>Various MSO Tests</center>
54 <input type="checkbox" ng-change="testMsoModeChanged();"
55 ng-model="isTestMsoMode"></input> <span>Use test MSO
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
77 <button type="button" ng-click="deleteVolumeGroupInstance();"
78 att-button btn-type="primary" size="small">Delete Volume
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
155 <!-- Temporary solution for footer overlapping the men after talking to EComp SDK developer on 06/16/2016 -->