summaryrefslogtreecommitdiff
path: root/tests/unittests
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2014-02-24 16:15:19 -0500
committerScott Moser <smoser@ubuntu.com>2014-02-24 16:15:19 -0500
commit82c659d5473d4f06705c233bc43f5d5a8ba262f7 (patch)
treec41b121554010b39f08126bf817a1a622d83625d /tests/unittests
parenta8668153b08a7e919e3795a5e93201fa99f7224c (diff)
downloadvyos-cloud-init-82c659d5473d4f06705c233bc43f5d5a8ba262f7.tar.gz
vyos-cloud-init-82c659d5473d4f06705c233bc43f5d5a8ba262f7.zip
test_smartos: remove bad test case
This test case isn't really valid any more as we've changed the way this works.
Diffstat (limited to 'tests/unittests')
-rw-r--r--tests/unittests/test_datasource/test_smartos.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/unittests/test_datasource/test_smartos.py b/tests/unittests/test_datasource/test_smartos.py
index 19282bac..11d9a264 100644
--- a/tests/unittests/test_datasource/test_smartos.py
+++ b/tests/unittests/test_datasource/test_smartos.py
@@ -334,33 +334,6 @@ class TestSmartOSDataSource(helpers.FilesystemMockingTestCase):
shebang = f.readlines()[0].strip()
self.assertEquals(shebang, "#!/usr/bin/perl")
- def test_scripts_removed(self):
- """
- Since SmartOS requires that the user script is fetched
- each boot, we want to make sure that the information
- is backed-up for user-review later.
-
- This tests the behavior of when a script is removed. It makes
- sure that a) the previous script is backed-up; and 2) that
- there is no script remaining.
- """
-
- script_d = os.path.join(self.tmp, "instance", "data")
- os.makedirs(script_d)
-
- test_script_f = os.path.join(script_d, 'user-script')
- with open(test_script_f, 'w') as f:
- f.write("TEST DATA")
-
- my_returns = MOCK_RETURNS.copy()
- del my_returns['user-script']
-
- dsrc = self._get_ds(mockdata=my_returns)
- ret = dsrc.get_data()
- self.assertTrue(ret)
- self.assertFalse(dsrc.metadata['user-script'])
- self.assertFalse(os.path.exists(test_script_f))
-
def test_userdata_removed(self):
"""
User-data in the SmartOS world is supposed to be written to a file