From d35fd4a1dc883e38a59f1804cd55eadf8a1a282b Mon Sep 17 00:00:00 2001 From: Fatih Degirmenci Date: Tue, 1 Oct 2019 18:37:32 +0200 Subject: [PATCH] Remove hardcoded tokens api endpoint Change-Id: I8dc6681f83afc4cb6d0d89c09f8aa28a7b508c02 --- jjb/nolabs/handle-booking.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jjb/nolabs/handle-booking.sh b/jjb/nolabs/handle-booking.sh index b6b9066b..cb6786dd 100644 --- a/jjb/nolabs/handle-booking.sh +++ b/jjb/nolabs/handle-booking.sh @@ -54,8 +54,8 @@ cd $WORKSPACE FLOATING_IP=10.10.10.10 # get authentication token -echo "API Request: http --ignore-stdin POST http://188.212.108.245/api/tokens --auth dummy@dummy.com:dummy | jq -r '.token'" -NOLABS_TOKEN=$(http --ignore-stdin POST http://188.212.108.245/api/tokens --auth $NOLABS_API_USERNAME:$NOLABS_API_PASSWORD | jq -r '.token') +echo "API Request: http --ignore-stdin POST $NOLABS_API_TOKENS_ENDPOINT --auth dummy@dummy.com:dummy | jq -r '.token'" +NOLABS_TOKEN=$(http --ignore-stdin POST $NOLABS_API_TOKENS_ENDPOINT --auth $NOLABS_API_USERNAME:$NOLABS_API_PASSWORD | jq -r '.token') # update booking echo "API Request: http --ignore-stdin PUT $NOLABS_API_BOOKINGS_ENDPOINT/$BOOKING_ID \ -- 2.25.1