Skip to content

Commit

Permalink
Add dependency step and requirements file to upgrade tests
Browse files Browse the repository at this point in the history
Introduce a dependency step in the molecule test sequence to ensure all dependencies are met before running tests. Also, add a requirements.yml file specifying required Ansible collections for the upgrade packages scenario.
  • Loading branch information
SquirrelDevelopper committed Oct 15, 2024
1 parent e8de5a6 commit e074c1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/src/tests/molecule/upgrade-packages/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ provisioner:

scenario:
test_sequence:
- dependency
- destroy
- create
- prepare
Expand Down
6 changes: 6 additions & 0 deletions server/src/tests/molecule/upgrade-packages/requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
collections:
- name: community.docker
version: ">=3.10.2"
- name: community.general
version: ">=7.0.0"
source: https://galaxy.ansible.com

0 comments on commit e074c1b

Please sign in to comment.