Skip to content

Commit

Permalink
Run e2e tests on mysql and redis index backends (#2079)
Browse files Browse the repository at this point in the history
Ensure both index storage backend paths are functionally tested.

Signed-off-by: Colleen Murphy <[email protected]>
  • Loading branch information
cmurphy authored Apr 12, 2024
1 parent 25ec712 commit 2fafbc5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,22 @@ jobs:
- name: install gocovmerge
run: make gocovmerge

- name: CLI
- name: CLI mysql index
run: ./tests/e2e-test.sh
- name: Refactor-e2e # this will a WIP to move all the tests to respective packages
env:
INDEX_BACKEND: mysql
- name: CLI redis index
run: ./tests/e2e-test.sh
env:
INDEX_BACKEND: redis
- name: Refactor-e2e mysql index # this will a WIP to move all the tests to respective packages
run: ./e2e-test.sh
env:
INDEX_BACKEND: mysql
- name: Refactor-e2e redis index # this will a WIP to move all the tests to respective packages
run: ./e2e-test.sh
env:
INDEX_BACKEND: redis
- name: Upload logs if they exist
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
if: failure()
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ services:
"--max_request_body_size=32792576",
"--rekor_server.new_entry_publisher=gcppubsub://projects/test-project/topics/new-entry",
"--rekor_server.publish_events_json=true",
"--search_index.storage_provider=mysql",
"--search_index.storage_provider=${INDEX_BACKEND:-mysql}",
"--search_index.mysql.dsn=test:zaphod@tcp(mysql:3306)/test",
]
ports:
Expand Down

0 comments on commit 2fafbc5

Please sign in to comment.