summaryrefslogtreecommitdiff
path: root/tests/unittests
AgeCommit message (Collapse)Author
2016-06-06test alternate keyserverChristian Ehrhardt
2016-06-06make _get_default_params method staticChristian Ehrhardt
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-03improve network configurationScott Moser
This branch accomplishes several things: - centrally handle 'dsmode' to be 'local' or 'net. This allows local data sources to run before networking but still have user-data read by default when networking is available. - support networking information being read on dreamcompute dreamcompute's openstack declares networking via the /etc/network/interfaces style 'network_config' format. - support reading and applying networking information on SmartOS - improve reading networking from openstack network_data.json (LP: #1577982) add support for mtu and routes and many miscellaneous fixes. - support for renaming devices in a container (LP: #1579130). Also rename network devices as instructed by the host on every boot where cloud-init networking is enabled. This is required because a.) containers do not get systemd.link files applied as they do not have udev. b.) if the initramfs is out of date then we need to apply them. - remove blocking of udev rules (LP: #1577844, LP: #1571761) LP: #1577982, #1579130, #1577844, #1571761
2016-06-03fix tox -e flake8Scott Moser
2016-06-03fix issue with routes on subnets not getting renderedScott Moser
2016-06-02ConfigDrive: do not use 'id' on a link for the device nameScott Moser
'id' on a link in the openstack spec should be "Generic, generated ID". current implementation was to use the host's name for the host side nic. Which provided names like 'tap-adfasdffd'. We do not want to name devices like that as its quite unexpected and non user friendly. So here we use the system name for any nic that is present, but then require that the nics found also be present at the time of rendering. The end result is that if the system boots with net.ifnames=0 then it will get 'eth0' like names. and if it boots without net.ifnames then it will get enp0s1 like names.
2016-06-02fix toxScott Moser
2016-05-30merge with last upstream to avoid merging conflicts on MPChristian Ehrhardt
2016-05-30add test for wrong apt_source formatChristian Ehrhardt
2016-05-30drop errorlist from convert_to_new_formatChristian Ehrhardt
2016-05-27assertEqualScott Moser
2016-05-27assertEqualsScott Moser
2016-05-27add a unit test for conversionScott Moser
2016-05-27fix pyflakes and flake8Scott Moser
2016-05-27fix the remaining testsScott Moser
2016-05-27fix a bunch of the testsScott Moser
2016-05-27merge from trunkScott Moser
2016-05-26Move sdc:nics to a JSON map. Add unittest for sdc:nicsRyan Harper
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-24fix logic error in ec2 get_instance_userdata and slow testsScott Moser
The change to get_instance_userdata is to fix an issue that was causing retry in the test when it was not desired. if user_data returned 404 it means "there was no user-data", so dont bother retrying. However, _skip_retry_on_codes was returning False indicating that readurl should retry. test_merging was creating 2500 random tests, shrink that down to 100. test_seed_runs is still on my system the slowest test, but taking < .5 seconds where it was taking > 3.
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-16Fix slow testsJoshua Harlow
Timeouts and retries were triggering so make it so that tests do not use the typical timesouts and retries so that the tests finish faster.
2016-05-12fix last flake8 errorScott Moser
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