mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-04-10 02:41:14 +00:00
k8s_rollback/tests: speed up test (#518)
k8s_rollback/tests: speed up test Set a low timeout for the tasks that are expected to fail fast to speed up the whole tests. Reviewed-by: Mike Graves <mgraves@redhat.com>
This commit is contained in:
3
changelogs/fragments/k8s_rollback_reduce_tmeouts.yaml
Normal file
3
changelogs/fragments/k8s_rollback_reduce_tmeouts.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
trivial:
|
||||
- "Speed up the tests of k8s_rollback with lower timeout value (https://github.com/ansible-collections/kubernetes.core/pull/518)."
|
||||
@@ -3,12 +3,12 @@
|
||||
- name: Set variables
|
||||
set_fact:
|
||||
namespace: "{{ test_namespace }}"
|
||||
|
||||
k8s_wait_timeout: 180
|
||||
- name: Create a deployment
|
||||
k8s:
|
||||
state: present
|
||||
wait: yes
|
||||
wait_timeout: "{{ k8s_wait_timeout | default(omit) }}"
|
||||
wait_timeout: "{{ k8s_wait_timeout }}"
|
||||
inline: &deploy
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
@@ -38,7 +38,7 @@
|
||||
k8s:
|
||||
state: present
|
||||
wait: yes
|
||||
wait_timeout: "{{ k8s_wait_timeout | default(omit) }}"
|
||||
wait_timeout: 30
|
||||
definition:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
@@ -134,7 +134,7 @@
|
||||
k8s:
|
||||
state: present
|
||||
wait: yes
|
||||
wait_timeout: "{{ k8s_wait_timeout | default(omit) }}"
|
||||
wait_timeout: 30
|
||||
definition:
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
|
||||
Reference in New Issue
Block a user