Skip to content

Commit

Permalink
Fix the legacy E2E tests and remove them from the critical path to cu…
Browse files Browse the repository at this point in the history
…tting a release (#162)
  • Loading branch information
RothAndrew authored Nov 9, 2021
1 parent 177ffa0 commit 31740c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ package:
paths:
- build/

# Don't run the legacy E2E tests on tags, since GitHub Actions is replacing them and they shouldn't be in the critical
# path to cutting a release.
e2e:
<<: *only-default
only:
- master
- merge_requests
stage: e2e
needs:
- job: package
Expand All @@ -62,7 +66,7 @@ e2e:
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$ZARF_KNOWN_HOST" > ~/.ssh/known_hosts
- ./build/zarf tools registry login registry1.dso.mil --username "robot\$bb-dev-imagepullonly" --password "$REGISTRY1_PASSWORD"
- ./build/zarf tools registry login registry1.dso.mil --username "$REGISTRY1_USERNAME_ZARF_ROBOT" --password "$REGISTRY1_PASSWORD_ZARF_ROBOT"
script:
- ./e2e.sh
resource_group: e2e
Expand Down
5 changes: 4 additions & 1 deletion e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ testAPIEndpoints() {
loadZarfCA

# Test the docker registry
_curl "https://pipeline.zarf.dev/v2/"
# This is commented out because it already gets tested in the GitHub Actions pipeline. Without changes it fails
# due to the registry needing auth now, but it's already tested elsewhere so it doesn't need to be tested here.
# Eventually this whole file will be deleted when we have finished moving all of these tests over to GitHub Actions.
# _curl "https://pipeline.zarf.dev/v2/"

# Test gitea is up and can be logged into
_curl "https://zarf-git-user:${ZARF_PWD}@pipeline.zarf.dev/api/v1/user"
Expand Down

0 comments on commit 31740c4

Please sign in to comment.