-
-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
๐ง refactor(verify.yml): include asserts playbook for postgres
๐ feat(vip_manager_package_repo.yml): add new file to assert vip_manager_package_repo ๐ feat(main.yml): add new file to include all asserts ๐ง refactor(Debian.yml): split vip_manager_package_repo into base_url and package_repo The asserts playbook for postgres is now included in verify.yml to ensure the correct functioning of postgres. A new file, vip_manager_package_repo.yml, has been added to assert the vip_manager_package_repo, which helps in validating the correctness of the package repository. Another new file, main.yml, has been added to include all asserts, which helps in organizing and managing all assertions in one place. In Debian.yml, the vip_manager_package_repo has been split into base_url and package_repo to improve readability and maintainability.
- Loading branch information
1 parent
b5a1aff
commit b4abf65
Showing
4 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
molecule/tests/variables/asserts/vip_manager_package_repo.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
- name: Include vars | ||
ansible.builtin.include_vars: | ||
file: ../../../../vars/Debian.yml | ||
|
||
- name: Setting vip_manager_version | ||
ansible.builtin.set_fact: | ||
vip_manager_version: "1.0.0" | ||
|
||
- name: Debug vip_manager_package_repo | ||
debug: | ||
var: vip_manager_package_repo | ||
|
||
- name: Assert vip_manager_package_repo | ||
assert: | ||
that: | ||
- vip_manager_package_repo == "https://github.com/cybertec-postgresql/vip-manager/releases/download/v1.0.0/vip-manager_1.0.0_Linux_x86_64.deb" | ||
fail_msg: > | ||
Assertion failed: vip_manager_package_repo is "{{ vip_manager_package_repo }}", | ||
but expected "https://github.com/cybertec-postgresql/vip-manager/releases/download/v1.0.0/vip-manager_1.0.0_Linux_x86_64.deb" | ||
success_msg: "vip_manager_package_repo is correct" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
- hosts: localhost | ||
gather_facts: false | ||
|
||
tasks: | ||
- name: Molecule | Tests | Include all asserts | ||
ansible.builtin.include_tasks: "{{ item }}" | ||
with_fileglob: | ||
- asserts/*.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters