diff options
author | Scott Moser <smoser@ubuntu.com> | 2014-02-24 16:24:43 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2014-02-24 16:24:43 -0500 |
commit | 9bb39d151169f83360f4f784dc51a1a3761d396e (patch) | |
tree | 34fd6966672f1daeac4ec9fa5fd4a010bb10b80f | |
parent | 9730b1470f029a514cacbba197c7946d8fedf3d4 (diff) | |
parent | 82c659d5473d4f06705c233bc43f5d5a8ba262f7 (diff) | |
download | vyos-cloud-init-9bb39d151169f83360f4f784dc51a1a3761d396e.tar.gz vyos-cloud-init-9bb39d151169f83360f4f784dc51a1a3761d396e.zip |
merge from trunk
-rw-r--r-- | tests/unittests/test_datasource/test_smartos.py | 27 |
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 |