Skip to content

Commit

Permalink
fixup molecule tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guidograzioli committed Oct 10, 2023
1 parent f3639f9 commit a13b7b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions molecule/preinstalledjdk/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
- middleware_automation.jws
roles:
- role: jws
vars:
jws_systemd_enabled: True
jws_java_home: "{{ jdk_home }}"
jws_systemd_enabled: True
jws_java_home: "{{ jdk_home }}"
jws_service_systemd_type: forking
12 changes: 5 additions & 7 deletions molecule/uninstall/verify.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
---
- name: Verify
hosts: all
vars:
tomcat_version: 9.0.65
jws_home: "/opt/apache-tomcat-{{ tomcat_version }}"
collections:
- middleware_automation.jws
tasks:
- name: Include jws role defaults
ansible.builtin.include_vars:
file: roles/jws/defaults/main.yml
- name: "Read info on server home: {{ jws_home }}"
stat:
ansible.builtin.stat:
path: "{{ jws_home }}/lib"
register: tc_home

- name: "Check that server home has been removed"
assert:
ansible.builtin.assert:
that:
- tc_home is defined
- tc_home.stat is defined
Expand Down

0 comments on commit a13b7b7

Please sign in to comment.