Skip to content

Commit

Permalink
added integration test for short url
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Nov 6, 2023
1 parent 9d325c4 commit 7f54130
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions tests/01-smoke/12-cloned-lab.robot
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ Suite Teardown Cleanup


*** Variables ***
${lab1-url} https://github.com/hellt/clab-test-repo
${lab1-url2} https://github.com/hellt/clab-test-repo/blob/main/lab1.clab.yml
${lab2-url} https://github.com/hellt/clab-test-repo/tree/branch1
${runtime} docker
${lab1-url} https://github.com/hellt/clab-test-repo
${lab1-shorturl} hellt/clab-test-repo
${lab1-url2} https://github.com/hellt/clab-test-repo/blob/main/lab1.clab.yml
${lab2-url} https://github.com/hellt/clab-test-repo/tree/branch1
${runtime} docker


*** Test Cases ***
Expand Down Expand Up @@ -57,6 +58,23 @@ Test lab3
# check that node3 was filtered and not present in the lab output
Should Contain ${output.stdout} clab-lab2-node1

Cleanup

Test lab1 with short github url
${output} = Process.Run Process
... sudo -E ${CLAB_BIN} --runtime ${runtime} deploy -t ${lab1-shorturl}
... shell=True

Log ${output.stdout}
Log ${output.stderr}

Should Be Equal As Integers ${output.rc} 0

# check that node3 was filtered and not present in the lab output
Should Contain ${output.stdout} clab-lab1-node1

Cleanup


*** Keywords ***
Cleanup
Expand Down

0 comments on commit 7f54130

Please sign in to comment.