[PR #9859/eff25c8a backport][stable-10] Fix/improve tests (#9860)

Fix/improve tests (#9859)

* Fix tests.

* Improve callback tests.

(cherry picked from commit eff25c8a6e)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2025-03-09 17:01:54 +01:00 committed by GitHub
commit 8253fb171d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 187 additions and 157 deletions

View file

@ -123,11 +123,12 @@
register: releases_path
- stat: path={{ deploy_helper.shared_path }}
register: shared_path
when: deploy_helper.shared_path is truthy
- name: Assert State=present with shared_path set to False
assert:
that:
- "releases_path.stat.exists"
- "not shared_path.stat.exists"
- "deploy_helper.shared_path is falsy or not shared_path.stat.exists"
# Setup older releases for tests
- file: path={{ deploy_helper.releases_path }}/{{ item }} state=directory