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