summaryrefslogtreecommitdiff
path: root/tests/unittests/test_handler
AgeCommit message (Collapse)Author
2016-06-06unify testing of real gpg key addsChristian Ehrhardt
2016-06-03tests: fix apt tests to run inside ubuntu build environmentScott 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-03fix tox -e flake8Scott Moser
2016-05-30add test for wrong apt_source formatChristian Ehrhardt
2016-05-30drop errorlist from convert_to_new_formatChristian Ehrhardt
2016-05-25fix inline doc of test_apt_src_longkeyid_realChristian Ehrhardt
2016-05-25make test_apt_srcl_custom independent to where it is executedChristian Ehrhardt
2016-05-24add test for the now isolated convert_to_new_format functionChristian Ehrhardt
2016-05-24rebased with upstream and reolved merge conflictsChristian Ehrhardt
2016-05-23final pep8 check fixupsChristian Ehrhardt
2016-05-23add test_apt_src_replace_dict_triChristian 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-23shorten method names to follow python rulesChristian Ehrhardt
2016-05-23unify basic triple check and add test_apt_src_basic_dict_triple based on itChristian Ehrhardt
2016-05-23add test_apt_source_basic_dictChristian Ehrhardt
This is the basic testcase but in the new dictionary format
2016-05-23add triple test for ppa addingChristian Ehrhardt
2016-05-23make checkers happy about unused loop indexChristian Ehrhardt
2016-05-23add triple case for test_apt_source_keyid_triple incl triple key checkChristian Ehrhardt
2016-05-23testcases with multiple source list entriesChristian Ehrhardt
2016-05-23fix function names in inline docChristian Ehrhardt
2016-05-23extend test_apt_source_key by nofn caseChristian Ehrhardt
2016-05-23put fallbackfn to initChristian Ehrhardt
This was now used by multiple methods, no need to duplicate code.
2016-05-23extend test_apt_source_keyid by no filename caseChristian Ehrhardt
2016-05-23extend test_apt_source_replace by a no-filename caseChristian Ehrhardt
2016-05-23drop unused mockappsubpChristian Ehrhardt
2016-05-23test_apt_source_basic_nofn check for non-specified filenameChristian Ehrhardt
Cloud-inint uses a default fallback, we want to ensure no code change modfies this behaviour.
2016-05-23generalize test_apt_source_basic to be reusable across more testcasesChristian Ehrhardt
2016-05-12run flake8 instead of pyflakes in tox. expect tests/ to pass flake8.Scott Moser
2016-05-12make pep8 happy with a few spacesChristian Ehrhardt
2016-05-12streamline code and sanitize expected result string definitionChristian Ehrhardt
2016-05-12improve spacing in apt_source_list testChristian Ehrhardt
2016-05-12alphabetical order on importsChristian Ehrhardt
2016-05-12alphabetical import orderChristian Ehrhardt
2016-05-12remove superfluous importChristian Ehrhardt
2016-05-12Adding test_apt_source_keyid_real and test_apt_source_longkeyid_realChristian Ehrhardt
This now ensures that the stack of fetching IDs from keyservers and adding them really works by comparing against known good keys that are expected.
2016-05-12remove no more applicable "not supported" statementsChristian Ehrhardt
2016-05-12use old style nested context to make pep8 happyChristian Ehrhardt
2016-05-12Finalize test_apt_srcl_customChristian Ehrhardt
Adding: - known content after full templating - restore subp from mocking for proper execution - drop all kind of superfluous mocking of util and OS
2016-05-12initial version of a test for a custom source.list templateChristian Ehrhardt
2016-05-12use recommended http mirror redirection for debianChristian Ehrhardt
2016-05-12remove missed test printChristian Ehrhardt
2016-05-12order code in test orderChristian Ehrhardt
2016-05-12test mirror list with failing mirrorChristian Ehrhardt
2016-05-12test debian and ubuntu source.list templatingChristian Ehrhardt
2016-05-12add testcase for rendering of templates into source.listChristian Ehrhardt
2016-05-12remove unused test parts in test_handler_apt_sourceChristian Ehrhardt
2016-05-11fix pep8 warningChristian Ehrhardt
2016-05-11add test_apt_source_keyidonly (not yet supported)Christian Ehrhardt
2016-05-11apt_apt_source_key doesn't need a mocked retvalChristian Ehrhardt
2016-05-11add test_apt_source_keyonly (not yet supported)Christian Ehrhardt
2016-05-11split test_apt_source_key into one for key and one for keyidChristian Ehrhardt