summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/testcases/modules/apt_configure_primary.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cloud_tests/testcases/modules/apt_configure_primary.yaml')
-rw-r--r--tests/cloud_tests/testcases/modules/apt_configure_primary.yaml26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/cloud_tests/testcases/modules/apt_configure_primary.yaml b/tests/cloud_tests/testcases/modules/apt_configure_primary.yaml
new file mode 100644
index 00000000..41bcf2fd
--- /dev/null
+++ b/tests/cloud_tests/testcases/modules/apt_configure_primary.yaml
@@ -0,0 +1,26 @@
+#
+# Setup a custome primary sources.list
+#
+required_features:
+ - apt
+ - apt_src_cont
+cloud_config: |
+ #cloud-config
+ apt:
+ primary:
+ - arches:
+ - default
+ uri: "http://www.gtlib.gatech.edu/pub/ubuntu-releases/"
+collect_scripts:
+ ubuntu.sources.list: |
+ #!/bin/bash
+ grep -v '^#' /etc/apt/sources.list | sed '/^\s*$/d' | grep -c archive.ubuntu.com
+ gatech.sources.list: |
+ #!/bin/bash
+ grep -v '^#' /etc/apt/sources.list | sed '/^\s*$/d' | grep -c gtlib.gatech.edu
+
+ sources.list: |
+ #!/bin/bash
+ cat /etc/apt/sources.list
+
+# vi: ts=4 expandtab