Attention Iron Bank Customers: On March 27, 2025, we are moving SBOM artifacts from the Anchore Scan job to the Build job to streamline the container hardening pipeline. If you currently download SBOMs from the Anchore Scan job, you can still get them from the Build job and from other sources, including IBFE and image attestations.
Delete the cypress.config.js file and replace any occurrences of the following items in the package's cypress test with the shared commands now stored in gluon repo:
Keycloak Login
Grafana Login
Prometheus target validation
Grafana dashboard loading
Minio Login
Rename the cypress test file to have 01 prepended to it. This should help users control the order in which their custom scripts can run.
Update gluon to 0.4.7 and run a helm dep update on the package.
Create a config map containing one standalone test that already exists in the cypress tests for the package you're working on and apply it to the namespace for the package you are working on.
Set up a local dev environment and update any environment variables required to test locally (use DNS of k8s services for this). Also add a value for bbtests.cypress.customTest and set it to the name of the configmap you created in the previous step.
Run helm test on your package to validate the tests run successfully.
** Note: The pod itself will fail as it can't upload the videos, but you should see that the tests themselves run by looking at the logs.
If the package had a keycloak login, validate by creating a new branch on big bang repo and enabling SSO in that pipeline. If the package had no keycloak login, this step can be skipped. Refer to this MR as a guide for this: big-bang/bigbang!3663 (diffs). Close MR and delete the branch after validation.
For steps 1 - 5 refer to this as an example: !73 (merged)