Skip to content

Commit

Permalink
Merge pull request #27 from k0sproject/defer-rm
Browse files Browse the repository at this point in the history
Cleanup of leftover files generated during e2e tests
  • Loading branch information
kke authored Sep 15, 2023
2 parents da9ad76 + 1e91c68 commit a07adfd
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test-basic-commands-%image.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Test that common utilities are present in the base images
footloose config create --config %testName.footloose --override --name %testName --key %testName-key --image %image
%defer rm -f %testName.footloose %testName-key %testName-key.pub
%defer footloose delete --config %testName.footloose
footloose create --config %testName.footloose
footloose --config %testName.footloose ssh root@node0 hostname
Expand Down
1 change: 1 addition & 0 deletions tests/test-config-get-ubuntu18.04.cmd
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
footloose config create --override --config %testName.footloose --name %testName --key %testName-key --networks=net1,net2 --image %image
%defer rm -f %testName.footloose %testName-key %testName-key.pub
%out footloose config get --config %testName.footloose machines[0].spec
1 change: 1 addition & 0 deletions tests/test-create-config-already-exists-%image.cmd
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
footloose config create --config %testName.footloose --name %testName --key %testName-key --image %image
%defer rm -f %testName.footloose %testName-key %testName-key.pub
footloose config create --config %testName.footloose --name %testName --key %testName-key --image %image
1 change: 1 addition & 0 deletions tests/test-create-delete-%image.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
footloose config create --override --config %testName.footloose --name %testName --key %testName-key --image %image
%defer rm -f %testName.footloose %testName-key %testName-key.pub
%defer footloose delete --config %testName.footloose
footloose create --config %testName.footloose
%out docker ps --format {{.Names}} -f label=io.k0sproject.footloose.cluster=%testName
Expand Down
1 change: 1 addition & 0 deletions tests/test-create-delete-idempotent-%image.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
footloose config create --override --config %testName.footloose --name %testName --key %testName-key --image %image
%defer rm -f %testName.footloose %testName-key %testName-key.pub
%defer footloose delete --config %testName.footloose
footloose create --config %testName.footloose
footloose create --config %testName.footloose
Expand Down
1 change: 1 addition & 0 deletions tests/test-create-delete-persistent-%image.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
footloose config create --override --config %testName.footloose --name %testName --key %testName-key --image %image
%defer rm -f %testName.footloose %testName-key %testName-key.pub
%defer footloose delete --config %testName.footloose
footloose create --config %testName.footloose
%out docker ps --format {{.Names}} -f label=io.k0sproject.footloose.cluster=%testName
Expand Down
1 change: 1 addition & 0 deletions tests/test-create-stop-start-%image.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
footloose config create --override --config %testName.footloose --name %testName --key %testName-key --image %image
%defer rm -f %testName.footloose %testName-key %testName-key.pub
%defer footloose delete --config %testName.footloose
footloose create --config %testName.footloose
%out docker ps --format {{.Names}} -f label=io.k0sproject.footloose.cluster=%testName
Expand Down
1 change: 1 addition & 0 deletions tests/test-show-ubuntu18.04.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
footloose config create --override --config %testName.footloose --name %testName --key %testName-key --image ubuntu18.04
%defer rm -f %testName.footloose %testName-key %testName-key.pub
%defer footloose delete --config %testName.footloose
footloose create --config %testName.footloose
footloose delete --config %testName.footloose
Expand Down
1 change: 1 addition & 0 deletions tests/test-ssh-remote-command-%image.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
footloose config create --override --config %testName.footloose --name %testName --key %testName-key --image %image
%defer rm -f %testName.footloose %testName-key %testName-key.pub
%defer footloose delete --config %testName.footloose
footloose create --config %testName.footloose
%out footloose --config %testName.footloose ssh root@node0 hostname
1 change: 1 addition & 0 deletions tests/test-ssh-user-%image.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
footloose config create --override --config %testName.footloose --name %testName --key %testName-key --image %image
%defer rm -f %testName.footloose %testName-key %testName-key.pub
%defer footloose delete --config %testName.footloose
footloose create --config %testName.footloose
footloose show --config %testName.footloose
Expand Down
1 change: 1 addition & 0 deletions tests/test-start-stop-specific-%image.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
footloose config create --override --config %testName.footloose --name %testName --key %testName-key --image %image --replicas 3
%defer rm -f %testName.footloose %testName-key %testName-key.pub
%defer footloose delete --config %testName.footloose
footloose create --config %testName.footloose
footloose stop %testName-node1 --config %testName.footloose
Expand Down

0 comments on commit a07adfd

Please sign in to comment.