summaryrefslogtreecommitdiff
path: root/tests/data/roots
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-09-26 16:29:50 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-09-26 16:29:50 -0700
commitf31a4e80aaaafca79eb6c808c81a6067f0c493b8 (patch)
tree43a4a2cf70012cfbcd9cd68b1a65e48b1c97e150 /tests/data/roots
parent317f442445fc40a666e9566e1f2739324cc99a2e (diff)
downloadvyos-cloud-init-f31a4e80aaaafca79eb6c808c81a6067f0c493b8.tar.gz
vyos-cloud-init-f31a4e80aaaafca79eb6c808c81a6067f0c493b8.zip
Add a new example test that will patch utils and os
functions so that they can be 'retargeted' to a temporary directory, which allows us the ability to run a full set of cloud-init stages. Neat things: 1. All cloud-init code is unchanged (as long as it goes through the utils functions for most functionality) 2. Allows for a natural way to setup a temporary directory then patch the new directory as the new 'root' and then run cloud-init stages and then check the contents of what was placed as desired.
Diffstat (limited to 'tests/data/roots')
-rw-r--r--tests/data/roots/simple_ubuntu/etc/networks/interfaces3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/data/roots/simple_ubuntu/etc/networks/interfaces b/tests/data/roots/simple_ubuntu/etc/networks/interfaces
new file mode 100644
index 00000000..77efa67d
--- /dev/null
+++ b/tests/data/roots/simple_ubuntu/etc/networks/interfaces
@@ -0,0 +1,3 @@
+auto lo
+iface lo inet loopback
+