@@ -179,8 +179,7 @@ describe('ProjectComponentsScreenComponent', () => {
179179 autoFocus : false ,
180180 data : {
181181 componentName : 'test-component' ,
182- projectKey : 'PROJECT_1' ,
183- location : 'LOC_1'
182+ projectKey : 'PROJECT_1'
184183 }
185184 } ) ;
186185 } ) ;
@@ -202,8 +201,7 @@ describe('ProjectComponentsScreenComponent', () => {
202201 autoFocus : false ,
203202 data : {
204203 componentName : 'another-test-component' ,
205- projectKey : 'PROJECT_2' ,
206- location : 'LOC_2'
204+ projectKey : 'PROJECT_2'
207205 }
208206 } ) ;
209207 } ) ;
@@ -229,8 +227,7 @@ describe('ProjectComponentsScreenComponent', () => {
229227 changeNumber : 'CHG1234567' ,
230228 reason : 'Test reason' ,
231229 projectKey : 'PROJECT_1' ,
232- componentName : 'test-component' ,
233- location : 'LOC_1'
230+ componentName : 'test-component'
234231 } ;
235232 spyOn ( component . dialog , 'open' ) . and . returnValue ( {
236233 afterClosed : ( ) => of ( mockResult )
@@ -239,12 +236,9 @@ describe('ProjectComponentsScreenComponent', () => {
239236 component . onRequestDeletionClicked ( testComponent ) ;
240237 expect ( component . projectComponents [ 0 ] . status ) . toBe ( 'DELETING' ) ;
241238 const incidentParams : CreateIncidentParameter [ ] = [
242- { name : 'cluster_location' , type : 'string' , value : 'LOC_1' as String } ,
243- { name : 'caller' , type : 'string' , value : 'test-user' as String } ,
244239 { name : 'is_deployed' , type : 'boolean' , value : true as Boolean } ,
245240 { name : 'change_number' , type : 'string' , value : 'CHG1234567' as String } ,
246- { name : 'reason' , type : 'string' , value : 'Test reason' as String } ,
247- { name : 'access_token' , type : 'string' , value : 'test-access-token' as String }
241+ { name : 'reason' , type : 'string' , value : 'Test reason' as String }
248242 ]
249243 expect ( provisionerServiceSpy . requestComponentDeletion ) . toHaveBeenCalledWith (
250244 'PROJECT_1' ,
@@ -280,21 +274,17 @@ describe('ProjectComponentsScreenComponent', () => {
280274 changeNumber : 'CHG1234567' ,
281275 reason : 'Test reason' ,
282276 projectKey : 'PROJECT_1' ,
283- componentName : 'test-component' ,
284- location : 'LOC_1'
277+ componentName : 'test-component'
285278 } ;
286279 spyOn ( component . dialog , 'open' ) . and . returnValue ( {
287280 afterClosed : ( ) => of ( mockResult )
288281 } as any ) ;
289282 provisionerServiceSpy . requestComponentDeletion . and . returnValue ( throwError ( ( ) => new Error ( 'Deletion failed' ) ) ) ;
290283 component . onRequestDeletionClicked ( testComponent ) ;
291284 const incidentParams : CreateIncidentParameter [ ] = [
292- { name : 'cluster_location' , type : 'string' , value : 'LOC_1' as String } ,
293- { name : 'caller' , type : 'string' , value : 'test-user' as String } ,
294285 { name : 'is_deployed' , type : 'boolean' , value : true as Boolean } ,
295286 { name : 'change_number' , type : 'string' , value : 'CHG1234567' as String } ,
296- { name : 'reason' , type : 'string' , value : 'Test reason' as String } ,
297- { name : 'access_token' , type : 'string' , value : 'test-access-token' as String }
287+ { name : 'reason' , type : 'string' , value : 'Test reason' as String }
298288 ]
299289 expect ( provisionerServiceSpy . requestComponentDeletion ) . toHaveBeenCalledWith (
300290 'PROJECT_1' ,
@@ -330,21 +320,17 @@ describe('ProjectComponentsScreenComponent', () => {
330320 changeNumber : 'CHG1234567' ,
331321 reason : 'Test reason' ,
332322 projectKey : 'PROJECT_1' ,
333- componentName : 'test-component' ,
334- location : 'LOC_1'
323+ componentName : 'test-component'
335324 } ;
336325 spyOn ( component . dialog , 'open' ) . and . returnValue ( {
337326 afterClosed : ( ) => of ( mockResult )
338327 } as any ) ;
339328 component . loggedUser = null ;
340329 component . onRequestDeletionClicked ( testComponent ) ;
341330 const incidentParams : CreateIncidentParameter [ ] = [
342- { name : 'cluster_location' , type : 'string' , value : 'LOC_1' as String } ,
343- { name : 'caller' , type : 'string' , value : 'unknown' as String } ,
344331 { name : 'is_deployed' , type : 'boolean' , value : true as Boolean } ,
345332 { name : 'change_number' , type : 'string' , value : 'CHG1234567' as String } ,
346- { name : 'reason' , type : 'string' , value : 'Test reason' as String } ,
347- { name : 'access_token' , type : 'string' , value : 'test-access-token' as String }
333+ { name : 'reason' , type : 'string' , value : 'Test reason' as String }
348334 ]
349335 expect ( provisionerServiceSpy . requestComponentDeletion ) . toHaveBeenCalledWith (
350336 'PROJECT_1' ,
0 commit comments