diff options
author | Martin Krizek <martin.krizek@gmail.com> | 2021-09-02 10:55:15 +0200 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2021-10-14 20:52:06 +0200 |
commit | 7cf29ded9c6329757af05e9fdd2ff9341906103a (patch) | |
tree | 3081a601b82e19b1b5096e6cf89f300e1731f7c3 | |
parent | Remove incidental_win_dsc test. (diff) | |
download | ansible-7cf29ded9c6329757af05e9fdd2ff9341906103a.tar.xz ansible-7cf29ded9c6329757af05e9fdd2ff9341906103a.zip |
Intentional tests
ci_complete
ci_coverage
-rw-r--r-- | test/integration/targets/apt/tasks/repo.yml | 27 | ||||
-rw-r--r-- | test/integration/targets/wait_for/tasks/main.yml | 12 |
2 files changed, 36 insertions, 3 deletions
diff --git a/test/integration/targets/apt/tasks/repo.yml b/test/integration/targets/apt/tasks/repo.yml index 8269452aa6..8a0b92b383 100644 --- a/test/integration/targets/apt/tasks/repo.yml +++ b/test/integration/targets/apt/tasks/repo.yml @@ -274,9 +274,6 @@ diff: yes register: apt_result - - debug: - var: apt_result - - name: Check the content of diff.prepared assert: that: @@ -288,3 +285,27 @@ name: foo state: absent allow_unauthenticated: yes + +- block: + - name: Install foo package version 1.0.0 with force=yes, implies allow_unauthenticated=yes + apt: + name: foo=1.0.0 + force: yes + register: apt_result + + - name: Check install with dpkg + shell: dpkg-query -l foo + register: dpkg_result + + - name: Check if install was successful + assert: + that: + - "apt_result is success" + - "dpkg_result is success" + - "'1.0.0' in dpkg_result.stdout" + always: + - name: Clean up + apt: + name: foo + state: absent + allow_unauthenticated: yes diff --git a/test/integration/targets/wait_for/tasks/main.yml b/test/integration/targets/wait_for/tasks/main.yml index 67e077868e..8c73fbec90 100644 --- a/test/integration/targets/wait_for/tasks/main.yml +++ b/test/integration/targets/wait_for/tasks/main.yml @@ -175,3 +175,15 @@ - waitfor is successful - waitfor is not changed - "waitfor.port == {{ http_port }}" + +- name: test wait_for with delay + wait_for: + timeout: 2 + delay: 2 + register: waitfor + +- name: verify test wait_for with delay + assert: + that: + - waitfor is successful + - waitfor.elapsed >= 4 |