grabinsk | ad1421e | 2019-06-21 15:08:21 +0200 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Tests related to updating PRH app config based on CBS config |
Remigiusz Janeczek | ee72614 | 2021-08-25 13:29:02 +0200 | [diff] [blame^] | 3 | Suite Setup Run keywords Create sessions AND Set default PRH config |
grabinsk | ad1421e | 2019-06-21 15:08:21 +0200 | [diff] [blame] | 4 | Resource resources/prh_sessions.robot |
| 5 | Resource resources/prh_config_library.robot |
| 6 | Resource resources/prh_library.robot |
| 7 | Test Timeout 15 seconds |
| 8 | |
| 9 | *** Test Cases *** |
| 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 |
Remigiusz Janeczek | ee72614 | 2021-08-25 13:29:02 +0200 | [diff] [blame^] | 14 | Put key-value to config foo_${some_random_value} bar_${some_random_value} |
grabinsk | ad1421e | 2019-06-21 15:08:21 +0200 | [diff] [blame] | 15 | Force PRH config refresh |
| 16 | Check key-value in PRH app environment foo_${some_random_value} bar_${some_random_value} |
| 17 | |
| 18 | CBS configuration scheduled refresh |
| 19 | [Documentation] PRH should pull for CBS configuration updates according to schedule |
| 20 | [Tags] PRH coniguration |
Remigiusz Janeczek | ee72614 | 2021-08-25 13:29:02 +0200 | [diff] [blame^] | 21 | Set scheduled config updates interval 1s |
grabinsk | ad1421e | 2019-06-21 15:08:21 +0200 | [diff] [blame] | 22 | ${some_random_value}= Generate random value |
Remigiusz Janeczek | ee72614 | 2021-08-25 13:29:02 +0200 | [diff] [blame^] | 23 | Put key-value to config spam_${some_random_value} ham_${some_random_value} |
grabinsk | ad1421e | 2019-06-21 15:08:21 +0200 | [diff] [blame] | 24 | wait until keyword succeeds 20x 500ms |
| 25 | ... Check key-value in PRH app environment spam_${some_random_value} ham_${some_random_value} |
Remigiusz Janeczek | ee72614 | 2021-08-25 13:29:02 +0200 | [diff] [blame^] | 26 | [Teardown] Set scheduled config updates interval 0 |
grabinsk | ad1421e | 2019-06-21 15:08:21 +0200 | [diff] [blame] | 27 | |
| 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 |
Remigiusz Janeczek | ee72614 | 2021-08-25 13:29:02 +0200 | [diff] [blame^] | 31 | Set logging level in config org.onap.dcaegen2.services.prh.foo WARN |
grabinsk | ad1421e | 2019-06-21 15:08:21 +0200 | [diff] [blame] | 32 | Force PRH config refresh |
Remigiusz Janeczek | ee72614 | 2021-08-25 13:29:02 +0200 | [diff] [blame^] | 33 | Verify logging level org.onap.dcaegen2.services.prh.foo WARN |