Skip to content

Commit d55fec4

Browse files
authored
fix(ivs-alpha): add region constraints to integration tests (#36851)
### Issue # (if applicable) NA ### Reason for this change Fix integ tests ### Description of changes IVS service is only available in specific regions: us-east-1, us-west-2, eu-west-1, eu-central-1, ap-northeast-1, ap-northeast-2, ap-south-1. Added region constraints to all IVS integration tests to prevent deployment failures in unsupported regions. ### Describe any new or updated permissions being added None ### Description of how you validated changes Deployed integ tests ### Checklist - [X] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 726060c commit d55fec4

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

packages/@aws-cdk/aws-ivs-alpha/test/integ.ivs-channel-advanced.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const standardChannelWithPresetSetting = new ivs.Channel(stack, 'StandardChannel
2222

2323
const test = new integ.IntegTest(app, 'ivs-test', {
2424
testCases: [stack],
25+
regions: ['us-east-1', 'us-west-2', 'eu-west-1', 'eu-central-1', 'ap-northeast-1', 'ap-northeast-2', 'ap-south-1'], // IVS is only available in these regions
2526
});
2627

2728
test.assertions.awsApiCall('IVS', 'GetChannel', {

packages/@aws-cdk/aws-ivs-alpha/test/integ.ivs-insecure-ingest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ new ivs.Channel(stack, 'ChannelInsecureIngestEnabled', {
1313

1414
new integ.IntegTest(app, 'ivs-insecure-ingest-test', {
1515
testCases: [stack],
16+
regions: ['us-east-1', 'us-west-2', 'eu-west-1', 'eu-central-1', 'ap-northeast-1', 'ap-northeast-2', 'ap-south-1'], // IVS is only available in these regions
1617
});

packages/@aws-cdk/aws-ivs-alpha/test/integ.ivs-multitrack-video.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ new ivs.Channel(stack, 'ChannelWithMultitrackVideo', {
1717

1818
new integ.IntegTest(app, 'aws-cdk-ivs-multitarck-video-test', {
1919
testCases: [stack],
20+
regions: ['us-east-1', 'us-west-2', 'eu-west-1', 'eu-central-1', 'ap-northeast-1', 'ap-northeast-2', 'ap-south-1'], // IVS is only available in these regions
2021
});

packages/@aws-cdk/aws-ivs-alpha/test/integ.ivs-recording-configuration.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ new Channel(stack, 'Channel', {
3434

3535
new integ.IntegTest(app, 'ivs-recording-configuration-test', {
3636
testCases: [stack],
37+
regions: ['us-east-1', 'us-west-2', 'eu-west-1', 'eu-central-1', 'ap-northeast-1', 'ap-northeast-2', 'ap-south-1'], // IVS is only available in these regions
3738
});

packages/@aws-cdk/aws-ivs-alpha/test/integ.ivs.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ new AllProperties(stack, 'AllProperties');
6767

6868
new IntegTest(app, 'ivs-test', {
6969
testCases: [stack],
70+
regions: ['us-east-1', 'us-west-2', 'eu-west-1', 'eu-central-1', 'ap-northeast-1', 'ap-northeast-2', 'ap-south-1'], // IVS is only available in these regions
7071
});
7172

7273
app.synth();

0 commit comments

Comments
 (0)