Configuring Test Database - dogtagpki/pki GitHub Wiki
By default the CI will perform the tests using a DS from quay.io/389ds/dirsrv container image. Sometimes itβs necessary to perform the tests using a different database (e.g. using a DS from RPM packages).
In PKI 11.6 or later the test database can be configured by creating a GitHub variable called DS_IMAGE
to store the container image URL. To reset the test database simply remove the variable.
In PKI 11.5 the test database can be configured by creating a GitHub variable called DB_IMAGE
to store the container image URL. To reset the test database simply remove the variable.
Prior to PKI 11.5 the test database can be configured by creating a GitHub secret called BASE64_DATABASE
to store the base64-encoded value of the container image URL. To reset the test database simply remove the secret.
In PKI 11.6 or later create a variable:
-
Go to Settings β Secrets and variables β Actions β Variables.
-
Click New repository variable.
-
Enter
DS_IMAGE
as the variable name. -
Enter the DS image (e.g.
edewata/dirsrv
) as the variable value. -
Click Add variable.
In PKI 11.5 create a variable:
-
Go to Settings β Secrets and variables β Actions β Variables.
-
Click New repository variable.
-
Enter
DB_IMAGE
as the variable name. -
Enter the database image (e.g.
edewata/dirsrv
) as the variable value. -
Click Add variable.
Prior to PKI 11.5 encode the database image (e.g. edewata/dirsrv
) as follows:
$ base64 << EOF { "image": "edewata/dirsrv" } EOF ewogICAgImltYWdlIjogImVkZXdhdGEvZGlyc3J2Igp9Cg==
Then create the secret:
-
Go to Settings β Secrets.
-
Click New repository secret.
-
Enter
BASE64_DATABASE
as the secret name. -
Enter the base64-encoded value as the secret value.
-
Click Add secret
To reset the test database in PKI 11.6 or later, remove the variable:
-
Go to Settings β Secrets and variables β Actions β Variables.
-
Click Remove next to
DS_IMAGE
. -
Click Yes, remove this variable.
To reset the test database in PKI 11.5, remove the variable:
-
Go to Settings β Secrets and variables β Actions β Variables.
-
Click Remove next to
DB_IMAGE
. -
Click Yes, remove this variable.
To reset the test database prior to PKI 11.5, remove the secret:
-
Go to Settings β Secrets.
-
Click Remove next to
BASE64_DATABASE
. -
Click Yes, remove this secret.