Skip to content

Commit

Permalink
Fix logic around 12 Test Sessions
Browse files Browse the repository at this point in the history
Apply same Test Session iD regex from Job schema to SUT schemas.
Increase timeout and duration of.
  • Loading branch information
binarymist committed Dec 9, 2021
1 parent d4ffb45 commit 71df746
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const schema = {
timeoutToBeAvailable: {
doc: 'The duration in milliseconds before giving up on waiting for the s2 Service Discovery Service Instances to be available.',
format: 'duration',
default: 120000
default: 200000
},
retryIntervalToBeAvailable: {
doc: 'The retry interval in milliseconds for the s2 Service Discovery Service Instances to be available.',
Expand All @@ -103,12 +103,12 @@ const schema = {
timeout: {
doc: 'The duration in milliseconds before giving up on waiting for the s2 containers to be responsive.',
format: 'duration',
default: 30000
default: 120000
},
retryInterval: {
doc: 'The retry interval in milliseconds for the s2 containers to be responsive.',
format: 'duration',
default: 2000
default: 10000
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/api/app/do/sUt.aPi.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Api extends Sut {
}),
testSession: Joi.object({
type: Joi.string().valid('appScanner').required(),
id: Joi.string().alphanum().required(),
id: Joi.string().regex(/^\w[-\w]{1,200}$/).required(),
attributes: Joi.object({
sitesTreePopulationStrategy: Joi.string().min(2).regex(/^[-\w/]{1,200}$/).default('ImportUrls'),
spiderStrategy: Joi.string().min(2).regex(/^[-\w/]{1,200}$/).default('Standard'),
Expand Down
2 changes: 1 addition & 1 deletion src/api/app/do/sUt.browserApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class BrowserApp extends Sut {
}),
testSession: Joi.object({
type: Joi.string().valid('appScanner').required(),
id: Joi.string().alphanum().required(),
id: Joi.string().regex(/^\w[-\w]{1,200}$/).required(),
attributes: Joi.object({
sitesTreePopulationStrategy: Joi.string().min(2).regex(/^[-\w/]{1,200}$/).default('WebDriverStandard'),
spiderStrategy: Joi.string().min(2).regex(/^[-\w/]{1,200}$/).default('Standard'),
Expand Down

0 comments on commit 71df746

Please sign in to comment.