Skip to content

Commit

Permalink
added test for live-pull of the image
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Jun 22, 2021
1 parent 018f964 commit a761bfc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/01-smoke/03-bridges-and-host.robot
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This test suite verifies

*** Settings ***
Library OperatingSystem
Suite Setup Run sudo ip l del ${bridge-name}
Suite Setup Setup
Suite Teardown Cleanup

*** Variables ***
Expand Down Expand Up @@ -47,6 +47,13 @@ Verify links in host ns
Should Contain ${output} state UP

*** Keywords ***
Setup
# ensure the bridge we about to create is deleted first
Run sudo ip l del ${bridge-name}
# remove the alpine:3 container image, to test that we are able to live-pull it
Run sudo docker image rm alpine:3
Run sudo ctr -n clab image rm docker.io/library/alpine:3

Cleanup
${rc} ${output} = Run And Return Rc And Output sudo containerlab --runtime ${runtime} destroy -t ${CURDIR}/${lab-file} --cleanup
Log ${output}
Expand Down

0 comments on commit a761bfc

Please sign in to comment.