-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
*** Settings *** | ||
Library OperatingSystem | ||
Suite Teardown Cleanup | ||
|
||
*** Variables *** | ||
${lab-name} 3-clab-gen | ||
|
||
*** Test Cases *** | ||
Deploy ${lab-name} lab with generate command | ||
${rc} ${output} = Run And Return Rc And Output | ||
... sudo containerlab generate --name ${lab-name} --kind linux --image alpine:latest --nodes 2,1,1 --deploy | ||
Log ${output} | ||
Should Be Equal As Integers ${rc} 0 | ||
|
||
Verify nodes | ||
${rc} ${output} = Run And Return Rc And Output | ||
... sudo containerlab inspect --name ${lab-name} | ||
Log ${output} | ||
Should Be Equal As Integers ${rc} 0 | ||
Should Contain ${output} clab-${lab-name}-node1-1 | ||
Should Contain ${output} clab-${lab-name}-node1-2 | ||
Should Contain ${output} clab-${lab-name}-node2-1 | ||
Should Contain ${output} clab-${lab-name}-node3-1 | ||
|
||
*** Keywords *** | ||
Cleanup | ||
Run sudo containerlab destroy -t ${CURDIR}/${lab-name}.clab.yml --cleanup |