Skip to content

Commit 473df98

Browse files
committed
remove allowed region enum
1 parent 4fc6654 commit 473df98

2 files changed

Lines changed: 1 addition & 21 deletions

File tree

schema/app.config.yaml.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"type": "object",
115115
"properties": {
116116
"auto-provision": { "type": "boolean"},
117-
"region": { "type": "string", "enum": ["amer", "emea", "apac"]}
117+
"region": { "type": "string"}
118118
},
119119
"required": ["auto-provision"],
120120
"additionalProperties": false

test/index.test.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,24 +1192,4 @@ application:
11921192
})
11931193
await expect(appConfig.load({})).rejects.toThrow('must be boolean')
11941194
})
1195-
1196-
test('invalid database configuration - invalid region', async () => {
1197-
global.fakeFileSystem.addJson({
1198-
'/package.json': '{"name": "test-app", "version": "1.0.0"}',
1199-
'/app.config.yaml': `
1200-
application:
1201-
runtimeManifest:
1202-
database:
1203-
auto-provision: true
1204-
region: 'invalid-region'
1205-
packages:
1206-
my-app-package:
1207-
actions:
1208-
action:
1209-
function: 'actions/hello.js'
1210-
web: true
1211-
`
1212-
})
1213-
await expect(appConfig.load({})).rejects.toThrow('must be equal to one of the allowed values')
1214-
})
12151195
})

0 commit comments

Comments
 (0)