Skip to content

Commit f1e9db3

Browse files
committed
test(validation): add mx-central-1, eu-isoe-west-1, and us-iso-west-1 region test cases
1 parent 0244cfa commit f1e9db3

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

apps/sim/lib/core/security/input-validation.test.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,12 +1311,31 @@ describe('validateAwsRegion', () => {
13111311
expect(result.isValid).toBe(true)
13121312
})
13131313

1314+
it.concurrent('should accept us-iso-west-1', () => {
1315+
const result = validateAwsRegion('us-iso-west-1')
1316+
expect(result.isValid).toBe(true)
1317+
})
1318+
13141319
it.concurrent('should accept us-isob-east-1', () => {
13151320
const result = validateAwsRegion('us-isob-east-1')
13161321
expect(result.isValid).toBe(true)
13171322
})
13181323
})
13191324

1325+
describe('valid Mexico regions', () => {
1326+
it.concurrent('should accept mx-central-1', () => {
1327+
const result = validateAwsRegion('mx-central-1')
1328+
expect(result.isValid).toBe(true)
1329+
})
1330+
})
1331+
1332+
describe('valid EU Sovereign Cloud regions', () => {
1333+
it.concurrent('should accept eu-isoe-west-1', () => {
1334+
const result = validateAwsRegion('eu-isoe-west-1')
1335+
expect(result.isValid).toBe(true)
1336+
})
1337+
})
1338+
13201339
describe('invalid regions', () => {
13211340
it.concurrent('should reject null', () => {
13221341
const result = validateAwsRegion(null)

0 commit comments

Comments
 (0)