-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alan Christie
committed
Feb 7, 2025
1 parent
ac4889d
commit 086b5d2
Showing
6 changed files
with
48 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,33 @@ | ||
/** | ||
* Various configuration variables (extracted from the environment) | ||
* and exported for use by the test scripts. Variables are shared | ||
* with the API-based behaviour tests (see the 'behaviour' directory). | ||
* and exported for use by the test scripts. Variables are common to | ||
* the API-based behaviour tests (see the 'behaviour' directory's 'config.py'). | ||
* | ||
* Expects: - | ||
* | ||
* BEHAVIOUR_AWX_USERNAME | ||
* The username of the AWX user used to form the stack. | ||
* Used to 'predict' the stack URL. | ||
* | ||
* BEHAVIOUR_STACK_NAME | ||
* The 'name' of the stack used for the AWX JobTemplate that created the stack. | ||
* Used to 'predict' the stack URL. It has a default of 'behaviour'. | ||
* | ||
* BEHAVIOUR_STACK_USERNAME | ||
* A CAS user entitled to see the Target under test | ||
* | ||
* BEHAVIOUR_STACK_PASSWORD | ||
* The password for the CAS user | ||
* | ||
* BEHAVIOUR_PLAYWRIGHT_TEST_TARGET | ||
* A Target known to be present in the stack, accessible by the chosen CAS user | ||
*/ | ||
const awxUsername = process.env.BEHAVIOUR_AWX_USERNAME | ||
const stackDomain = 'xchem-dev.diamond.ac.uk' | ||
const awxUsername: string = (process.env.BEHAVIOUR_AWX_USERNAME as string) | ||
const stackDomain: string = 'xchem-dev.diamond.ac.uk' | ||
|
||
export const stackUsername = process.env.BEHAVIOUR_STACK_USERNAME | ||
export const stackPassword = process.env.BEHAVIOUR_STACK_PASSWORD | ||
export const stackName = process.env.BEHAVIOUR_STACK_NAME | ||
export const stackHostname = `fragalysis-${awxUsername}-${stackName}.${stackDomain}` | ||
export const stackURL = `https://${stackHostname}` | ||
export const testTarget = process.env.BEHAVIOUR_PLAYWRIGHT_TEST_TARGET | ||
export const stackUsername: string = (process.env.BEHAVIOUR_STACK_USERNAME as string) | ||
export const stackPassword: string = (process.env.BEHAVIOUR_STACK_PASSWORD as string) | ||
export const stackName: string = (process.env.BEHAVIOUR_STACK_NAME || "behaviour" as string) | ||
export const stackHostname: string = `fragalysis-${awxUsername}-${stackName}.${stackDomain}` | ||
export const stackURL: string = `https://${stackHostname}` | ||
export const testTarget: string = (process.env.BEHAVIOUR_PLAYWRIGHT_TEST_TARGET as string) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters