Skip to content

Commit

Permalink
fixed inspect all test
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Jun 23, 2021
1 parent 9dcc3ca commit 9715cb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions tests/01-smoke/01-basic-flow.robot
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ Ensure "inspect all" outputs IP addresses
... sudo containerlab --runtime ${runtime} inspect --all
Log ${output}
Should Be Equal As Integers ${rc} 0
${line} = String.Get Line ${output} -2
# get a 3rd line from the bottom of the inspect cmd.
# this relates to the l2 node
${line} = String.Get Line ${output} -3
Log ${line}
@{data} = Split String ${line} |
Log ${data}
Expand All @@ -88,7 +90,7 @@ Verify port forwarding for node l2
Should Contain ${output} Thank you for using nginx

Verify static mgmt addressing for l2
Skip If '${runtime} != docker'
Skip If '${runtime}' != 'docker'
${rc} ${ipv4} = Run And Return Rc And Output
... ${runtime-cli-exec-cmd} clab-2-linux-nodes-l2 ip -o -4 a sh eth0 | cut -d ' ' -f7
Log ${ipv4}
Expand Down
2 changes: 1 addition & 1 deletion tests/01-smoke/03-bridges-and-host.robot
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Verify links in host ns

Verify management network is using user-specified bridge
# containerd has an issue with filtering at this moment, so skip it
Skip If '${runtime} != docker'
Skip If '${runtime}' != 'docker'
# show management interface info and cut the information about the ifindex of the remote veth
# note that exec returns the info in the stderr stream, thus we use stderr to parse the ifindex
${rc} ${iface} = OperatingSystem.Run And Return Rc And Output
Expand Down

0 comments on commit 9715cb8

Please sign in to comment.