summaryrefslogtreecommitdiff
path: root/tests/unittests
AgeCommit message (Collapse)Author
2012-09-20Add a resolv.conf parser that can be easilyJoshua Harlow
used for adjusting a resolv.conf formatted file and use this to adjust the resolv.conf in the redhat distro instead of replacing the previous resolv.conf completely.
2012-09-01improvements for launch index, one fix for cloud-archiveJoshua Harlow
1. Docs for launch-index + examples 2. Tests for launch-index + data files 3. Fixing a bug with cloud-archive yaml types allowed (likes a tuple not a list for some reason) (LP: #1044594) 4. Setting the 'part' content-type if what we actually use is different. LP: #1044594
2012-08-31Fix pylint complaints.Joshua Harlow
2012-08-311. Add a helper for tests to use to load resource/data files fromJoshua Harlow
2. Add a set of tests+data that ensure the launch index filtering works as expected in the various modes including raw yaml and via mime/email message formats.
2012-08-24fix test case for copy of uuid -> instance-idScott Moser
2012-08-24committing in preparation for actual testScott Moser
2012-08-23some more tests.Scott Moser
2012-08-23fix pep8 and pylintScott Moser
2012-08-23initial functional unit testScott Moser
2012-08-22merge from trunk for pep8 fixesScott Moser
2012-08-22fix pep8 complaints.Scott Moser
make pep8 now is silent on precise's pep8 ( 0.6.1-2ubuntu2).
2012-08-22add testScott Moser
2012-08-14Add RHEVm and vSphere support as datasource AltCloudScott Moser
These changes add a new data source to cloud-init to support passing user data to RHEVm and vSphere. The user data is passed to RHEVm v3.0 (current version) using a floppy injection hook and to vSphere via cdrom device. RHEVm v3.1 will use a method similar to vSphere. Once available support for that is also expected.
2012-08-13add test to excercise udevadm usage.Joe VLcek
2012-08-10Address review feedback for:Joe VLcek
https://code.launchpad.net/~joev-n/cloud-init/altcloud-changes/+merge/116542/comments/255564 https://code.launchpad.net/~joev-n/cloud-init/altcloud-changes/+merge/116542/comments/255565
2012-08-09stright forward pylint cleanups to tests/ and tools/Scott Moser
2012-08-09test_util: add pylint ignore for FakeSelinuxScott Moser
The methods here have to match the real Selinux signiture, so even though we dont use these variables.
2012-08-08Address review feedback for:Joe VLcek
https://code.launchpad.net/~joev-n/cloud-init/altcloud-changes/+merge/116542
2012-07-20Add retry logic to DataSourceAltCloudJoe VLcek
2012-07-17Added RHEVm and vSphere support as source AltCloudJoe VLcek
2012-06-29Refactor the selinux guard to aid in mockingharlowja
1. Adjust the test_util after this mocking to be cleaner
2012-06-29Add a test that ensures the upstart handler does not output files when in ↵Joshua Harlow
non-per-instance mode.
2012-06-281. Update with smosers code review and comments (and put some of those ↵Joshua Harlow
comments into the files) 2. Rename consume() to consume_userdata() as it helps in figuring out what this does. 3. Fixup the tests due to #2
2012-06-22Adjust test for turning off capturingJoshua Harlow
2012-06-21Fixup python selinux guards, only try to restore after we check if its ↵harlowja
useful to restore, fix test to work with selinux enabled sysystems
2012-06-21Get this test working again.Joshua Harlow
2012-06-21Get both of these tests back in working shape.Joshua Harlow
2012-06-21Missed some other mkdtemp and rmtree calls no longer neededJoshua Harlow
2012-06-21Use the mocker built-in method for creating temporary dirs (which it will ↵Joshua Harlow
cleanup)
2012-06-211. Got this test working again using the new code.Joshua Harlow
2. Adjusted so that instead of capturing all logging, only a certain level is captured (now that we have lots more logging)
2012-06-21This is now functional and all passing againJoshua Harlow
2012-04-04initial checkin of kernel commandline cloud-config url supportScott Moser
2012-03-16add supprot for reading public-keys from DataSourcMAASScott Moser
2012-03-16rename DataSourceMaaS to DataSourceMAAS, generally use MAAS everywhereScott Moser
instead of MaaS or Maas, use MAAS consistently. The only non 'MAAS' left are all lower case.
2012-03-16fix pylint warnings in test_userdataScott Moser
2012-03-12Warn in user-data processing on non-multipart, non-handled dataScott Moser
If user-data is supplied that is not multipart, and is unhandled, then log a warning. A warning by default will get to the console, so the user can see it even if they cannot get into the instance. If they don't see it there, it would still be available in the cloud-init log.
2012-03-12Restrict warning to userdata without MIME wrapping only while still ignoring ↵Martin Packman
most types
2012-03-09If the user has chosen to remove default ca-certs, prevent package upgrade Scott Moser
of ca-certificates from adding new trusted certs.
2012-03-08pep8 and pylintScott Moser
2012-03-08add a test for read_maas_seed_urlScott Moser
2012-03-08Add tests for writing of userdata parts to the filesystemMartin Packman
2012-03-08fix tests for 'hostname' to 'local-hostname' and user-data not requiredScott Moser
2012-03-08Switch to using util.subp.Mike Milner
2012-03-07fix pylint and pep8 warningsScott Moser
2012-03-06file for user-data should be 'user-data' (including the '-')Scott Moser
2012-03-06assert that userdata is not returned as part of metadataScott Moser
2012-03-06Add initial DataSourceMaaS.Scott Moser
Tests at this point seem to indicate that seed-dir would work.
2012-03-06tests/unittests/test_util.py: fix pylint errorScott Moser
2012-02-24If we don't trust the default certs, don't add new certs fromMike Milner
ca-certificates package upgrades.
2012-02-21Cleanups.Mike Milner