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