From 0bf19d95a42082ce34e977a24144811d94880d82 Mon Sep 17 00:00:00 2001 From: "k.kedron" Date: Mon, 2 Sep 2019 12:45:35 +0200 Subject: Fixed ready-probe file Fixed ready-probe script url endpoint. Issue-ID: SDC-2548 Signed-off-by: Krystian Kedron Change-Id: Ibfc2d9199bd01678766810540df594d70812bd9e --- .../cookbooks/sdc-onboard-backend/templates/default/ready-probe.sh.erb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'openecomp-be/dist') diff --git a/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/templates/default/ready-probe.sh.erb b/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/templates/default/ready-probe.sh.erb index bad5f878dd..cce9dfd282 100644 --- a/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/templates/default/ready-probe.sh.erb +++ b/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/templates/default/ready-probe.sh.erb @@ -1,6 +1,5 @@ #!/bin/bash -health_Check_http_code=$(curl -k --max-time 5 -o /dev/null -w '%{http_code}' <%= @protocol %>://127.0.0.1:<%= @port %>/sdc1/rest/healthCheck) - +health_Check_http_code=$(curl -k --max-time 5 -o /dev/null -w '%{http_code}' -X GET --header "Accept: application/json" "<%= @protocol %>://127.0.0.1:<%= @port %>/onboarding-api/v1.0/healthcheck") if [[ "$health_Check_http_code" -eq 200 ]]; then exit 0 else -- cgit 1.2.3-korg