summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-06-14Make the os samples easier to extend (for new samples)Joshua Harlow
2016-06-13Refactor some of sysconfig changes -> network_state moduleJoshua Harlow
2016-06-10Add a bunch more sample tests for sysconfigJoshua Harlow
2016-06-10Add a sysconfig rendering testJoshua Harlow
2016-06-10Ensure renderer is used in rhelJoshua Harlow
2016-06-10Add a sysconfig rendererJoshua Harlow
2016-06-10Refactor a large part of the networking code.Joshua Harlow
Splits off distro specific code into specific files so that other kinds of networking configuration can be written by the various distro(s) that cloud-init supports. It also isolates some of the cloudinit.net code so that it can be more easily used on its own (and incorporated into other projects such as curtin). During this process it adds tests so that the net process can be tested (to some level) so that the format conversion processes can be tested going forward.
2016-06-10Just mock 'on_first_boot' vs special argumentJoshua Harlow
2016-06-10Just do all the imports on one lineJoshua Harlow
2016-06-10Add unittest2 to builder listJoshua Harlow
2016-06-10clean up temp files made in testsScott Moser
After a 'tox' run, now there are no tmpdirs left in /tmp.
2016-06-10remove unused importScott Moser
2016-06-10one moreScott Moser
2016-06-10fix one large source of leaked tmpfilesScott Moser
2016-06-10Less less tweaking of tox.iniJoshua Harlow
2016-06-10Less tweaking of tox.iniJoshua Harlow
2016-06-10Fix apt configure unittests to run in more environmentsScott Moser
As well as some improvements that were found along testing them and due to the fact that we review some of that code again in the scope of curtin currently. Tests: - add a test for an alternate keyserver - harden mirrorfail tests to detect and skip if no network is available - improve apt_source related tests to work on CentOS7 Changes: - gpg key handling is now in python instead of a shell blob and moved to its own module. - packages/bddeb has an option to sign as someone else than smoser - make exception handling of apt_source features more specific (do not catch broad 'Exception') - rename some functions to reflect better what they actually do - capture some helper subp calls output to avoid spilling into stdout when not intended
2016-06-10minor changes prior to mergeScott Moser
a.) remove 'gpg_' from function names in new gpg module. b.) use --recv-keys rather than --recv --recv-keys is more obvious and works back to precise at least. c.) do not trim trailing '\n' from a armour'd key.
2016-06-10Change missing Cheetah log warning to debug [Andrew Jorgensen]Scott Moser
In the absence of cheetah, which is a fairly heavy templating engine, and not strictly needed by anything in cloud-init, the only warning we saw in the logs was this one from the templater. Degrading this to a debug message makes any other warnings more relevant.
2016-06-09mock is_resolvable in mirrorfail tests to remove dependency to external netChristian Ehrhardt
2016-06-09fix docstring for check connectivityChristian Ehrhardt
2016-06-09remove unused BIN_APT constantChristian Ehrhardt
2016-06-09move SkipTest definition to tests/unittests/helpers.py to be reusableChristian Ehrhardt
2016-06-09improve error handling and reporting in gpg functionsChristian Ehrhardt
2016-06-09move gpg functions into gpg.pyChristian Ehrhardt
This helps for cleaner code structuring. ALong that makeing sure all these functions have a gpg_prefix.
2016-06-07make networking config provided in system config override datasource.Scott Moser
while datasource provided networking is more dynamic in most cases, preference should still be given to networking configuration provided in the system. This is because the user of the image should be ultimately in control of the networking configuration if they so choose. LP: #1590104
2016-06-07system config of networking should override datasource providedScott Moser
while datasource provided networking is more dynamic in most cases, preference should still be given to networking configuration provided in the system. This is because the user of the image should be ultimately in control of the networking configuration if they so choose. LP: #1590104
2016-06-07For now just remove compat.py moduleJoshua Harlow
Let's reduce the size of this change for now.
2016-06-07merge with upstream to avoid merge conflicts on the merge proposalChristian Ehrhardt
2016-06-07enable test_handler_apt_source unittests on CentOSChristian Ehrhardt
Tested and working on CentOS7 (container), so we can enable the tests
2016-06-07mock get_primary_arch for TestAptSourceConfigSourceList for CentOSChristian Ehrhardt
This allows the unittest to pass on CentOS, before it failed as it had no dpkg available.
2016-06-07allow others to sign dsc with --signuser for packages/bddebChristian Ehrhardt
2016-06-07harden mirrorfail tests for the fact that even good mirrors can failChristian Ehrhardt
This might happen e.g. in locked down build environments. In those cases this is detected and the test skipped while not giving up testing it in more capable environments.
2016-06-07drop gpg activity from aot-source key testsChristian Ehrhardt
While the unittest gets a bit less real by that change, it will work in protected environment (e.g. sbuild) and leave the developers .gpg keyring alone.
2016-06-06Get cmdline working againJoshua Harlow
2016-06-06Rebase against masterJoshua Harlow
2016-06-06Change the Cheetah warning to a debug messageAndrew Jorgensen
In the absence of cheetah, which is a fairly heavy templating engine, and not strictly needed by anything in cloud-init, the only warning we saw in the logs was this one from the templater. Degrading this to a debug message makes any other warnings more relevant.
2016-06-06make unittests more readableChristian Ehrhardt
By moving the "what it does" into the first line of the docstrings output becomes much more useful.
2016-06-06capture output of gpg calls to avoid messing up stdout/stderrChristian Ehrhardt
2016-06-06rename fucntion to mirrorurl_to_apt_fileprefix to reflect what it actually doesChristian Ehrhardt
2016-06-06remove check that fails if user has installed tested keysChristian Ehrhardt
The overall check for the expected key is a superset and would spot an issue.
2016-06-06apt_src_keyid_real: drop unused exception variableChristian Ehrhardt
2016-06-06fix alternate keyserver dnsChristian Ehrhardt
The intentionally false name was meant for testing of abug, now we can and should use a proper third party keyserver.
2016-06-06only test the apt feature in environments with aptChristian Ehrhardt
2016-06-06rename add_key / add_source to add_apt_key / add_apt_sourceChristian Ehrhardt
The functions clearly are apt specific so the name should reflect that.
2016-06-06fixup key tests for cases where network isn't availableChristian Ehrhardt
2016-06-06add_key_raw - make exceptions more specificChristian Ehrhardt
2016-06-06pythonify getkeybyid and move it to uitl.pyChristian Ehrhardt
2016-06-06test alternate keyserverChristian Ehrhardt
2016-06-06make _get_default_params method staticChristian Ehrhardt