Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kayiwa committed Oct 6, 2024
1 parent 5441093 commit dc5614e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
1 change: 1 addition & 0 deletions .github/workflows/molecule_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
- freetds
# - friends_of_pul
- geaccirc
- gitlab
# - geoserver
- hr_share
- imagemagick
Expand Down
24 changes: 11 additions & 13 deletions roles/gitlab/molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@
hosts: all
gather_facts: false
tasks:
- name: check ruby package status
package:
name: "{{ item }}"
- name: Check gitlab-ce status
ansible.builtin.package:
name: "{{ item }}"
state: present
check_mode: true
register: pkg_status
loop:
- ruby-switch
- ruby2.6-dev
- ruby2.6
check_mode: true
register: pkg_status
loop:
- gitlab-ce

- name: test for ruby packages
assert:
that:
- not pkg_status.changed
- name: test for gitlab-ce packages
ansible.builtin.assert:
that:
- not pkg_status.changed

0 comments on commit dc5614e

Please sign in to comment.