Remove hardcoded tokens api endpoint 60/2460/1
authorFatih Degirmenci <fdegir@gmail.com>
Tue, 1 Oct 2019 16:37:32 +0000 (18:37 +0200)
committerFatih Degirmenci <fdegir@gmail.com>
Tue, 1 Oct 2019 16:37:32 +0000 (18:37 +0200)
Change-Id: I8dc6681f83afc4cb6d0d89c09f8aa28a7b508c02

jjb/nolabs/handle-booking.sh

index b6b9066b1bbff5239446c82126024c7cb2227c14..cb6786dd37c8bc8f3b24c033bdd7881758ed62c9 100644 (file)
@@ -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 \