Skip Wonnell | 2c977e2 | 2018-03-01 08:30:15 -0600 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START========================================== |
| 3 | =================================================================== |
| 4 | Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. |
| 5 | =================================================================== |
| 6 | |
| 7 | Unless otherwise specified, all software contained herein is licensed |
| 8 | under the Apache License, Version 2.0 (the License); |
| 9 | you may not use this software except in compliance with the License. |
| 10 | You may obtain a copy of the License at |
| 11 | |
| 12 | http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | |
| 14 | Unless required by applicable law or agreed to in writing, software |
| 15 | distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | See the License for the specific language governing permissions and |
| 18 | limitations under the License. |
| 19 | |
Skip Wonnell | 2c977e2 | 2018-03-01 08:30:15 -0600 | [diff] [blame] | 20 | ============LICENSE_END============================================ |
| 21 | --> |
| 22 | <simple-notifications [options]="options"></simple-notifications> |
Sandeep J | 77ebde8 | 2018-07-20 15:56:31 +0530 | [diff] [blame^] | 23 | <ngx-spinner bdColor="rgba(51,51,51,0.8)" |
| 24 | size="large" |
| 25 | color="orange" |
| 26 | loadingText="Uploading test spreadsheet..." |
| 27 | type="ball-scale-multiple"></ngx-spinner> |
Skip Wonnell | 2c977e2 | 2018-03-01 08:30:15 -0600 | [diff] [blame] | 28 | <ng-progress [positionUsing]="'marginLeft'" [minimum]="0.15" [maximum]="1" [speed]="200" [showSpinner]="false" [direction]="'leftToRightIncreased'" [color]="'#6ab344'" |
| 29 | [trickleSpeed]="250" [thick]="true" [ease]="'linear'"></ng-progress> |
| 30 | |
| 31 | <div class="card" style=" margin-bottom: 23px;"> |
| 32 | <div class="card-block" style="border-top: 5px solid #6ab344;border-top-right-radius: 7px;border-top-left-radius: 7px;"> |
sj108s | b694d95 | 2018-03-21 21:25:39 +0530 | [diff] [blame] | 33 | <div class="row" style="padding: 10px 15px"> |
Skip Wonnell | 2c977e2 | 2018-03-01 08:30:15 -0600 | [diff] [blame] | 34 | <div class="col-lg-3 col-sm-6 col-md-4 col-xs-12"> |
| 35 | <label>Action:</label> |
| 36 | <input class="form-control" type="text" disabled value="{{action}}" /> |
| 37 | </div> |
| 38 | |
Skip Wonnell | 2c977e2 | 2018-03-01 08:30:15 -0600 | [diff] [blame] | 39 | <div class="col-lg-3 col-sm-6 col-md-4 col-xs-12"> |
| 40 | <label>Vnf Id:</label> |
| 41 | <input class="form-control" type="text" [(ngModel)]="this.actionIdentifiers['vnf-id']" /> |
| 42 | |
| 43 | </div> |
| 44 | |
| 45 | <div class="col-lg-3 col-sm-6 col-md-4 col-xs-12" *ngIf="this.actionIdentifiers['vserver-id']"> |
| 46 | <label>Vserver-Id(optional):</label> |
| 47 | <input class="form-control" disabled type="text" [(ngModel)]="this.actionIdentifiers['vserver-id']" /> |
| 48 | |
| 49 | </div> |
sj108s | b694d95 | 2018-03-21 21:25:39 +0530 | [diff] [blame] | 50 | </div> |
| 51 | <div class="row" style="padding: 10px 15px"> |
Skip Wonnell | 2c977e2 | 2018-03-01 08:30:15 -0600 | [diff] [blame] | 52 | |
| 53 | <div class="col-12"> |
| 54 | <div class="input-group"> |
| 55 | <input id="excelInputFile" #myInput1 hidden class="file" type="file" (change)="upload($event)"> |
| 56 | <input [(ngModel)]="uploadFileName" type="text" class="input-lg" disabled placeholder="Upload SpreadSheet" name="uploadFileName" style="width:80%"> |
| 57 | <button (click)="excelBrowseOption($event)" [disabled]="!enableBrowse" class="browse mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary input-lg" |
| 58 | type="button">Upload SpreadSheet |
| 59 | </button> |
| 60 | </div> |
| 61 | </div> |
| 62 | |
| 63 | </div> |
| 64 | </div> |
| 65 | </div> |
| 66 | <br> |
| 67 | |
| 68 | <div class="card"> |
| 69 | |
| 70 | <div class="card-block"> |
| 71 | |
| 72 | <div class="row"> |
| 73 | <div class="col-md-6"> |
| 74 | <span style="margin-left: 5%"><b>REQUEST:</b></span> |
| 75 | </div> |
| 76 | <div class="col-md-6"> |
| 77 | <span style="margin-left: 5%"><b>RESPONSE:</b></span> |
| 78 | </div> |
| 79 | |
| 80 | <div class="col-md-6"> |
| 81 | <div class="col-lg-12 col-sm-12 col-md-12 col-xs-12"> |
| 82 | |
| 83 | <div style="height:200px;width:100%;border:solid 2px grey;overflow:scroll;overflow-x:hidden;overflow-y:scroll;"> |
| 84 | <p style="height:450px;" disabled class="text-center"> |
| 85 | {{apiRequest}} |
| 86 | </p> |
| 87 | </div> |
| 88 | </div> |
| 89 | |
| 90 | </div> |
| 91 | |
| 92 | <div class="col-md-6"> |
| 93 | <div class="col-lg-12 col-sm-12 col-md-12 col-xs-12"> |
| 94 | |
| 95 | <div style="height:200px;width:100%;border:solid 2px grey;overflow:scroll;overflow-x:hidden;overflow-y:scroll;"> |
| 96 | <p style="height:450px;" disabled class="text-center"> |
| 97 | {{apiResponse}} |
| 98 | </p> |
| 99 | </div> |
| 100 | </div> |
| 101 | |
| 102 | </div> |
| 103 | |
| 104 | <div class="col-md-12"> |
| 105 | <div class="row justify-content-center" style="padding-top:0.3cm"> |
sj108s | b694d95 | 2018-03-21 21:25:39 +0530 | [diff] [blame] | 106 | |
| 107 | <button style="margin-left:6%;" [disabled]="!enableTestButton" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary" |
| 108 | type="submit" (click)="testVnf()">Execute Test |
Skip Wonnell | 2c977e2 | 2018-03-01 08:30:15 -0600 | [diff] [blame] | 109 | </button> |
sj108s | b694d95 | 2018-03-21 21:25:39 +0530 | [diff] [blame] | 110 | |
Skip Wonnell | 2c977e2 | 2018-03-01 08:30:15 -0600 | [diff] [blame] | 111 | </div> |
| 112 | |
| 113 | </div> |
| 114 | |
| 115 | </div> |
| 116 | |
| 117 | </div> |
| 118 | |
| 119 | <div style="padding-left:60%;padding-bottom:0.5cm"> |
sj108s | b694d95 | 2018-03-21 21:25:39 +0530 | [diff] [blame] | 120 | <button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary" type="button" [disabled]="!enableDownload" (click)="download()">Download Raw Request/Response |
Skip Wonnell | 2c977e2 | 2018-03-01 08:30:15 -0600 | [diff] [blame] | 121 | </button> |
sj108s | f27d554 | 2018-04-02 14:46:25 +0530 | [diff] [blame] | 122 | <button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent" type="button" [disabled]="!enableAbort" (click)="abortTest()">Abandon Test</button> |
Skip Wonnell | 2c977e2 | 2018-03-01 08:30:15 -0600 | [diff] [blame] | 123 | </div> |
| 124 | </div> |
| 125 | <br> |
| 126 | <div class="card"> |
| 127 | <div class="card-block"> |
| 128 | |
sj108s | b694d95 | 2018-03-21 21:25:39 +0530 | [diff] [blame] | 129 | <div class="mdl-dialog__content" style="border:solid 1px grey;"> |
Skip Wonnell | 2c977e2 | 2018-03-01 08:30:15 -0600 | [diff] [blame] | 130 | |
| 131 | <div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label" style="margin-left: 25%"> |
| 132 | <input placeholder="Request Id" [(ngModel)]="requestId" class="mdl-textfield__input" id="requestId" required name="requestId"> |
sj108s | b694d95 | 2018-03-21 21:25:39 +0530 | [diff] [blame] | 133 | </div><br/> |
| 134 | <button style="margin-left: 30%" type="submit" [disabled]="!enablePollButton" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary" (click)=pollTestStatus()>Poll Test Status |
Skip Wonnell | 2c977e2 | 2018-03-01 08:30:15 -0600 | [diff] [blame] | 135 | </button> |
sj108s | b694d95 | 2018-03-21 21:25:39 +0530 | [diff] [blame] | 136 | <br/><br/> |
Skip Wonnell | 2c977e2 | 2018-03-01 08:30:15 -0600 | [diff] [blame] | 137 | <div class="col-md-12"> |
| 138 | <span style="margin-left: 18.5%"><b>POLL TEST STATUS RESPONSE</b></span> |
| 139 | </div> |
| 140 | |
sj108s | f27d554 | 2018-04-02 14:46:25 +0530 | [diff] [blame] | 141 | <div style="margin-left: 18.5%;height:130px;width:60%;border:solid 2px grey;overflow:scroll;overflow-x:hidden;overflow-y:hidden;"> |
Skip Wonnell | 2c977e2 | 2018-03-01 08:30:15 -0600 | [diff] [blame] | 142 | |
sj108s | b694d95 | 2018-03-21 21:25:39 +0530 | [diff] [blame] | 143 | <div *ngIf="showStatusResponseDiv"> |
| 144 | <div *ngIf="enableCounterDiv"><b>Poll test no {{pollCounter}}</b></div> |
Skip Wonnell | 2c977e2 | 2018-03-01 08:30:15 -0600 | [diff] [blame] | 145 | <table> |
| 146 | <thead></thead> |
| 147 | <tbody> |
| 148 | <tr> |
| 149 | <td> |
| 150 | <div class="android-title mdl-layout-title">TimeStamp :</div> |
| 151 | </td> |
| 152 | <td> |
| 153 | <div class="android-title mdl-layout-title">{{outputTimeStamp}}</div> |
| 154 | </td> |
| 155 | </tr> |
| 156 | <tr> |
| 157 | <td> |
| 158 | <div class="android-title mdl-layout-title">Status :</div> |
| 159 | </td> |
| 160 | <td> |
| 161 | <div class="android-title mdl-layout-title">{{status}}</div> |
| 162 | </td> |
| 163 | </tr> |
| 164 | <tr> |
| 165 | <td> |
| 166 | <div class="android-title mdl-layout-title">Status Reason:</div> |
| 167 | </td> |
| 168 | <td> |
| 169 | <div class="android-title mdl-layout-title">{{statusReason}}</div> |
| 170 | </td> |
| 171 | </tr> |
| 172 | </tbody> |
| 173 | </table> |
| 174 | </div> |
| 175 | <div *ngIf="!showStatusResponseDiv"> |
sj108s | b694d95 | 2018-03-21 21:25:39 +0530 | [diff] [blame] | 176 | <div *ngIf="enableCounterDiv"><b>Poll test no {{pollCounter}}</b></div> |
Skip Wonnell | 2c977e2 | 2018-03-01 08:30:15 -0600 | [diff] [blame] | 177 | <span>{{statusResponse}}</span> |
sj108s | b694d95 | 2018-03-21 21:25:39 +0530 | [diff] [blame] | 178 | </div> |
Skip Wonnell | 2c977e2 | 2018-03-01 08:30:15 -0600 | [diff] [blame] | 179 | |
| 180 | <div *ngIf="errorResponse"> |
| 181 | <p style="height:450px;" disabled class="text-center"> |
| 182 | {{errorResponse}} |
| 183 | </p> |
| 184 | </div> |
| 185 | |
| 186 | </div> |
| 187 | </div> |
| 188 | </div> |
| 189 | </div> |