Skip to content

Commit

Permalink
add testing to get the podname of ovsinfos
Browse files Browse the repository at this point in the history
  • Loading branch information
hwchiu committed Aug 31, 2018
1 parent efeda9f commit 1408c82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/07-ovs/script.bats
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ load init
localID=`http --auth-type=jwt "127.0.0.1:7890/v1/ovs/portinfos?nodeName=$nodeName&bridgeName=$output" | jq -r ".[3].portID"`
[ $? = 0 ]
[ "$localID" = "-1" ]

podName=`http --auth-type=jwt "127.0.0.1:7890/v1/ovs/portinfos?nodeName=$nodeName&bridgeName=$output" | jq -r ".[0].podName"`
echo $podName | grep ${deploymentName}
[ $? = 0 ]
}

@test "Delete Deployment" {
Expand Down

0 comments on commit 1408c82

Please sign in to comment.