Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: tobias.pobocik <[email protected]>
  • Loading branch information
Tobianas committed Nov 23, 2023
1 parent d916df9 commit 69c7906
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/lighty-rcgnmi-app/tests-lighty-rcgnmi-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,16 @@ for i in {1..10} ; do
done
echo ""

assertHttpStatusCode $(curl -X GET -o /dev/null -s -w "%{http_code} GET %{url_effective}\n" \
'http://'"$MINIKUBE_IP"':'"$CONTROLLER_PORT"'/restconf/data/network-topology:network-topology/topology=gnmi-topology/node='node-"${MINIKUBE_IP//.}"'?content=config')
response=$(curl -X GET -s 'http://'"$MINIKUBE_IP"':'"$CONTROLLER_PORT"'/restconf/data/network-topology:network-topology/topology=gnmi-topology/node='node-"${MINIKUBE_IP//.}"'?content=config')
http_status=$(echo "$response" | awk 'NR==1{print $1}')
body=$(echo "$response" | sed '1d') # Remove the HTTP status line

# Print the HTTP status code
echo "HTTP Status Code: $http_status"

# Print the response body
echo "Response Body:"
echo "$body"
sleep 1

assertHttpStatusCode $(curl -X PUT -o /dev/null -s -w "%{http_code} PUT %{url_effective}\n" \
Expand Down

0 comments on commit 69c7906

Please sign in to comment.