summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2012-10-23move default user info out of code and into configScott Moser
Remove the need to have 'default_user' and 'default_user_groups' groups be hard coded into the distro class, instead let that set of configuration be located in the config file where it should be specified instead.
2012-10-05Pylint cleanups.Joshua Harlow
2012-10-05Add tests to show that the assigned bug is fixed.Joshua Harlow
Also fix the extraction of the metadata key name since it actually uses 'dashes' instead of being a single word.
2012-09-28Sync with head and fix conflicts.Joshua Harlow
2012-09-28Rework the rest of the locations that usedJoshua Harlow
the previous 'user' and make those locations go through the new distros functions to select the default user or the user list (depending on usage). Adjust the tests to check the new 'default' field that signifies the default user + test the new method to extract just the default user from a normalized user dictionary.
2012-09-28add 'safeyaml' to cloudinitScott Moser
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.
2012-09-27cleanup the user/group listsJoshua Harlow
The primary utility here is normalize_user_groups, which would be called by config modules to get a list of users or groups. This centralizes what was copied code into this one location.
2012-09-25add tests for netcfg codeJoshua Harlow
2012-09-25Fix tests after resync with head.Joshua Harlow
2012-09-24Handle the case where 'user' is defined but 'users' isn't.Joshua Harlow
2012-09-24Fix pylint issues created.Joshua Harlow
2012-09-24Add a netconfig format test + if rhel is passed the 'all'Joshua Harlow
device name, throw an error since rhel can not currently handle this case.
2012-09-24Refactor the ug normalization to take in a distroJoshua Harlow
and produce a user and group list. Clean this up to be simpler as well as handle the old 'user' case when it exists in configuration.
2012-09-23Make the normalization a module level functionJoshua Harlow
since it has little dependence on the distros class itself. Readjust the using code to use this new module level function instead.
2012-09-21Fix some docs + pylint warnings + log on default created in the module.Joshua Harlow
2012-09-21Also allow the user list to come in as a commaJoshua Harlow
separated list so that its types match more of what the group list can be.
2012-09-21Actually commit the test for user/group dataJoshua Harlow
normalization instead of forgetting about it.
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-07-02Add a sample yaml config to be used for testing.Joshua Harlow
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