summaryrefslogtreecommitdiff
path: root/tests/unittests
AgeCommit message (Collapse)Author
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-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
2016-05-11fix a few forgotten pep8 warnings in test_handler_apt_source.pyChristian Ehrhardt
2016-05-11convert test_apt_source_ppa to use a mocked util.subpChristian Ehrhardt
2016-05-11fix specification of keyidChristian Ehrhardt
2016-05-11test test_apt_source_key with mocked util.subpChristian Ehrhardt
2016-05-10use proper asserRaises for try catchChristian Ehrhardt
2016-05-10provide valid matcher for ppa so that apt-add-repository is triggeredChristian Ehrhardt
2016-05-10add test_apt_source_key for sources with a keyid to importChristian Ehrhardt
2016-05-10add test_apt_source_ppa (failing for now)Christian Ehrhardt
2016-05-10split into basic and replacement testChristian Ehrhardt
2016-05-10basic apt_source testChristian Ehrhardt
2016-04-29Paths: fix instance path if datasource's id has a '/'.Scott Moser
If the datasource's instance id contained a '/' then the instance_id path would not be as expected under /var/lib/cloud/instances/instance_id. LP: #1575938
2016-04-15support and render control=manual on initramfs network devicesScott Moser
when reading the initramfs configurewd devices and turning them into network config, we change to not have 'auto' control (or allow=auto). The reason for this is that if the device was still up: a.) it would try to bring it up again (due to bug 1570142) b.) it would be brought down. 'b' is problematic if there is an iscsi or network root filesystem. Note, that ifupdown does now support 'no-auto-down' which means that the nic should not be brought down on 'ifdown -a'. LP: #1568637
2016-04-13chef: straighten out validation_cert and validation_keyScott Moser
Now, validation_key is always a path to a file, as it is in chef's client.rb syntax. validation_cert is always the *content* of that file that should be written. However, if validation_cert is the string "system", then we do not write that value, but rather assume the file exists. LP: #1568940
2016-04-12rh_subscription: only check subscription if configuredScott Moser
The rh_subscription config module would attempt to connect to the RHN servers even when no config is provided. Now, instead check to make sure that valid config is provided first. That consists of username and password or a activation key. LP: #1536706
2016-04-12chef: straighten out validation_cert and validation_keyScott Moser
Now, validation_key is always a path to a file, as it is in chef's client.rb syntax. validation_cert is always the *content* of that file that should be written. However, if validation_cert is the string "system", then we do not write that value, but rather assume the file exists. LP: #1568940
2016-04-11Add tests for lxd-bridgeStéphane Graber
2016-04-06Ensure that a resolve conf object is written as a string.Scott Moser
Instead of passing the raw object and expecting the write_file to work automatically make sure we explicitly pass the string version of it so that the write_file routine can correctly encode/decode it as needed. LP: #1479988