Skip to content

Commit

Permalink
k8s_rollback/tests: speed up test (#518)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
goneri authored Sep 28, 2022
1 parent 08596fd commit 454d0ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/k8s_rollback_reduce_tmeouts.yaml
Original file line number Diff line number Diff line change
@@ -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)."
8 changes: 4 additions & 4 deletions tests/integration/targets/k8s_rollback/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 454d0ef

Please sign in to comment.