summaryrefslogtreecommitdiff
path: root/tests/unittests/test_handler
AgeCommit message (Collapse)Author
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-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-05write_files: fix decompression of contentScott Moser
When provided with gzipped data, an exception would be raised because of a conversion to string. This fixes the issue and adds a test for write_files. LP: #1565638
2016-03-07No longer run pollinate by default in seed_randomScott Moser
The user can still choose to run pollinate here to seed their random data. And in an environment with network datasource, that would be expected to work. However, we do not want to run it any more from cloud-init because a.) pollinate's own init system jobs should get it ran before ssh, which is the primary purpose of wanting cloud-init to run it. b.) with a local datasource, there is no network guarantee when init_modules run, so pollinate -q would often cause issues then. c.) cloud-init would run pollinate and log the failure causing many cloud-init specific failures that it could do nothing about. LP: #1554152
2016-03-03Apply pep8, pyflakes fixes for python2 and 3 Ryan Harper
Update make check target to use pep8, pyflakes, pyflakes3.
2016-03-03Fix pyflake/pyflake3 errorsRyan Harper
Now we can run make check to assess pep8, pyflakes for python2 or 3 And execute unittests via nosetests (2 and 3).
2016-03-03Update pep8 runner and fix pep8 issuesRyan Harper
2016-03-03fix lxd module to not do anything unless config providedScott Moser
2016-03-03run pyflakes in more places, fix falloutScott Moser
this makes 'make' run pyflakes, so failures there will stop a build. also adds it to tox.
2016-03-01lxd: general fix after testingScott Moser
A few changes: a.) change to using '--name=value' rather than '--name' 'value' b.) make sure only strings are passed to command (useful for storage_create_loop: which is likely an integer) c.) document simple working example d.) support installing zfs if not present and storage_backedn has it.
2016-02-04Use mock in test_handler_lxd.py and add test for lxd installationWesley Wiedenmeier
2016-02-03lxd: add support for setting up lxd using 'lxd init'Wesley Wiedenmeier
If lxd key is present in cfg, then run 'lxd init' with values from the 'init' entry in lxd configuration as flags.
2015-09-08 power_state: support 'condition' argumentScott Moser
if 'condition' is provided to config in power_state, then consult it before powering off. This allows the user to shut down only if a condition is met, and leave the system in a debuggable state otherwise. An example is as simple as: power_state: mode: poweroff condition: ['sh', '-c', '[ -f /disable-poweroff ]']
2015-07-28rsyslog: skip empty or None in remotes formatScott Moser
This allows user to specify the following to overwrite a previously declared entry without warnings. rsyslog: {'remotes': {'foo': None}}
2015-07-28remove 'syslog' module (its been moved to rsyslog)Scott Moser
2015-07-28must declare proto of '@'Scott Moser
2015-07-28add trailing newline only if necessaryScott Moser
2015-07-28fix bug in remotes_to_rsyslog_cfg, add testScott Moser
2015-07-28add support for 'remotes'Scott Moser
2015-07-27merge from trunkScott Moser
2015-07-27add rsyslog testsScott Moser
reasonable test of reworked rsyslog module
2015-07-24commit initial re-work/re-implementation of syslog configScott Moser
2015-07-21Refactor cc_mounts.sanitize_devname to make it easier to modify.Daniel Watkins
2015-05-15pep8 fixesScott Moser
2015-05-14read_seeded: fix reed_seeded after regressionScott Moser
read_seeded was assuming a Response object back from load_tfile_or_url but load_tfile_or_url was returning string. since the only other user of this was a test, move load_tfile_or_url to a test, and just do the right thing in read_seeded. LP: #1455233
2015-05-01Update is_disk_used for changed enumerate_disk output.Scott Moser
LP: #1311463
2015-05-01fix 'Make pyflakes'Scott Moser