Skip to content

Commit

Permalink
Replace random logic with uuidgen
Browse files Browse the repository at this point in the history
  • Loading branch information
theoctober19th committed Jun 15, 2024
1 parent 476eb5c commit 7cdc9ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tests/integration/integration-tests-kyuubi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ source ./tests/integration/utils/k8s-utils.sh


# Global Variables
RANDOM_HASH=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1)
NAMESPACE=tests
SERVICE_ACCOUNT=spark
ADMIN_POD_NAME=testpod-admin
USER_POD_NAME=kyuubi-test
S3_BUCKET=kyuubi-$RANDOM_HASH
S3_BUCKET=kyuubi-$(uuidgen)
AZURE_CONTAINER=$S3_BUCKET

get_spark_version(){
Expand Down
3 changes: 1 addition & 2 deletions tests/integration/integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ source ./tests/integration/utils/azure-utils.sh


# Global Variables
RANDOM_HASH=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1)
NAMESPACE=tests
ADMIN_POD_NAME=testpod-admin
S3_BUCKET=spark-$RANDOM_HASH
S3_BUCKET=spark-$(uuidgen)
AZURE_CONTAINER=$S3_BUCKET

get_spark_version(){
Expand Down

0 comments on commit 7cdc9ba

Please sign in to comment.