[Kimchi-devel] [PATCH 0/4 V2] Host's software update support

Aline Manera alinefm at linux.vnet.ibm.com
Mon Feb 10 17:21:04 UTC 2014


You also need to add tests for the feature.
Use mockmodel to test it

On 02/10/2014 12:50 AM, Paulo Vital wrote:
> This patch set provides support to host's software update operations.
>
> V1 -> V2:
>   * rebased to use new model framework
>   * added SLES as Zypper supported distro
>   * PEP8 compatibility
>   * changed import sentences
>   * use of run_command() from utils.py to execute shell commands
>   * usage of Task element to return update status
>
> V1:
>
> At this point, an agnostic class is providing support to backend and
> REST API operations. In addition, YUM (for RHEL and Fedora), APT (for
> Debian and Ubuntu) and ZYPPER (for OpenSuse) specific classes are provided
> to support the operation os each software update system.
>
> There's no test case to check backend once the software update information
> is volatile to each system/box.
>
> To test the REST API, execute the following commands (all them are agnostic
> of the host's distro):
>
> 1) Get list of all packages to be updated in the host:
> $curl -H 'Content-type: application/json' -H 'Accept: application/json' http://localhost:8000/host/packageupdate/ -X GET
>
> 2) Update the host system:
> $ curl -H 'Content-type: application/json' -H 'Accept: application/json' http://localhost:8000/host/packageupdate/update -X POST -d ''
>
> Paulo Vital (4):
>    Host's software update: Update API.md
>    Host's software update: Update REST API
>    Host's software update: Update backend.
>    Host's software update: Update Makefile
>
>   Makefile.am                |   1 +
>   docs/API.md                |  21 ++++
>   src/kimchi/Makefile.am     |   1 +
>   src/kimchi/control/host.py |  12 +++
>   src/kimchi/mockmodel.py    |  46 ++++++++
>   src/kimchi/model/host.py   |  20 +++-
>   src/kimchi/swupdate.py     | 264 +++++++++++++++++++++++++++++++++++++++++++++
>   7 files changed, 364 insertions(+), 1 deletion(-)
>   create mode 100644 src/kimchi/swupdate.py
>




More information about the Kimchi-devel mailing list