mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-07-28 10:24:45 +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
|
- name: Set variables
|
||||||
set_fact:
|
set_fact:
|
||||||
namespace: "{{ test_namespace }}"
|
namespace: "{{ test_namespace }}"
|
||||||
|
k8s_wait_timeout: 180
|
||||||
- name: Create a deployment
|
- name: Create a deployment
|
||||||
k8s:
|
k8s:
|
||||||
state: present
|
state: present
|
||||||
wait: yes
|
wait: yes
|
||||||
wait_timeout: "{{ k8s_wait_timeout | default(omit) }}"
|
wait_timeout: "{{ k8s_wait_timeout }}"
|
||||||
inline: &deploy
|
inline: &deploy
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
k8s:
|
k8s:
|
||||||
state: present
|
state: present
|
||||||
wait: yes
|
wait: yes
|
||||||
wait_timeout: "{{ k8s_wait_timeout | default(omit) }}"
|
wait_timeout: 30
|
||||||
definition:
|
definition:
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
@@ -134,7 +134,7 @@
|
|||||||
k8s:
|
k8s:
|
||||||
state: present
|
state: present
|
||||||
wait: yes
|
wait: yes
|
||||||
wait_timeout: "{{ k8s_wait_timeout | default(omit) }}"
|
wait_timeout: 30
|
||||||
definition:
|
definition:
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: DaemonSet
|
kind: DaemonSet
|
||||||
|
|||||||
Reference in New Issue
Block a user