Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-07-29 | fix pep8 errors in mcollective unit tests | Scott Moser | |
Just fix the pep8 errors added in previous commit. | |||
2016-07-19 | mcollective: add tests, cleanups and bug fix when no config in /etc. | Scott Moser | |
Things here: - restart rather than 'start' the service, to pick up a config change that we would have written. - update the config and write cert files whether or not the file existed on the system. Previously it would only write the cert files if /etc/mcollective/server.cfg already existed. - improve test coverage | |||
2016-07-14 | fix tox flake8 | Scott Moser | |
2016-07-14 | Change StringIO to BytesIO in cc_mcollective.py | Sergii Golovatiuk | |
* StringIO from six doesn't act as 'binary stream' in Python 3. This patch changes StringIO to BytesIO to have code compatible with Python 3 and Python 2. * Add try/except for IOError in case when server.cfg doesn't exists. This is necessary for unit tests or cases when server.cfg is not included to package * Add UnitTest for cc_mcollective.py LP: #1597699 | |||
2016-06-10 | minor changes prior to merge | Scott 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-09 | mock is_resolvable in mirrorfail tests to remove dependency to external net | Christian Ehrhardt | |
2016-06-09 | fix docstring for check connectivity | Christian Ehrhardt | |
2016-06-09 | remove unused BIN_APT constant | Christian Ehrhardt | |
2016-06-09 | move SkipTest definition to tests/unittests/helpers.py to be reusable | Christian Ehrhardt | |
2016-06-09 | move gpg functions into gpg.py | Christian Ehrhardt | |
This helps for cleaner code structuring. ALong that makeing sure all these functions have a gpg_prefix. | |||
2016-06-07 | enable test_handler_apt_source unittests on CentOS | Christian Ehrhardt | |
Tested and working on CentOS7 (container), so we can enable the tests | |||
2016-06-07 | mock get_primary_arch for TestAptSourceConfigSourceList for CentOS | Christian Ehrhardt | |
This allows the unittest to pass on CentOS, before it failed as it had no dpkg available. | |||
2016-06-07 | harden mirrorfail tests for the fact that even good mirrors can fail | Christian 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-07 | drop gpg activity from aot-source key tests | Christian 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-06 | make unittests more readable | Christian Ehrhardt | |
By moving the "what it does" into the first line of the docstrings output becomes much more useful. | |||
2016-06-06 | capture output of gpg calls to avoid messing up stdout/stderr | Christian Ehrhardt | |
2016-06-06 | remove check that fails if user has installed tested keys | Christian Ehrhardt | |
The overall check for the expected key is a superset and would spot an issue. | |||
2016-06-06 | apt_src_keyid_real: drop unused exception variable | Christian Ehrhardt | |
2016-06-06 | fix alternate keyserver dns | Christian Ehrhardt | |
The intentionally false name was meant for testing of abug, now we can and should use a proper third party keyserver. | |||
2016-06-06 | only test the apt feature in environments with apt | Christian Ehrhardt | |
2016-06-06 | rename add_key / add_source to add_apt_key / add_apt_source | Christian Ehrhardt | |
The functions clearly are apt specific so the name should reflect that. | |||
2016-06-06 | fixup key tests for cases where network isn't available | Christian Ehrhardt | |
2016-06-06 | add_key_raw - make exceptions more specific | Christian Ehrhardt | |
2016-06-06 | test alternate keyserver | Christian Ehrhardt | |
2016-06-06 | make _get_default_params method static | Christian Ehrhardt | |
2016-06-06 | unify testing of real gpg key adds | Christian Ehrhardt | |
2016-06-03 | tests: fix apt tests to run inside ubuntu build environment | Scott Moser | |
This just mocks out use of lsb_release as it is not available in a build environment. Additionally mocks out use of getkeybyid. This admittedly makes the test for a long key fingerprint not useful as it was broken only inside getkeybyid. Also fix 'make yaml' for cloud-config.txt | |||
2016-06-03 | fix tox -e flake8 | Scott Moser | |
2016-05-30 | add test for wrong apt_source format | Christian Ehrhardt | |
2016-05-30 | drop errorlist from convert_to_new_format | Christian Ehrhardt | |
2016-05-25 | fix inline doc of test_apt_src_longkeyid_real | Christian Ehrhardt | |
2016-05-25 | make test_apt_srcl_custom independent to where it is executed | Christian Ehrhardt | |
2016-05-24 | add test for the now isolated convert_to_new_format function | Christian Ehrhardt | |
2016-05-24 | rebased with upstream and reolved merge conflicts | Christian Ehrhardt | |
2016-05-23 | final pep8 check fixups | Christian Ehrhardt | |
2016-05-23 | add test_apt_src_replace_dict_tri | Christian Ehrhardt | |
This includes a test for the weird but valid case in the new dictionary syntax that one sets a key (which is the filename) but overwrites the filename value inside of it. | |||
2016-05-23 | shorten method names to follow python rules | Christian Ehrhardt | |
2016-05-23 | unify basic triple check and add test_apt_src_basic_dict_triple based on it | Christian Ehrhardt | |
2016-05-23 | add test_apt_source_basic_dict | Christian Ehrhardt | |
This is the basic testcase but in the new dictionary format | |||
2016-05-23 | add triple test for ppa adding | Christian Ehrhardt | |
2016-05-23 | make checkers happy about unused loop index | Christian Ehrhardt | |
2016-05-23 | add triple case for test_apt_source_keyid_triple incl triple key check | Christian Ehrhardt | |
2016-05-23 | testcases with multiple source list entries | Christian Ehrhardt | |
2016-05-23 | fix function names in inline doc | Christian Ehrhardt | |
2016-05-23 | extend test_apt_source_key by nofn case | Christian Ehrhardt | |
2016-05-23 | put fallbackfn to init | Christian Ehrhardt | |
This was now used by multiple methods, no need to duplicate code. | |||
2016-05-23 | extend test_apt_source_keyid by no filename case | Christian Ehrhardt | |
2016-05-23 | extend test_apt_source_replace by a no-filename case | Christian Ehrhardt | |
2016-05-23 | drop unused mockappsubp | Christian Ehrhardt | |
2016-05-23 | test_apt_source_basic_nofn check for non-specified filename | Christian Ehrhardt | |
Cloud-inint uses a default fallback, we want to ensure no code change modfies this behaviour. |