Make DMaaP tests independent of each other 19/98519/2
authorMiroslav Los <miroslav.los@pantheon.tech>
Mon, 18 Nov 2019 15:53:21 +0000 (16:53 +0100)
committerMiroslav Los <miroslav.los@pantheon.tech>
Tue, 7 Jan 2020 11:11:23 +0000 (12:11 +0100)
commit0b0a6ca5d765ea2bda591c34b6c995aae00bcd4c
tree9c71c58513874b752c8368afec3018940adb6ee9
parent8e573aa799c96cbe2a0404e58d67f48eea50b9db
Make DMaaP tests independent of each other

The tests in controllerif need not run to make the other tests work.
Use mockconsul instead of test_get_config_service to feed test_dmaapc.
Use mockconsul fixture in all other tests.
Do not wrap actual exceptions with NonRecoverableError in test code.

Signed-off-by: Miroslav Los <miroslav.los@pantheon.tech>
Issue-ID: CCSDK-1937
Change-Id: Iacb229cb8569838cc63932bcf572a6692ffd9124
dmaap/tests/conftest.py
dmaap/tests/test_consulif.py
dmaap/tests/test_dmaapcontrollerif.py
dmaap/tests/test_dr_lifecycle.py
dmaap/tests/test_mr_lifecycle.py