summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-05-10 15:30:49 +0200
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-05-10 15:30:49 +0200
commit8cb8502cc1c99ec787e23504cf4e9f60c01bf0fe (patch)
tree79a540806938ee01d03dc242373154688ebd8869 /tests
parentb0494addabfe1d07947427ade99a00d2c7588f12 (diff)
downloadvyos-cloud-init-8cb8502cc1c99ec787e23504cf4e9f60c01bf0fe.tar.gz
vyos-cloud-init-8cb8502cc1c99ec787e23504cf4e9f60c01bf0fe.zip
add test_apt_source_ppa (failing for now)
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_handler/test_handler_apt_source.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/unittests/test_handler/test_handler_apt_source.py b/tests/unittests/test_handler/test_handler_apt_source.py
index a9647156..22a4accf 100644
--- a/tests/unittests/test_handler/test_handler_apt_source.py
+++ b/tests/unittests/test_handler/test_handler_apt_source.py
@@ -103,4 +103,25 @@ class TestAptSourceConfig(TestCase):
"multiverse"),
contents, flags=re.IGNORECASE))
+
+ def test_apt_source_ppa(self):
+ """ test_apt_source_ppa
+ Test specification of a ppa
+ """
+ params = self._get_default_params()
+ cfg = {'source': 'ppa:smoser/cloud-init-test',
+ 'filename': self.aptlistfile}
+
+ cc_apt_configure.add_sources([cfg], params)
+
+ self.assertTrue(os.path.isfile(self.aptlistfile))
+
+ # report content before making regex
+ # FAIL ? goes in "untranslated"
+ # should become e.g. deb http://ppa.launchpad.net/smoser/cloud-init-test/ubuntu xenial main
+ contents = load_tfile_or_url(self.aptlistfile)
+ print(contents)
+ self.assertTrue(1 == 2)
+
+
# vi: ts=4 expandtab