Test api in proper stage
testing/og-dhcp-API/pipeline/head There was a failure building this commit
Details
testing/og-dhcp-API/pipeline/head There was a failure building this commit
Details
parent
a6968ca83a
commit
529f4a3653
|
@ -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/"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue