ansible/test/runner/lib/cloud
Will Thames aaf29c785f Provide Kubernetes resource validation to k8s module (#43352)
* Provide Kubernetes resource validation to k8s module

Use kubernetes-validate to validate Kubernetes resource
definitions against the published schema

* Additional tests for kubernetes-validate

* Improve k8s error messages on exceptions

Parse the response body for the message rather than returning
a JSON blob

If we've validated and there are warnings, return those too - they
can be more helpful

```
"msg": "Failed to patch object: {\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},
       \"status\":\"Failure\",\"message\":\"[pos 334]: json: decNum: got first char 'h'\",\"code\":500}\n",
```
vs
```
"msg": "Failed to patch object: [pos 334]: json: decNum: got first char 'h'\nresource
        validation error at spec.replicas: 'hello' is not of type u'integer'",
```

* Update versions used

In particular openshift/origin:3.9.0

* Add changelog for k8s validate change
2018-11-16 12:44:59 +00:00
..
__init__.py Fix get_cloud_platforms config usage. 2018-04-11 17:08:54 -07:00
acme.py ACME: add support for POST-as-GET if GET fails with 405. (#44988) 2018-10-29 10:32:53 +01:00
aws.py Add Azure provider support to ansible-test and CI. 2017-12-06 00:34:54 -08:00
azure.py Cleanup and enhancements for ansible-test. (#37142) 2018-03-07 14:02:31 -08:00
cs.py Bug fixes and cleanup for ansible-test. (#45991) 2018-09-21 11:38:22 -07:00
foreman.py Add a test target for the foreman inventory script (#46837) 2018-10-14 20:51:25 -04:00
gcp.py Bug fixes and cleanup for ansible-test. (#45991) 2018-09-21 11:38:22 -07:00
nios.py Includes support for Reverse-Mapping zone in nios_zone module (#44525) 2018-08-23 03:07:30 +00:00
opennebula.py Bug fixes and cleanup for ansible-test. (#45991) 2018-09-21 11:38:22 -07:00
openshift.py Provide Kubernetes resource validation to k8s module (#43352) 2018-11-16 12:44:59 +00:00
tower.py Bug fixes and cleanup for ansible-test. (#45991) 2018-09-21 11:38:22 -07:00
vcenter.py bump version of 'vcenter-test-container' to '1.4.0' (govmomi v0.19.0) 2018-11-05 11:57:15 -08:00