Skip to content

Commit

Permalink
fix test compilation due to API change merged from master
Browse files Browse the repository at this point in the history
  • Loading branch information
iliapolo committed Mar 4, 2020
1 parent 2eaa440 commit 12212f8
Showing 1 changed file with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,8 @@ test('fails when getData is used with `ignoreErrorCodesMatching`', () => {
},
ignoreErrorCodesMatching: ".*",
physicalResourceId: PhysicalResourceId.of("Id")
}
},
policy: AwsCustomResourcePolicy.fromSdkCalls({resources: AwsCustomResourcePolicy.ANY_RESOURCE}),
});

expect(() => resource.getData("ShouldFail")).toThrow(/`getData`.+`ignoreErrorCodesMatching`/);
Expand All @@ -387,8 +388,9 @@ test('fails when getDataString is used with `ignoreErrorCodesMatching`', () => {
retentionInDays: 90
},
ignoreErrorCodesMatching: ".*",
physicalResourceId: PhysicalResourceId.of("Id")
}
physicalResourceId: PhysicalResourceId.of("Id"),
},
policy: AwsCustomResourcePolicy.fromSdkCalls({resources: AwsCustomResourcePolicy.ANY_RESOURCE}),
});

expect(() => resource.getDataString("ShouldFail")).toThrow(/`getDataString`.+`ignoreErrorCodesMatching`/);
Expand All @@ -408,7 +410,8 @@ test('fail when `PhysicalResourceId.fromResponse` is used with `ignoreErrorCodes
},
ignoreErrorCodesMatching: ".*",
physicalResourceId: PhysicalResourceId.fromResponse("Response")
}
},
policy: AwsCustomResourcePolicy.fromSdkCalls({resources: AwsCustomResourcePolicy.ANY_RESOURCE}),
})).toThrow(/`PhysicalResourceId.fromResponse`.+`ignoreErrorCodesMatching`/);

expect(() => new AwsCustomResource(stack, 'AwsSdkOnCreate', {
Expand All @@ -421,7 +424,8 @@ test('fail when `PhysicalResourceId.fromResponse` is used with `ignoreErrorCodes
},
ignoreErrorCodesMatching: ".*",
physicalResourceId: PhysicalResourceId.fromResponse("Response")
}
},
policy: AwsCustomResourcePolicy.fromSdkCalls({resources: AwsCustomResourcePolicy.ANY_RESOURCE}),
})).toThrow(/`PhysicalResourceId.fromResponse`.+`ignoreErrorCodesMatching`/);

expect(() => new AwsCustomResource(stack, 'AwsSdkOnDelete', {
Expand All @@ -434,7 +438,8 @@ test('fail when `PhysicalResourceId.fromResponse` is used with `ignoreErrorCodes
},
ignoreErrorCodesMatching: ".*",
physicalResourceId: PhysicalResourceId.fromResponse("Response")
}
},
policy: AwsCustomResourcePolicy.fromSdkCalls({resources: AwsCustomResourcePolicy.ANY_RESOURCE}),
})).toThrow(/`PhysicalResourceId.fromResponse`.+`ignoreErrorCodesMatching`/);

});
Expand Down

0 comments on commit 12212f8

Please sign in to comment.