From 529f4a36539419cafa4a8b3321265e6bfbe24cf5 Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Tue, 1 Oct 2024 13:34:17 +0200 Subject: [PATCH] Test api in proper stage --- tests/API-dhcp/Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/API-dhcp/Jenkinsfile b/tests/API-dhcp/Jenkinsfile index f08374d..864abe1 100644 --- a/tests/API-dhcp/Jenkinsfile +++ b/tests/API-dhcp/Jenkinsfile @@ -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/" } } }