-
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.
added stdin support for topos (#1621)
* added stdin support for topos * lazy to use act, testing in gh actions * create clab temp dir before reading from stdin
- Loading branch information
Showing
5 changed files
with
81 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
*** Settings *** | ||
Library OperatingSystem | ||
Library String | ||
Library Process | ||
Resource ../common.robot | ||
|
||
Suite Teardown Run Keyword Teardown | ||
|
||
|
||
*** Variables *** | ||
${lab-url} https://gist.githubusercontent.com/hellt/9baa28d7e3cb8290ade1e1be38a8d12b/raw/03067e242d44c9bbe38afa81131e46bab1fa0c42/test.clab.yml | ||
|
||
|
||
*** Test Cases *** | ||
Deploy remote lab | ||
${rc} ${output} = Run And Return Rc And Output | ||
... sudo curl -s ${lab-url} | sudo ${CLAB_BIN} --runtime ${runtime} deploy -c -t - | ||
Log ${output} | ||
Should Be Equal As Integers ${rc} 0 | ||
|
||
Ensure inspect works | ||
${rc} ${output} = Run And Return Rc And Output | ||
... sudo ${CLAB_BIN} --runtime ${runtime} inspect --all | ||
Log ${output} | ||
Should Be Equal As Integers ${rc} 0 | ||
|
||
|
||
*** Keywords *** | ||
Teardown | ||
# destroy all labs | ||
Run sudo ${CLAB_BIN} --runtime ${runtime} destroy -c -a |
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