Skip to content

Commit

Permalink
set up e2e tests to support the reusable action repo structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedoublev committed Sep 6, 2024
1 parent 06f30a7 commit 01fba34
Show file tree
Hide file tree
Showing 15 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
name: e2e tests
runs-on: ubuntu-latest
steps:
- uses: opentdf/otdfctl/.github/workflows/end-to-end.yaml@feat/e2e-ci
- uses: ./e2e@feat/e2e-ci
with:
platform-is-running: false
platform-ref: 'main'
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ build-test:

.PHONY: test-bats
test-bats: build-test
./tests/resize_terminal.sh && bats ./tests
./e2e/resize_terminal.sh && bats ./tests

# Target for cleaning up the target directory
.PHONY: clean
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ prerequisites are met:
- The platform is running and provisioned with basic keycloak clients/users
- See the [platform README](https://github.com/opentdf/platform) for instructions

To run the tests you can either run `make test-bats` or execute specific test suites with `bats tests/<test>.bats`.
To run the tests you can either run `make test-bats` or execute specific test suites with `bats e2e/<test>.bats`.

#### Terminal Size

Expand All @@ -85,5 +85,5 @@ Terminal size when testing:

1. set to standard defaults if running `make test-bats`
2. can be set manually by mouse in terminal where tests are triggered
3. can be set by argument `./tests/resize_terminal.sh < rows height > < columns width >`
3. can be set by argument `./e2e/resize_terminal.sh < rows height > < columns width >`
4. can be set by environment variable, i.e. `export TEST_TERMINAL_WIDTH="200"` (200 is columns width)
10 changes: 5 additions & 5 deletions .github/workflows/end-to-end.yaml → e2e/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ jobs:
run: cp otdfctl-example.yaml otdfctl.yaml
- name: Setup Bats and bats libs
uses: bats-core/[email protected]
- run: tests/encrypt-decrypt.bats
- run: tests/kas-grants.bats
- run: tests/profile.bats
- run: tests/kas-registry.bats
- run: tests/namespaces.bats
- run: e2e/encrypt-decrypt.bats
- run: e2e/kas-grants.bats
- run: e2e/profile.bats
- run: e2e/kas-registry.bats
- run: e2e/namespaces.bats
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 01fba34

Please sign in to comment.