@@ -87,7 +87,7 @@ ensure_admin_user() {
8787 local admin_status
8888 admin_status=$( curl -sS -o " $admin_login_body " -w ' %{http_code}' \
8989 -H ' Content-Type: application/json' \
90- -d " {\" username \" :\" $KALAMDB_ADMIN_USER \" ,\" password\" :\" $KALAMDB_ADMIN_PASSWORD \" }" \
90+ -d " {\" user \" :\" $KALAMDB_ADMIN_USER \" ,\" password\" :\" $KALAMDB_ADMIN_PASSWORD \" }" \
9191 " $KALAMDB_SERVER_URL /v1/api/auth/login" )
9292 if [[ " $admin_status " == " 200" ]]; then
9393 echo " Admin test user '$KALAMDB_ADMIN_USER ' already available"
@@ -97,7 +97,7 @@ ensure_admin_user() {
9797 local root_status
9898 root_status=$( curl -sS -o " $root_login_body " -w ' %{http_code}' \
9999 -H ' Content-Type: application/json' \
100- -d " {\" username \" :\" root\" ,\" password\" :\" $KALAMDB_ROOT_PASSWORD \" }" \
100+ -d " {\" user \" :\" root\" ,\" password\" :\" $KALAMDB_ROOT_PASSWORD \" }" \
101101 " $KALAMDB_SERVER_URL /v1/api/auth/login" )
102102 [[ " $root_status " == " 200" ]] || die " Unable to authenticate as root to prepare admin test user"
103103
@@ -114,7 +114,7 @@ ensure_admin_user() {
114114 " $KALAMDB_SERVER_URL /v1/api/sql" > /dev/null
115115
116116 local admin_exists=false
117- if grep -q " \" username \" :\" $KALAMDB_ADMIN_USER \" " " $user_check_body " ; then
117+ if grep -q " \" user \" :\" $KALAMDB_ADMIN_USER \" " " $user_check_body " ; then
118118 admin_exists=true
119119 fi
120120
@@ -144,7 +144,7 @@ ensure_admin_user() {
144144
145145 admin_status=$( curl -sS -o " $admin_login_body " -w ' %{http_code}' \
146146 -H ' Content-Type: application/json' \
147- -d " {\" username \" :\" $KALAMDB_ADMIN_USER \" ,\" password\" :\" $KALAMDB_ADMIN_PASSWORD \" }" \
147+ -d " {\" user \" :\" $KALAMDB_ADMIN_USER \" ,\" password\" :\" $KALAMDB_ADMIN_PASSWORD \" }" \
148148 " $KALAMDB_SERVER_URL /v1/api/auth/login" )
149149 [[ " $admin_status " == " 200" ]] || die " Admin test user '$KALAMDB_ADMIN_USER ' is still not usable after bootstrap"
150150
0 commit comments