Skip to content

Commit 288653b

Browse files
committed
Add env variable dependency on dbt users creation
1 parent b364e98 commit 288653b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/scripts/create_dbt_test_users.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/bash
22
set -e
33

4+
: "${DREMIO_HEALTH_URL:?Need to set DREMIO_HEALTH_URL}"
5+
46
echo "Creating dbt test users in Dremio..."
57

68
if [ -z "$AUTH_TOKEN" ]; then
@@ -16,7 +18,7 @@ create_user() {
1618
local email=$4
1719
local password=$5
1820

19-
curl -s 'http://localhost:9047/api/v3/user' \
21+
curl -s "$DREMIO_HEALTH_URL/api/v3/user" \
2022
-H "Authorization: _dremio$AUTH_TOKEN" \
2123
-H 'Content-Type: application/json' \
2224
--data-raw "{\"firstName\":\"$firstName\",\"lastName\":\"$lastName\",\"name\":\"$name\",\"email\":\"$email\",\"password\":\"$password\"}"

0 commit comments

Comments
 (0)