1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/runner/lib
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
..
cloud Provide Kubernetes resource validation to k8s module (#43352) 2018-11-16 12:44:59 +00:00
sanity Fix ansible-test --exclude with delegation. 2018-10-15 14:05:37 -07:00
__init__.py Add support for cloud tests to ansible-test. (#24315) 2017-05-05 16:23:00 +08:00
ansible_util.py Fix integration test library search path. 2018-09-21 13:53:09 -07:00
changes.py Fix ansible-test merge change detection. 2018-11-14 12:27:40 -08:00
classification.py Add change classification for powershell wrappers. 2018-11-13 22:47:06 -08:00
cli.py win test: add http tester container to Windows tests (#46606) 2018-10-13 08:20:00 +10:00
config.py Fix ansible-test multi-group smoke test handling. (#46363) 2018-10-02 12:26:14 -07:00
core_ci.py Force PEM SSH keys for paramiko 2018-10-18 21:25:55 -07:00
cover.py Fix ansible-test encoding issues for exceptions. 2018-10-02 13:36:43 -07:00
csharp_import_analysis.py win_exec: refactor PS exec runner (#45334) 2018-10-02 15:55:53 -07:00
delegation.py Upgrade pylint to version 2.1.1. (#47036) 2018-10-14 22:59:52 -07:00
diff.py Add test verification to ansible-test. (#22636) 2017-03-15 12:17:42 -07:00
docker_util.py Bug fixes and cleanup for ansible-test. (#45991) 2018-09-21 11:38:22 -07:00
executor.py Fix ansible-test interpreter tracking. 2018-11-14 13:58:03 -08:00
git.py Fix ansible-test merge change detection. 2018-11-14 12:27:40 -08:00
http.py Cleanup and enhancements for ansible-test. (#37142) 2018-03-07 14:02:31 -08:00
import_analysis.py Fix ansible-test pylint and pep8 issues. (#24245) 2017-05-03 23:19:44 +08:00
manage_ci.py win test: add http tester container to Windows tests (#46606) 2018-10-13 08:20:00 +10:00
metadata.py Improve handling of integration test aliases. (#38698) 2018-04-12 16:15:28 -07:00
powershell_import_analysis.py Add PS dependency analysis to ansible-test. 2017-11-21 12:30:16 -08:00
pytar.py Minor fixes for unit test delegation. 2018-09-18 16:12:15 -07:00
target.py Upgrade pylint to version 2.1.1. (#47036) 2018-10-14 22:59:52 -07:00
test.py Improve bot messaging on CI failures. 2018-02-07 23:42:08 -08:00
thread.py Bug fixes and cleanup for ansible-test. (#45991) 2018-09-21 11:38:22 -07:00
util.py Fix ansible-test interpreter tracking. 2018-11-14 13:58:03 -08:00