test(e2e): Add a docker test runner (#3499)
* test(e2e): Add a docker test runner * !fixup: Self-review * !fixup: Make vault address compatible with local runs * !fixup: Remove unnecessary modification * !fixup: Remove arm64 requirement * !fixup: extend timeout
This commit is contained in:
1 parent
0dcdee4758
commit
ef3954c561
17 files changed
+471
-69
No files matched your search
@@ -89,13 +89,15 @@ jobs:
|
||||
ENOS_VAR_aws_ssh_keypair_name: ${{ github.event.repository.name }}-ci-ssh-key
|
||||
ENOS_VAR_aws_ssh_private_key_path: ./support/private_key.pem
|
||||
ENOS_VAR_local_boundary_dir: ./support/boundary
|
||||
ENOS_VAR_local_boundary_ui_dir: ./support/boundary-ui
|
||||
ENOS_VAR_local_boundary_src_dir: ${{ github.workspace }}
|
||||
ENOS_VAR_local_boundary_ui_src_dir: ./support/src/boundary-ui
|
||||
ENOS_VAR_crt_bundle_path: ./support/boundary.zip
|
||||
ENOS_VAR_tfc_api_token: ${{ secrets.TF_API_TOKEN }}
|
||||
ENOS_VAR_test_email: ${{ secrets.SERVICE_USER_EMAIL }}
|
||||
ENOS_VAR_boundary_edition: ${{ inputs.edition }}
|
||||
ENOS_VAR_boundary_docker_image_name: ${{ inputs.docker-image-name }}
|
||||
ENOS_VAR_boundary_docker_image_file: ./support/boundary_docker_image.tar
|
||||
ENOS_VAR_go_version: ${{ inputs.go-version }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
||||
@@ -184,11 +186,6 @@ jobs:
|
||||
if: matrix.filter == 'e2e_aws_base_with_vault builder:crt' || matrix.filter == 'e2e_database' || matrix.filter == 'e2e_ui builder:crt' || matrix.filter == 'e2e_docker_base_with_vault builder:crt'
|
||||
run: |
|
||||
unzip /tmp/test-deps/vault.zip -d /usr/local/bin
|
||||
- name: Add hosts to /etc/hosts
|
||||
# This enables the use of `boundary connect` with docker containers
|
||||
if: contains(matrix.filter, 'e2e_docker')
|
||||
run: |
|
||||
sudo echo "127.0.0.1 localhost boundary" | sudo tee -a /etc/hosts
|
||||
- name: GH fix for localhost resolution
|
||||
if: github.repository == 'hashicorp/boundary' && contains(matrix.filter, 'e2e_docker')
|
||||
run: |
|
||||
@@ -227,14 +224,14 @@ jobs:
|
||||
if: matrix.filter == 'e2e_ui builder:crt'
|
||||
with:
|
||||
repository: hashicorp/boundary-ui
|
||||
path: enos/support/boundary-ui
|
||||
path: enos/support/src/boundary-ui
|
||||
- name: Install boundary-ui dependencies
|
||||
if: matrix.filter == 'e2e_ui builder:crt'
|
||||
run: yarn --cwd enos/support/boundary-ui install
|
||||
run: yarn --cwd enos/support/src/boundary-ui install
|
||||
- name: Install playwright dependencies (i.e. browsers)
|
||||
if: matrix.filter == 'e2e_ui builder:crt'
|
||||
run: npx playwright install --with-deps
|
||||
working-directory: enos/support/boundary-ui
|
||||
working-directory: enos/support/src/boundary-ui
|
||||
- name: Output Terraform version info
|
||||
run: |
|
||||
mkdir -p ./enos/terraform-plugin-cache
|
||||
@@ -260,7 +257,7 @@ jobs:
|
||||
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
||||
with:
|
||||
name: test-e2e-ui-debug
|
||||
path: enos/support/boundary-ui/ui/admin/tests/e2e/artifacts/test-failures
|
||||
path: enos/support/src/boundary-ui/ui/admin/tests/e2e/artifacts/test-failures
|
||||
retention-days: 5
|
||||
- name: Retry Enos scenario
|
||||
id: run_retry
|
||||
|
||||
Reference in new issue
Block a user