Skip to content

Commit

Permalink
Add default molecule scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
dometto committed Nov 18, 2024
1 parent b0198c1 commit 9bca340
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
ANSIBLE_STDOUT_CALLBACK: yaml
CRUN_VER: 1.11.2
REQUIREMENTS_FILE: molecule/ext/molecule-src/requirements.txt
MOLECULE_FILE: molecule/ext/molecule-src/molecule.yml
steps:
- name: Workaround crun issue on ubuntu
run: |
Expand All @@ -42,4 +43,4 @@ jobs:
- run: pip install -r ${{ env.REQUIREMENTS_FILE }}
- name: Molecule tests
run: |
BOOTSTRAP_KEY=${{ env.BOOTSTRAP_KEY }} molecule -vvv test --all
molecule -c ${{ env.MOLECULE_FILE }} -vvv test --all
9 changes: 9 additions & 0 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
provisioner:
name: ansible
env:
components:
- name: test_component
path: playbook.yml # this should be set to the path of your component's playbook in the repo
parameters:
# Add parameters expected to be set from the ResearchCloud portal here.
6 changes: 6 additions & 0 deletions molecule/default/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
- name: Verify
hosts: all
gather_facts: false
tasks:
# This playbook can be used to perform assertions, e.g. using the `ansible.builtin.assert` module.

0 comments on commit 9bca340

Please sign in to comment.