@@ -253,7 +253,7 @@ describe('dummy value', () => {
253253 typeName : 'AWS::RDS::DBInstance' ,
254254 exactIdentifier : 'bad-identifier' ,
255255 propertiesToReturn : [ 'DBInstanceArn' , 'StorageEncrypted' ] ,
256- ignoreFailedLookup : true ,
256+ ignoreErrorOnMissingContext : true ,
257257 dummyValue : [
258258 {
259259 DBInstanceArn : 'arn:aws:rds:us-east-1:123456789012:db:dummy-instance' ,
@@ -282,7 +282,7 @@ describe('dummy value', () => {
282282 typeName : 'AWS::RDS::DBInstance' ,
283283 propertyMatch : { 'StorageEncrypted' : 'true' } ,
284284 propertiesToReturn : [ 'DBInstanceArn' , 'StorageEncrypted' ] ,
285- ignoreFailedLookup : true ,
285+ ignoreErrorOnMissingContext : true ,
286286 dummyValue : [
287287 {
288288 DBInstanceArn : 'arn:aws:rds:us-east-1:123456789012:db:dummy-instance' ,
@@ -312,7 +312,7 @@ describe('dummy value', () => {
312312 typeName : 'AWS::RDS::DBInstance' ,
313313 exactIdentifier : 'bad-identifier' ,
314314 propertiesToReturn : [ 'DBInstanceArn' , 'StorageEncrypted' ] ,
315- ignoreFailedLookup : true ,
315+ ignoreErrorOnMissingContext : true ,
316316 dummyValue : [
317317 {
318318 DBInstanceArn : 'arn:aws:rds:us-east-1:123456789012:db:dummy-instance' ,
@@ -335,7 +335,7 @@ describe('dummy value', () => {
335335 typeName : 'AWS::RDS::DBInstance' ,
336336 propertyMatch : { 'StorageEncrypted' : 'true' } ,
337337 propertiesToReturn : [ 'DBInstanceArn' , 'StorageEncrypted' ] ,
338- ignoreFailedLookup : true ,
338+ ignoreErrorOnMissingContext : true ,
339339 dummyValue : [
340340 {
341341 DBInstanceArn : 'arn:aws:rds:us-east-1:123456789012:db:dummy-instance' ,
@@ -346,7 +346,7 @@ describe('dummy value', () => {
346346 ) . rejects . toThrow ( 'Could not get resources {"StorageEncrypted":"true"}.' ) ;
347347 } ) ;
348348
349- test ( 'throws error when CC API fails and ignoreFailedLookup is not provided' , async ( ) => {
349+ test ( 'throws error when CC API fails and ignoreErrorOnMissingContext is not provided' , async ( ) => {
350350 // GIVEN
351351 mockCloudControlClient . on ( GetResourceCommand ) . rejects ( createResourceNotFoundException ( ) ) ;
352352
@@ -368,7 +368,7 @@ describe('dummy value', () => {
368368 ) . rejects . toThrow ( 'Encountered CC API error while getting resource bad-identifier.' ) ;
369369 } ) ;
370370
371- test ( 'throws error when CC API fails and ignoreFailedLookup is false' , async ( ) => {
371+ test ( 'throws error when CC API fails and ignoreErrorOnMissingContext is false' , async ( ) => {
372372 // GIVEN
373373 mockCloudControlClient . on ( GetResourceCommand ) . rejects ( createResourceNotFoundException ( ) ) ;
374374
@@ -380,7 +380,7 @@ describe('dummy value', () => {
380380 typeName : 'AWS::RDS::DBInstance' ,
381381 exactIdentifier : 'bad-identifier' ,
382382 propertiesToReturn : [ 'DBInstanceArn' , 'StorageEncrypted' ] ,
383- ignoreFailedLookup : false ,
383+ ignoreErrorOnMissingContext : false ,
384384 dummyValue : [
385385 {
386386 DBInstanceArn : 'arn:aws:rds:us-east-1:123456789012:db:dummy-instance' ,
@@ -403,7 +403,7 @@ describe('dummy value', () => {
403403 typeName : 'AWS::RDS::DBInstance' ,
404404 exactIdentifier : 'bad-identifier' ,
405405 propertiesToReturn : [ 'DBInstanceArn' , 'StorageEncrypted' ] ,
406- ignoreFailedLookup : true ,
406+ ignoreErrorOnMissingContext : true ,
407407 } ) ,
408408 ) . rejects . toThrow ( 'dummyValue must be an array of objects. Failed to get dummy objects for type AWS::RDS::DBInstance.' ) ;
409409 } ) ;
@@ -420,7 +420,7 @@ describe('dummy value', () => {
420420 typeName : 'AWS::RDS::DBInstance' ,
421421 exactIdentifier : 'bad-identifier' ,
422422 propertiesToReturn : [ 'DBInstanceArn' , 'StorageEncrypted' ] ,
423- ignoreFailedLookup : true ,
423+ ignoreErrorOnMissingContext : true ,
424424 dummyValue : {
425425 DBInstanceArn : 'arn:aws:rds:us-east-1:123456789012:db:dummy-instance' ,
426426 StorageEncrypted : 'true' ,
@@ -441,7 +441,7 @@ describe('dummy value', () => {
441441 typeName : 'AWS::RDS::DBInstance' ,
442442 exactIdentifier : 'bad-identifier' ,
443443 propertiesToReturn : [ 'DBInstanceArn' , 'StorageEncrypted' ] ,
444- ignoreFailedLookup : true ,
444+ ignoreErrorOnMissingContext : true ,
445445 dummyValue : [ ] ,
446446 } ) ,
447447 ) . rejects . toThrow ( 'dummyValue must be an array of objects. Failed to get dummy objects for type AWS::RDS::DBInstance.' ) ;
@@ -459,7 +459,7 @@ describe('dummy value', () => {
459459 typeName : 'AWS::RDS::DBInstance' ,
460460 exactIdentifier : 'bad-identifier' ,
461461 propertiesToReturn : [ 'DBInstanceArn' , 'StorageEncrypted' ] ,
462- ignoreFailedLookup : true ,
462+ ignoreErrorOnMissingContext : true ,
463463 dummyValue : [
464464 'not an object' ,
465465 ] ,
0 commit comments