Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0-fr1] Fix edpm_multipathd and other molecule tests #819

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/molecule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
- name: Install ansible
run: pip install ansible
- name: Install collections
run: ansible-galaxy collection install -r requirements.yml
run: ansible-galaxy collection install --force -r requirements.yml
- name: Install molecule deps
run: pip install -r molecule-requirements.txt
- name: Run molecule test
Expand Down
14 changes: 12 additions & 2 deletions roles/edpm_multipathd/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# License for the specific language governing permissions and limitations
# under the License.

- name: Prepare
- name: Prepare test deps
hosts: all
gather_facts: false
roles:
Expand All @@ -23,4 +23,14 @@
- iproute
- iscsi-initiator-utils
- podman
- role: env_data
- name: Prepare
hosts: all
roles:
- role: osp.edpm.env_data
tasks:
- name: set /etc/localtime
become: true
ansible.builtin.file:
path: /etc/localtime
src: /usr/share/zoneinfo/UTC
state: link
7 changes: 7 additions & 0 deletions roles/edpm_telemetry/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
state: directory
mode: "0775"

- name: set /etc/localtime
become: true
ansible.builtin.file:
path: /etc/localtime
src: /usr/share/zoneinfo/UTC
state: link

- name: Create /run/libvirt directory
ansible.builtin.file:
path: "/run/libvirt"
Expand Down
2 changes: 1 addition & 1 deletion scripts/molecule_venv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ fi
source $LOCAL_MOLECULE_ENV/bin/activate

pip install -r molecule-requirements.txt
ansible-galaxy collection install -r requirements.yml
ansible-galaxy collection install --force -r requirements.yml
./scripts/test_roles.py
deactivate
Loading