Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Showcase end-to-end tests

NOTE: This repository has been retired, and the end-to-end tests have been moved to here.

How to setup backstage configuration during the pipeline

configmap-app-config-rhdh.yaml is the configuration file to add plugins or any other kind of configuration into Backstage

Environment Variables into configmap-app-config-rhdh.yaml

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

Environment Variables into Cypress tests

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

About

Integration tests for Showcase

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages