-Put key-value to consul
- [Arguments] ${key} ${value}
- ${prh_config}= Get PRH config from consul
- set to dictionary ${prh_config} ${key} ${value}
- put request consul_session /v1/kv/dcae-prh json=${prh_config}
- Get PRH config from consul prh config in consul after update
+Put key-value to config
+ [Arguments] ${key} ${value}
+ ${prh_config}= Get PRH config
+ set to dictionary ${prh_config} ${key} ${value}
+ Set PRH config ${prh_config}
+
+Get PRH config
+ [Arguments] ${logMessage}=prh config
+ ${prh_config_file_content}= Get File ${PRH_CONFIG_FILE}
+ ${prh_config}= yaml.Safe Load ${prh_config_file_content}
+ log ${logMessage}: ${prh_config}
+ [Return] ${prh_config}
+
+Set PRH config
+ [Arguments] ${prh_config}
+ ${prh_config_output}= yaml.Safe Dump ${prh_config}
+ Create File ${PRH_CONFIG_FILE} ${prh_config_output}
+
+Set PRH config from file
+ [Arguments] ${config_file_name}
+ Copy File ${config_file_name} ${PRH_CONFIG_FILE}
+ Force PRH config refresh