X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=tests%2Fdcaegen2%2Fprh-testcases%2Fprh_config_tests.robot;h=e19f91ca94b079789c5fbc2c66a4957e7c1e4ff2;hb=ee72614cc6fe35737d24db1c99ceb13b7e5e54fd;hp=2a6b815474f2d2859a5c3e20f28a7aadfa92a804;hpb=8b78bcc071ecba84d0dea67f97003e0d69c6a551;p=integration%2Fcsit.git diff --git a/tests/dcaegen2/prh-testcases/prh_config_tests.robot b/tests/dcaegen2/prh-testcases/prh_config_tests.robot index 2a6b8154..e19f91ca 100644 --- a/tests/dcaegen2/prh-testcases/prh_config_tests.robot +++ b/tests/dcaegen2/prh-testcases/prh_config_tests.robot @@ -1,7 +1,6 @@ *** Settings *** Documentation Tests related to updating PRH app config based on CBS config -Suite Setup Create sessions -Suite Teardown Set default PRH CBS config +Suite Setup Run keywords Create sessions AND Set default PRH config Resource resources/prh_sessions.robot Resource resources/prh_config_library.robot Resource resources/prh_library.robot @@ -12,23 +11,23 @@ CBS configuration forced refresh [Documentation] It should be possible to force refresh PRH configuration from CBS [Tags] PRH coniguration ${some_random_value}= Generate random value - Put key-value to consul foo_${some_random_value} bar_${some_random_value} + Put key-value to config foo_${some_random_value} bar_${some_random_value} Force PRH config refresh Check key-value in PRH app environment foo_${some_random_value} bar_${some_random_value} CBS configuration scheduled refresh [Documentation] PRH should pull for CBS configuration updates according to schedule [Tags] PRH coniguration - Set scheduled CBS updates interval 1s + Set scheduled config updates interval 1s ${some_random_value}= Generate random value - Put key-value to consul spam_${some_random_value} ham_${some_random_value} + Put key-value to config spam_${some_random_value} ham_${some_random_value} wait until keyword succeeds 20x 500ms ... Check key-value in PRH app environment spam_${some_random_value} ham_${some_random_value} - [Teardown] Set scheduled CBS updates interval 0 + [Teardown] Set scheduled config updates interval 0 PRH log level change based on CBS config [Documentation] It should be possible to change logging levels in PRH based on entries in CBS [Tags] PRH coniguration logging - Set logging level in CBS org.onap.dcaegen2.services.prh.foo WARN + Set logging level in config org.onap.dcaegen2.services.prh.foo WARN Force PRH config refresh - Verify logging level org.onap.dcaegen2.services.prh.foo WARN \ No newline at end of file + Verify logging level org.onap.dcaegen2.services.prh.foo WARN