Fixed ready-probe file 43/94743/3
authork.kedron <k.kedron@partner.samsung.com>
Mon, 2 Sep 2019 10:45:35 +0000 (12:45 +0200)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Tue, 3 Sep 2019 08:11:47 +0000 (08:11 +0000)
Fixed ready-probe script url endpoint.

Issue-ID: SDC-2548
Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
Change-Id: Ibfc2d9199bd01678766810540df594d70812bd9e

catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/templates/default/ready-probe.sh.erb
openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/templates/default/ready-probe.sh.erb

index b9eb9b0..35aef8e 100644 (file)
@@ -1,5 +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}' <%= @protocol %>://127.0.0.1:<%= @port %>/sdc2/rest/healthCheck)
 
 if [[ "$health_Check_http_code" -eq 200 ]]; then
    exit 0
index bad5f87..cce9dfd 100644 (file)
@@ -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