[Kimchi-devel] [PATCH v2] [WoK 0/4] 'reload' API implementation

dhbarboza82 at gmail.com dhbarboza82 at gmail.com
Mon Jan 16 19:04:25 UTC 2017


From: Daniel Henrique Barboza <danielhb at linux.vnet.ibm.com>

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 (4):
  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

 docs/API/config.md         |  2 +-
 src/wok/control/config.py  |  4 +++-
 src/wok/model/config.py    |  7 ++++++-
 tests/test_api.py          |  9 ++++++++-
 tests/test_config_model.py | 41 +++++++++++++++++++++++++++++++++++++++++
 5 files changed, 59 insertions(+), 4 deletions(-)
 create mode 100644 tests/test_config_model.py

-- 
2.7.4



More information about the Kimchi-devel mailing list