magnum/magnum/tests/functional/common
Dane LeBlanc dffbabcdc7 Log copy for failed functional tests cannot be disabled
Setting the following in functional_creds.conf doesn't have any effect
for failed functional container tests:
    copy_logs = False

Description of changes/issues addressed:
- Client functional tests look in functional_creds.conf for the
  copy_logs setting while tempest/api tests look in tempest.conf.
  So an accessor method 'get_copy_logs' is added for BaseMagnumTest
  (for tempest tests), and this gets overridden by BaseMagnumClient.
- Call to lamda was missing an argument in copy_logs_handler.
- set_copy_logs in config.py was setting cls.copy logs inconsistently
  (sometimes boolean True, otherwise to a string).
- BaseMagnumClient was calling bool() on a string: "bool(copy_logs)".
  bool() on a string always returns True except for null string.

Change-Id: I234fd0433602914fdf03f04f2394f6dc802df4fd
Closes-Bug: #1570949
2016-04-18 11:22:01 -04:00
..
__init__.py Functional tests with Tempest - BayModel CRUD 2015-09-21 16:27:07 -05:00
base.py Log copy for failed functional tests cannot be disabled 2016-04-18 11:22:01 -04:00
client.py Enable Tempest without devstack 2016-02-03 08:13:18 -05:00
config.py Log copy for failed functional tests cannot be disabled 2016-04-18 11:22:01 -04:00
datagen.py Functional tests should support DNS nameserver config 2016-04-15 11:39:36 -04:00
manager.py Copy logs on test failure 2016-02-29 10:25:10 -06:00
models.py Functional tests with Tempest - BayModel CRUD 2015-09-21 16:27:07 -05:00
utils.py Fix string formatting bug 2016-02-16 09:41:16 -05:00