Remove serial deletion of pods in template tests (#349)

Remove serial deletion of pods in template tests

SUMMARY

The template test suite deletes twelve pods in serial during cleanup
which is very slow and leads to frequent timeouts. There's no need to do
this since we delete the namespace the pods are in right after.

ISSUE TYPE

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: None <None>
Reviewed-by: None <None>
This commit is contained in:
Mike Graves
2022-01-25 17:23:09 -05:00
committed by GitHub
parent acb015c788
commit b54e9ef4ef

View File

@@ -239,17 +239,6 @@
- resource.result.results | selectattr('changed') | list | length == 1
- resource.result.results | selectattr('error', 'defined') | list | length == 1
- name: Remove Pod (Cleanup)
kubernetes.core.k8s:
api_version: v1
kind: Pod
name: "pod-{{ item }}"
namespace: "{{ template_namespace }}"
state: absent
wait: yes
ignore_errors: yes
loop: "{{ range(1, 12) | list }}"
always:
- name: Remove namespace (Cleanup)
kubernetes.core.k8s: