-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactored tests to accommodate for containerd
- Loading branch information
Showing
9 changed files
with
47 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ topology: | |
l1: | ||
kind: linux | ||
image: alpine:3 | ||
cmd: ash -c "sleep 9999" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
*** Settings *** | ||
Library OperatingSystem | ||
Suite Teardown Run sudo containerlab destroy --all --cleanup | ||
Suite Teardown Run sudo containerlab --runtime ${runtime} destroy --all --cleanup | ||
|
||
*** Variables *** | ||
${runtime} docker | ||
|
||
*** Test Cases *** | ||
Deploy first lab | ||
${rc} ${output} = Run And Return Rc And Output | ||
... sudo containerlab deploy -t ${CURDIR}/01-linux-nodes.clab.yml | ||
... sudo containerlab --runtime ${runtime} deploy -t ${CURDIR}/01-linux-nodes.clab.yml | ||
Log ${output} | ||
Should Be Equal As Integers ${rc} 0 | ||
|
||
Deploy second lab | ||
${rc} ${output} = Run And Return Rc And Output | ||
... sudo containerlab deploy -t ${CURDIR}/01-linux-single-node.clab.yml | ||
... sudo containerlab --runtime ${runtime} deploy -t ${CURDIR}/01-linux-single-node.clab.yml | ||
Log ${output} | ||
Should Be Equal As Integers ${rc} 0 | ||
|
||
Destroy all labs | ||
${rc} ${output} = Run And Return Rc And Output | ||
... sudo containerlab destroy --all --cleanup | ||
... sudo containerlab --runtime ${runtime} destroy --all --cleanup | ||
Log ${output} | ||
Should Be Equal As Integers ${rc} 0 | ||
|
||
Check all labs have been removed | ||
${rc} ${output} = Run And Return Rc And Output | ||
... sudo containerlab inspect --all | ||
... sudo containerlab --runtime ${runtime} inspect --all | ||
Log ${output} | ||
Should Contain ${output} no containers found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ topology: | |
l1: | ||
kind: linux | ||
image: alpine:3 | ||
cmd: ash -c "sleep 9999" | ||
br-clab: | ||
kind: bridge | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters