Refactor healthcheck-k8s.py

Error reporting was improved by returning actual
error message from subprocess call to 'kubectl' command.

Code readability was improved by defining a dictionary
of endpoint names to check and their IPs.

Unsecure 'shell=True' property in Popen constructor for
kubectl command in SDNC DB was removed and command string
itself sanitized.

Overall code readability was improved by reusing common
commands in a loop.

Change-Id: I19f8f71e27196bb55a9be3d58cd0885ceba3af0c
Issue-ID: TEST-213
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
1 file changed
tree: 0d66de7bd407ce7f3e4101ac8681b609ab6cac7b
  1. bootstrap/
  2. deployment/
  3. docs/
  4. documentation/
  5. S3Ptools/
  6. test/
  7. version-manifest/
  8. .gitattributes
  9. .gitignore
  10. .gitreview
  11. INFO.yaml
  12. README.md
  13. version.properties
README.md

ONAP Integration

Description

Responsible for the integration framework / automated tools, code and scripts, best practice guidance related to cross-project Continuous System Integration Testing (CSIT), and delivery of the ONAP project.

See https://wiki.onap.org/display/DW/Integration+Project for additional details.

Sub-projects

See respective directories for additional details about each sub-project.