tacker/tacker/tests/unit/vnfm/policy_actions
Yi Feng 2bd3d5670b Sample script for healing k8s with kubespray
This patch and "Sample script for deploying k8s with kubespray",
"Sample script for scaling k8s with kubespray" are actually the
same one. For the convenience of review, they
were submitted separately.

This patch is only about the content of heal k8s nodes. However,
since the processing of scale_start is similar to heal_start,
and the processing of scale_end is similar to the processing of
heal_end, the code of scale has been refactored and the common
processing is extracted as a common method. At the same time,
when CNF needs to perform `heal_entire`, the configuration file
of Load Balancer needs to be re-modified, so heal-related
processing is added to the example MgmtDriver of CNF's `NodePort`.

Because the input parameter of terminate and heal is limited,
the type of this parameter is also modified. In
`NFV-SOL003 v2.6.1`[1], the `additionalParams`'s type is
`KeyValuePairs`, so we changed the additionalParams's type from
`list` to `dict` in heal_vnf_request. In order not to affect
the original function, we modified the original additional_params
to legacy_additional_params and retained the original processing,
and revised the UT code.

[1] https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/003/02.06.01_60/gs_NFV-SOL003v020601p.pdf

Implements: blueprint k8s-mgmtdriver-kubespray
Change-Id: Ibf8b56904b1326f5c7d323c9295d10e303f4b4b8
2021-09-17 12:04:50 +09:00
..
autoscaling Use unittest.mock instead of third party mock 2020-05-22 12:03:45 +09:00
log Use unittest.mock instead of third party mock 2020-05-22 12:03:45 +09:00
respawn Use unittest.mock instead of third party mock 2020-05-22 12:03:45 +09:00
vdu_autoheal Sample script for healing k8s with kubespray 2021-09-17 12:04:50 +09:00
__init__.py Refactoring UT directories 2018-11-12 13:13:39 +00:00