NOTE: This repository has been retired, and the end-to-end tests have been moved to here.
configmap-app-config-rhdh.yaml is the configuration file to add plugins or any other kind of configuration into Backstage
To use environment variables on configmap-app-config-rhdh.yaml we need to set the envs encoded as Base64 in the secrets-rhdh-secrets.yaml . You can use temporary values for the secrets because it can be replaced by the pipeline. Add the environments needed in our as Base64 encoded values and using secure property.
To replace the values into secrets-rhdh-secrets.yaml we need to create the replace function using openshift-tests.sh script. For example:
sed -i "s|KEYCLOAK_URL:.*|KEYCLOAK_URL: $KEYCLOAK_URL|g" $DIR/auth/secrets-rhdh-secrets.yaml
To use environment variables into Cypress tests we need to set the envs in our pipeline (don't encode the values as Base64) starting with CYPRESS* prefix, and them we can get the value in our tests using Cypress.env() function. Pay attention that we don't need CYPRESS* prefix in our tests. For more information see Cypress documentation