Add can_dump_request_to_file decorator
authorCédric Ollivier <cedric.ollivier@orange.com>
Mon, 13 Feb 2017 12:34:34 +0000 (13:34 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Mon, 13 Feb 2017 12:51:48 +0000 (13:51 +0100)
commit1e60ed4a402d579675fbf122702a5b8fd3225e3a
treeda38eca31e50b4d2cafe0e579682e9be5a5a16ff
parent00bf0cae0160ff8318a455bd0dc80911a8a1d707
Add can_dump_request_to_file decorator

can_dump_request_to_file can be called to dump any request data to a
local file as defined by test_db_url. If its scheme is file,
Session.send() is patched. Else the behavior is kept unchanged.

Change-Id: Id219dad274b5f02a05259a2ed13e882c04eea7b4
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
functest/utils/decorators.py [new file with mode: 0644]
functest/utils/functest_utils.py