From a7c774c7ad93ba2d40403f75e5583da3fb21a278 Mon Sep 17 00:00:00 2001 From: Jonatan Schlag Date: Fri, 11 May 2018 14:29:58 +0200 Subject: [PATCH] Move tests and virtual environment example into examples subfolder Fixes: #11723 Signed-off-by: Jonatan Schlag --- examples/test/recipe | 6 + examples/test/settings | 12 ++ examples/test2/recipe | 2 + examples/test2/settings | 9 ++ examples/test3/recipe | 2 + examples/test3/settings | 9 ++ .../basic/machines/alice/machine.xml | 111 ++++++++++++++++++ .../basic/machines/alice/snapshot.xml | 8 ++ .../basic/machines/bob/machine.xml | 111 ++++++++++++++++++ .../basic/machines/bob/snapshot.xml | 8 ++ .../basic/network/network1/network.xml | 8 ++ .../basic/network/network2/network.xml | 8 ++ examples/virtual-environment/basic/settings | 27 +++++ 13 files changed, 321 insertions(+) create mode 100644 examples/test/recipe create mode 100644 examples/test/settings create mode 100644 examples/test2/recipe create mode 100644 examples/test2/settings create mode 100644 examples/test3/recipe create mode 100644 examples/test3/settings create mode 100644 examples/virtual-environment/basic/machines/alice/machine.xml create mode 100644 examples/virtual-environment/basic/machines/alice/snapshot.xml create mode 100644 examples/virtual-environment/basic/machines/bob/machine.xml create mode 100644 examples/virtual-environment/basic/machines/bob/snapshot.xml create mode 100644 examples/virtual-environment/basic/network/network1/network.xml create mode 100644 examples/virtual-environment/basic/network/network2/network.xml create mode 100644 examples/virtual-environment/basic/settings diff --git a/examples/test/recipe b/examples/test/recipe new file mode 100644 index 0000000..c035b97 --- /dev/null +++ b/examples/test/recipe @@ -0,0 +1,6 @@ +alice: echo "Hello World" +bob: echo "Hello World" +alice: ls -l +all: blkid +alice,bob !: eecho "This is a comma seperated list" +include: ../test2 diff --git a/examples/test/settings b/examples/test/settings new file mode 100644 index 0000000..d390dc0 --- /dev/null +++ b/examples/test/settings @@ -0,0 +1,12 @@ +[DEFAULT] +Name = Hello World +Description = This is a + short description. + +Copy_from = +Copy_to = /root/ + +[VIRTUAL_ENVIRONMENT] +Name = basic +path = ../virtual-environment/basic + diff --git a/examples/test2/recipe b/examples/test2/recipe new file mode 100644 index 0000000..7f96a65 --- /dev/null +++ b/examples/test2/recipe @@ -0,0 +1,2 @@ +alice: echo "This is test2 on alice" +include: ../test3 diff --git a/examples/test2/settings b/examples/test2/settings new file mode 100644 index 0000000..616e1a0 --- /dev/null +++ b/examples/test2/settings @@ -0,0 +1,9 @@ +[DEFAULT] +Name = Hello World +Description = This is a + short description. + +[VIRTUAL_ENVIRONMENT] +Name = basic +path = ../virtual-environment/basic + diff --git a/examples/test3/recipe b/examples/test3/recipe new file mode 100644 index 0000000..5382623 --- /dev/null +++ b/examples/test3/recipe @@ -0,0 +1,2 @@ +alice: echo "This is test3 on alice" +all: echo "This is test3 on all" \ No newline at end of file diff --git a/examples/test3/settings b/examples/test3/settings new file mode 100644 index 0000000..616e1a0 --- /dev/null +++ b/examples/test3/settings @@ -0,0 +1,9 @@ +[DEFAULT] +Name = Hello World +Description = This is a + short description. + +[VIRTUAL_ENVIRONMENT] +Name = basic +path = ../virtual-environment/basic + diff --git a/examples/virtual-environment/basic/machines/alice/machine.xml b/examples/virtual-environment/basic/machines/alice/machine.xml new file mode 100644 index 0000000..2f7d0f5 --- /dev/null +++ b/examples/virtual-environment/basic/machines/alice/machine.xml @@ -0,0 +1,111 @@ + + alice + 76eb4b45-158b-435d-84eb-0bdc0aafd1f8 + 1048576 + 1048576 + 1 + + hvm + + + + + + + + + Broadwell-noTSX + + + + + + + destroy + restart + restart + + + + + + /usr/bin/kvm + + + + +
+ + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + + + +
+ + + + + +
+ + + + + + + + + +
+ + + +
+ + +
+ + + + + + + + +
+ +