summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNate House nathan.house@rackspace.com <>2014-02-06 09:59:04 -0600
committerNate House nathan.house@rackspace.com <>2014-02-06 09:59:04 -0600
commit805ac503531d27651f0ad4b1a590a488545a0887 (patch)
tree75e15bbb21ae0eed498a69f52d5c99bf6637fdc5 /tests
parentd57f684e62b00d3fc4f3b7f018a566d7804b7440 (diff)
downloadvyos-cloud-init-805ac503531d27651f0ad4b1a590a488545a0887.tar.gz
vyos-cloud-init-805ac503531d27651f0ad4b1a590a488545a0887.zip
Removed exclude bits from yum module as its not a default
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_handler/test_handler_yum_add_repo.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/unittests/test_handler/test_handler_yum_add_repo.py b/tests/unittests/test_handler/test_handler_yum_add_repo.py
index ddf0ef9c..8df592f9 100644
--- a/tests/unittests/test_handler/test_handler_yum_add_repo.py
+++ b/tests/unittests/test_handler/test_handler_yum_add_repo.py
@@ -2,7 +2,6 @@ from cloudinit import helpers
from cloudinit import util
from cloudinit.config import cc_yum_add_repo
-from cloudinit.distros import rhel
from tests.unittests import helpers
@@ -19,8 +18,6 @@ class TestConfig(helpers.FilesystemMockingTestCase):
def setUp(self):
super(TestConfig, self).setUp()
self.tmp = self.makeDir(prefix="unittest_")
- self.cloud = type('', (), {})()
- self.cloud.distro = rhel.Distro('test', {}, None)
def test_bad_config(self):
cfg = {
@@ -37,7 +34,7 @@ class TestConfig(helpers.FilesystemMockingTestCase):
},
}
self.patchUtils(self.tmp)
- cc_yum_add_repo.handle('yum_add_repo', cfg, self.cloud, LOG, [])
+ cc_yum_add_repo.handle('yum_add_repo', cfg, None, LOG, [])
self.assertRaises(IOError, util.load_file,
"/etc/yum.repos.d/epel_testing.repo")
@@ -55,7 +52,7 @@ class TestConfig(helpers.FilesystemMockingTestCase):
},
}
self.patchUtils(self.tmp)
- cc_yum_add_repo.handle('yum_add_repo', cfg, self.cloud, LOG, [])
+ cc_yum_add_repo.handle('yum_add_repo', cfg, None, LOG, [])
contents = util.load_file("/etc/yum.repos.d/epel_testing.repo")
contents = configobj.ConfigObj(StringIO(contents))
expected = {