[Kimchi-devel] [PATCH v5] [WoK 0/5] 'reload' API implementation

Lucio Correia luciojhc at linux.vnet.ibm.com
Fri Jan 20 12:54:48 UTC 2017


Reviewed-By: Lucio Correia <luciojhc at linux.vnet.ibm.com>

On 19/01/2017 16:17, dhbarboza82 at gmail.com wrote:
> From: Daniel Henrique Barboza <danielhb at linux.vnet.ibm.com>
>
> v5:
> - added 'self.admin_methods = ['POST'] in control/config.py
>
> v4:
> - fixed a '()' in test_api.py
> - changed the positioning of the notification message in i18n.py
>
> v3:
> - 'add_notification' is now being called before the reload command
>
> v2:
> - changed API name to 'reload'
> - added test_api tests
>
> This patch set implements a new WOK API called 'reload' under
> /config/reload.
>
> To test it:
>
> $  curl -k -u danielhb -H "Content-Type: application/json" -H "Accept: application/json" -X POST  'https://localhost:8001/config/reload' -d'{}'
> Enter host password for user 'danielhb':
> {
>   "proxy_port":"8001",
>   "websockets_port":"64667",
>   "version":"2.3.0-55.git5c9127b",
>   "auth":"pam",
>   "server_root":""
> }
>
> This will reload WoK and all its plug-ins.
>
> Daniel Henrique Barboza (5):
>   reload API: doc changes
>   reload API: control and model changes
>   reload API: new file tests/test_config_model.py
>   reload API: added rest API tests
>   reload API: adding notification before reloading operation
>
>  docs/API/config.md         |  2 +-
>  src/wok/control/config.py  |  5 ++++-
>  src/wok/i18n.py            |  2 ++
>  src/wok/model/config.py    | 22 +++++++++++++++++++++-
>  tests/test_api.py          |  9 ++++++++-
>  tests/test_config_model.py | 41 +++++++++++++++++++++++++++++++++++++++++
>  6 files changed, 77 insertions(+), 4 deletions(-)
>  create mode 100644 tests/test_config_model.py
>


-- 
Lucio Correia



More information about the Kimchi-devel mailing list