Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change BATS image #259

Merged
merged 21 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2023-10-28
* Update st2test image to zoeleah/bats:latest
* Fix ST2_AUTH_URL and ST2_STREAM_URL

## 2022-05-06
* Migrate to Ubuntu 20 / Python 3.8 based containers

Expand Down
6 changes: 3 additions & 3 deletions tests/st2tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ load "${BATS_HELPERS_DIR}/bats-file/load.bash"
@test 'st2 version deployed and python env are as expected' {
run st2 --version
assert_success
# st2 3.7.0, on Python 3.8.10
# st2 3.8.0, on Python 3.8.10
assert_line --partial "st2 ${ST2_VERSION}"
assert_line --partial 'on Python 3.8.10'
}

@test 'ST2_AUTH_URL service endpoint is accessible and working' {
run curl -v ${ST2_API_URL}
run curl -v ${ST2_AUTH_URL}
assert_line --partial 'Content-Type: application/json'
assert_line --partial 'St2-Api-Key'
}
Expand All @@ -25,7 +25,7 @@ load "${BATS_HELPERS_DIR}/bats-file/load.bash"
}

@test 'ST2_STREAM_URL service endpoint is accessible and working' {
run curl -v ${ST2_API_URL}
run curl -v ${ST2_STREAM_URL}
assert_line --partial 'Content-Type: application/json'
assert_line --partial 'St2-Api-Key'
}
Expand Down
2 changes: 1 addition & 1 deletion tests/st2tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
depends_on:
- st2test-tools
st2test-tools:
image: dduportal/bats:latest
image: zoeleah/bats:latest
Ein-nor marked this conversation as resolved.
Show resolved Hide resolved
environment:
BATS_HELPERS_DIR: /tools/bats-helpers/
BATS_DIR: /tools/bats/
Expand Down