Commit Graph

20 Commits

Author SHA1 Message Date
James Page 7bc8fb6da2 Allow configure section to be absent 2019-02-05 10:56:15 +00:00
Frode Nordahl a697a01214 functest-prepare: auto-generate model name when not provided
Fixes #137
2018-10-03 11:46:45 +02:00
Nicolas Pochet 193e2657ff Add copyright header everywhere.
Also make flake8 happy in setup.py by adding docstrings.
2018-08-09 11:55:13 +02:00
Ryan Beisner 814614c085 Enable dev_bundles flag and add unit tests 2018-07-17 10:23:17 -04:00
Liam Young c2b8992b2e More docstring tidyup 2018-06-13 13:35:32 +01:00
Frode Nordahl d28784ce9c Add command line argument to set loglevel 2018-05-17 00:29:09 +02:00
Liam Young 9ad502c58c Merge pull request #35 from thedac/issue/34
Use short model names
2018-04-21 07:32:01 +01:00
David Ames bc89acd838 Merge pull request #24 from gnuoy/feature/optionally-pass-bundle-to-runner
Add option to allow bundle name to be passed to runner
2018-04-20 14:54:38 -07:00
David Ames b4d55caf19 Use uuid.uuid4 to generate model name
Take the last 12 characters from a uuid for generating the model name.
uuid.uuid4 takes into account the host and the current timestamp and
should be sufficient for our needs.
2018-04-20 11:25:24 -07:00
David Ames 8464efab7e Use short model names
Issue #34 Long model names cause OpenStack DNS to break. We gain fairly
little by stacking information in the model name.

This change uses zaza-$TIMESTAMP as model names.

Closes Issue: #34
2018-04-20 10:44:31 -07:00
Liam Young 924c76ca84 Fix lint 2018-04-18 07:40:25 +00:00
Liam Young 1bbb092aa6 Add option to allow bundle name to be passed to runner 2018-04-17 16:00:14 +00:00
Liam Young 05e02a94cd Add zaza to generated model name 2018-04-17 13:21:49 +00:00
Liam Young f99af2f14c Add support for running smoke tests
Add --smoke switch to functest-run-suite to allow just the smoke
tests for a charm to be run. This requires that the smoke test
bundles are listed in the charms tests/tests.yaml
2018-04-12 12:43:07 +00:00
Liam Young a096956350 Preserve osci's keep the last model behaviour 2018-04-11 14:52:17 +00:00
Liam Young 3b90ed1a50 Add option to functest-run-suite to skip model deletion 2018-04-11 14:23:41 +00:00
Liam Young 9bdd4763cc Close event loop in func_test_runner.main 2018-03-28 12:00:53 +00:00
Liam Young cb5d9caf66 Misc fixes to functional testing code
* Add calls to asyncio.get_event_loop().close() to close loop. libjuju does
  not do this for you and needs to be done just before exiting.
* Require model to be explicitly set when running command line tools. This is
  part of the drive to ensure that eventually multiple runs can be performed
  concurrently.
* Add set_juju_model/get_juju_model functions to manage which model is in
  focus
2018-03-28 11:48:53 +00:00
Liam Young 3d190f68f3 Fix generate_model_name 2018-03-27 12:45:59 +00:00
Liam Young 353559528b s/charm_testing/charm_lifecycle/ and unit tests 2018-03-27 12:35:38 +00:00