Skip to content

Commit e422294

Browse files
Refactor TEST_TRIVUP_PARAMETERS export syntax for OAUTHBEARER in SASL tests
1 parent 45027c8 commit e422294

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.semaphore/run-sasl-tests.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ blocks:
4444
commands:
4545
- if [[ "$TEST_TYPE" != *"plaintext"* ]]; then exit 0; fi
4646
- if [[ "$TEST_SASL" == "OAUTHBEARER" ]]; then (cd tests && python3 sasl_test.py --kraft --suite "OAuth/OIDC" ${TEST_KAFKA_GIT_REF:-4.2.0}) && echo "OIDC tests (0126) PASSED" || { echo "OIDC tests (0126) FAILED"; exit 1; }; fi
47-
- export TEST_TRIVUP_PARAMETERS="--conf '[\"connections.max.reauth.ms=10000\"]'"
48-
- if [[ "$TEST_SASL" == "OAUTHBEARER" ]]; then export TEST_TRIVUP_PARAMETERS="--oidc --conf '[\"connections.max.reauth.ms=10000\"]'"; fi
47+
- 'export TEST_TRIVUP_PARAMETERS=''--conf ["connections.max.reauth.ms=10000"]'''
48+
- 'if [[ "$TEST_SASL" == "OAUTHBEARER" ]]; then export TEST_TRIVUP_PARAMETERS=''--oidc --conf ["connections.max.reauth.ms=10000"]''; fi'
4949
- ./tests/run-all-tests.sh
5050
- name: "SASL SSL cluster (x86_64)"
5151
env_vars:
@@ -54,8 +54,8 @@ blocks:
5454
commands:
5555
- if [[ "$TEST_TYPE" != *"ssl"* ]]; then exit 0; fi
5656
- if [[ "$TEST_SASL" == "OAUTHBEARER" ]]; then (cd tests && python3 sasl_test.py --kraft --suite "OAuth/OIDC" ${TEST_KAFKA_GIT_REF:-4.2.0}) && echo "OIDC tests (0126) PASSED" || { echo "OIDC tests (0126) FAILED"; exit 1; }; fi
57-
- export TEST_TRIVUP_PARAMETERS="--conf '[\"connections.max.reauth.ms=10000\"]'"
58-
- if [[ "$TEST_SASL" == "OAUTHBEARER" ]]; then export TEST_TRIVUP_PARAMETERS="--oidc --conf '[\"connections.max.reauth.ms=10000\"]'"; fi
57+
- 'export TEST_TRIVUP_PARAMETERS=''--conf ["connections.max.reauth.ms=10000"]'''
58+
- 'if [[ "$TEST_SASL" == "OAUTHBEARER" ]]; then export TEST_TRIVUP_PARAMETERS=''--oidc --conf ["connections.max.reauth.ms=10000"]''; fi'
5959
- ./tests/run-all-tests.sh
6060
- name: "Run SASL tests (aarch64)"
6161
dependencies: []
@@ -74,8 +74,8 @@ blocks:
7474
commands:
7575
- if [[ "$TEST_TYPE" != *"plaintext"* ]]; then exit 0; fi
7676
- if [[ "$TEST_SASL" == "OAUTHBEARER" ]]; then (cd tests && python3 sasl_test.py --kraft --suite "OAuth/OIDC" ${TEST_KAFKA_GIT_REF:-4.2.0}) && echo "OIDC tests (0126) PASSED" || { echo "OIDC tests (0126) FAILED"; exit 1; }; fi
77-
- export TEST_TRIVUP_PARAMETERS="--conf '[\"connections.max.reauth.ms=10000\"]'"
78-
- if [[ "$TEST_SASL" == "OAUTHBEARER" ]]; then export TEST_TRIVUP_PARAMETERS="--oidc --conf '[\"connections.max.reauth.ms=10000\"]'"; fi
77+
- 'export TEST_TRIVUP_PARAMETERS=''--conf ["connections.max.reauth.ms=10000"]'''
78+
- 'if [[ "$TEST_SASL" == "OAUTHBEARER" ]]; then export TEST_TRIVUP_PARAMETERS=''--oidc --conf ["connections.max.reauth.ms=10000"]''; fi'
7979
- ./tests/run-all-tests.sh
8080
- name: "SASL SSL cluster (aarch64)"
8181
env_vars:
@@ -84,6 +84,6 @@ blocks:
8484
commands:
8585
- if [[ "$TEST_TYPE" != *"ssl"* ]]; then exit 0; fi
8686
- if [[ "$TEST_SASL" == "OAUTHBEARER" ]]; then (cd tests && python3 sasl_test.py --kraft --suite "OAuth/OIDC" ${TEST_KAFKA_GIT_REF:-4.2.0}) && echo "OIDC tests (0126) PASSED" || { echo "OIDC tests (0126) FAILED"; exit 1; }; fi
87-
- export TEST_TRIVUP_PARAMETERS="--conf '[\"connections.max.reauth.ms=10000\"]'"
88-
- if [[ "$TEST_SASL" == "OAUTHBEARER" ]]; then export TEST_TRIVUP_PARAMETERS="--oidc --conf '[\"connections.max.reauth.ms=10000\"]'"; fi
87+
- 'export TEST_TRIVUP_PARAMETERS=''--conf ["connections.max.reauth.ms=10000"]'''
88+
- 'if [[ "$TEST_SASL" == "OAUTHBEARER" ]]; then export TEST_TRIVUP_PARAMETERS=''--oidc --conf ["connections.max.reauth.ms=10000"]''; fi'
8989
- ./tests/run-all-tests.sh

0 commit comments

Comments
 (0)