Test api in proper stage
testing/og-dhcp-API/pipeline/head There was a failure building this commit Details

testing
Nicolas Arenas 2024-10-01 13:34:17 +02:00
parent a6968ca83a
commit 529f4a3653
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,6 @@ pipeline {
new_ip=$(vagrant ssh -c "hostname -I" | tr -d '\r')
echo "$QINDEL_PASS" | sudo -S bash -c "echo '$new_ip api-test' >> /etc/hosts"
echo "IP: $new_ip"
curl -f -L -X 'GET' -H 'accept: application/json' "http://api-test/opengnsys3/rest/dhcp/subnets/"
'''
}
}
@ -41,6 +40,7 @@ pipeline {
stage ('Run API tests') {
steps {
echo 'Running API tests'
sh "curl -f -L -X 'GET' -H 'accept: application/json' http://api-test/opengnsys3/rest/dhcp/subnets/"
}
}
}