-
Notifications
You must be signed in to change notification settings - Fork 148
Configuring Test Database
By default the CI will perform the tests using a DS server installed from RPM packages. Sometimes it’s necessary to perform the tests using a different database configuration (e.g. installed from container). This can be done by creating a GitHub secret called BASE64_DATABASE to store the base64-encoded value of the test database configuration. To reset the test database configuration simply remove the secret.
For example, to test using DS container:
{
"type": "container"
}
Convert the value into a single line, escape the double quotes, then base64-encode the value:
$ echo "{\"type\": \"container\"}" | base64
eyJ0eXBlIjogImNvbnRhaW5lciJ9Cg==
Then create the secret:
-
Go to Settings → Secrets.
-
Click New repository secret.
-
Enter
BASE64_DATABASEas the secret name. -
Enter the base64-encoded value as the secret value.
-
Click Add secret
To reset the test repository, remove the secret:
-
Go to Settings → Secrets.
-
Click Remove next to
BASE64_DATABASE. -
Click Yes, remove this secret.
|
Tip
|
To find a page in the Wiki, enter the keywords in search field, press Enter, then click Wikis. |