2 Documentation Tests related to updating PRH app config based on CBS config
3 Suite Setup Run keywords Create sessions AND Set default PRH config
4 Resource resources/prh_sessions.robot
5 Resource resources/prh_config_library.robot
6 Resource resources/prh_library.robot
7 Test Timeout 15 seconds
10 CBS configuration forced refresh
11 [Documentation] It should be possible to force refresh PRH configuration from CBS
12 [Tags] PRH coniguration
13 ${some_random_value}= Generate random value
14 Put key-value to config foo_${some_random_value} bar_${some_random_value}
15 Force PRH config refresh
16 Check key-value in PRH app environment foo_${some_random_value} bar_${some_random_value}
18 CBS configuration scheduled refresh
19 [Documentation] PRH should pull for CBS configuration updates according to schedule
20 [Tags] PRH coniguration
21 Set scheduled config updates interval 1s
22 ${some_random_value}= Generate random value
23 Put key-value to config spam_${some_random_value} ham_${some_random_value}
24 wait until keyword succeeds 20x 500ms
25 ... Check key-value in PRH app environment spam_${some_random_value} ham_${some_random_value}
26 [Teardown] Set scheduled config updates interval 0
28 PRH log level change based on CBS config
29 [Documentation] It should be possible to change logging levels in PRH based on entries in CBS
30 [Tags] PRH coniguration logging
31 Set logging level in config org.onap.dcaegen2.services.prh.foo WARN
32 Force PRH config refresh
33 Verify logging level org.onap.dcaegen2.services.prh.foo WARN