summaryrefslogtreecommitdiff
path: root/tests/unittests/test_util.py
Commit message (Collapse)AuthorAgeFilesLines
...
* pep8Scott Moser2015-02-111-1/+0
|
* Add unittests for util.multi_log.Daniel Watkins2015-02-111-0/+68
|
* Fix import ordering in test_util.py.Daniel Watkins2015-02-111-5/+5
|
* Repair the Python 2.6 tests.Barry Warsaw2015-01-261-8/+7
|
* Trunk merged and ported.Barry Warsaw2015-01-261-0/+59
|\
| * Use either syspath or dmidecode based on the availability.Ben Howard2015-01-211-1/+29
| |
| * Drop reliance on dmidecode executable.Ben Howard2015-01-141-0/+28
| |
* | Down to it.Barry Warsaw2015-01-261-1/+1
| |
* | More test repairs.Barry Warsaw2015-01-261-3/+3
| |
* | Conversion from mocker to mock completed.Barry Warsaw2015-01-221-12/+19
| |
* | More test ports from mocker to mock.Barry Warsaw2015-01-221-1/+4
| |
* | Port test__init__.py to unittest.mock.Barry Warsaw2015-01-221-2/+1
| |
* | Fix file modes to be Python 2/3 compatible.Barry Warsaw2015-01-211-3/+3
|/
* further remove evidence of pylint.Scott Moser2014-08-261-4/+2
| | | | | This just removes comments '# pylint:' things and other code remnents of pylint.
* SeLinuxGuard: remove invalid check for sanity around restorecon, fix testScott Moser2014-07-241-10/+8
| | | | | | | | previous commit occurred because the selinux test was failing in a schroot where there was no /etc/hosts. Now, fix that test more correctly, and fix some bad assumptions in the SeLinuxGuard.
* test: make selinux test skipped if selinux not available.Scott Moser2014-07-241-5/+12
| | | | Also, in debian packaging depend on it (so it wont skip there).
* more import statementsDimitri John Ledkov2014-07-231-1/+1
|
* fix permission changesScott Moser2013-10-021-0/+0
|
* Reordered several imports in order for test suite to pass.Eric Nordlund2013-10-011-1/+1
|
* tests: fix pep8 issueScott Moser2013-07-241-45/+7
| | | | | Move long lines out of the test_util.py file and into tests/data. no pep8 or pylint errors now.
* pylint fixesScott Moser2013-03-191-0/+2
| | | | | | | | | | a.) appease pylint on raring, as it doesn't like subprocess pylint: 0.26.0-1ubuntu1 This is mentioned in comments at http://www.logilab.org/ticket/46273 b.) tests/unittests/test_util.py: the mountinfo lines are longer than 80 chars. Just disable long lines complaints for this file.
* util.parse_mount_info(): add unit tests.Blair Zajac2013-03-101-0/+95
|
* Ensure that at needed stages the local variablesJoshua Harlow2012-11-081-59/+0
| | | | | | | of the init class are reset so that when they are regenerated that they will use the updated data instead of using previous data (since they weren't reset). LP: #1076811
* add 'safeyaml' to cloudinitScott Moser2012-09-281-0/+39
| | | | | | | | | In 0.7.0 we started using yaml.safe_load to load data rather than yaml.load. Some producers (namely, ubuntu MAAS created) have produced cloud-config data in the past that included python unicode types. This creates a specialized safe_loader that is basically safe_load + support for python unicode.
* fix pep8 complaints.Scott Moser2012-08-221-2/+2
| | | | make pep8 now is silent on precise's pep8 ( 0.6.1-2ubuntu2).
* test_util: add pylint ignore for FakeSelinuxScott Moser2012-08-091-2/+2
| | | | | The methods here have to match the real Selinux signiture, so even though we dont use these variables.
* Refactor the selinux guard to aid in mockingharlowja2012-06-291-16/+30
| | | | 1. Adjust the test_util after this mocking to be cleaner
* Fixup python selinux guards, only try to restore after we check if its ↵harlowja2012-06-211-7/+6
| | | | useful to restore, fix test to work with selinux enabled sysystems
* Missed some other mkdtemp and rmtree calls no longer neededJoshua Harlow2012-06-211-12/+2
|
* Use the mocker built-in method for creating temporary dirs (which it will ↵Joshua Harlow2012-06-211-7/+2
| | | | cleanup)
* This is now functional and all passing againJoshua Harlow2012-06-211-42/+49
|
* initial checkin of kernel commandline cloud-config url supportScott Moser2012-04-041-1/+17
|
* tests/unittests/test_util.py: fix pylint errorScott Moser2012-03-061-1/+1
|
* Lint fixes.Mike Milner2012-01-171-1/+6
|
* Added delete_dir_contents function to cloudinit.util.Mike Milner2012-01-171-1/+71
|
* Comment and doc cleanup.Mike Milner2012-01-171-0/+13
|
* Add unit tests for util.write_file.Mike Milner2012-01-171-1/+84
|
* Add some tests for get_cfg_option_list_or_str.Mike Milner2012-01-121-1/+27
|
* Add initial unit test framework.Mike Milner2012-01-121-0/+53
Add initial tests for mergedict.