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 24, 2023
1 parent 1395e14 commit fa6cf74
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/lighty-rcgnmi-app/tests-lighty-rcgnmi-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ls -1 yangs
#Run simulator for testing purpose
printLine
echo -e "-- Starting gNMI simulator device --\n"
java -jar ${GITHUB_WORKSPACE}/lighty-modules/lighty-gnmi/lighty-gnmi-device-simulator/target/lighty-gnmi-device-simulator-20.0.0-SNAPSHOT.jar -c ./simulator/example_config.json > /dev/null 2>&1 &
java -jar ${GITHUB_WORKSPACE}/lighty-modules/lighty-gnmi/lighty-gnmi-device-simulator/target/lighty-gnmi-device-simulator-20.0.0-SNAPSHOT.jar -c ./simulator/example_config.json &

#Add yangs into controller through REST rpc
./add_yangs_via_rpc.sh
Expand Down 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 fa6cf74

Please sign in to comment.