Skip to content

Commit

Permalink
Add identity integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
gionn committed Sep 26, 2023
1 parent d4087e1 commit f40f725
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/enteprise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ jobs:
scenario:
- name: elasticsearch
- name: pki
include:
- name: identity
image: rockylinux:8.7
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
5 changes: 5 additions & 0 deletions molecule/identity/converge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- name: Run the playbook
ansible.builtin.import_playbook: ../../playbooks/acs.yml
vars:
autogen_unsecure_secrets: true
1 change: 1 addition & 0 deletions molecule/identity/host_vars/identity-instance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ansible_user: ansible
48 changes: 48 additions & 0 deletions molecule/identity/molecule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
dependency:
name: galaxy
driver:
name: docker
platforms:
- name: identity-instance
image: $MOLECULE_ROLE_IMAGE
dockerfile: ../../tests/molecule/Dockerfile-noprivs.j2
command: "/lib/systemd/systemd"
privileged: true
tmpfs:
- /run
- /run/lock
- /tmp
volume_mounts:
- "/sys/fs/cgroup:/sys/fs/cgroup:ro"
groups:
- database
- activemq
- repository
- trusted_resource_consumers
- identity
- nginx
published_ports:
- 80/tcp
- 0.0.0.0:443:443/tcp
- 0.0.0.0:8080:8080/tcp

provisioner:
name: ansible
config_options:
defaults:
pipelining: True
ansible_args:
- -e
- "@tests/test-extra-vars.yml"
- -e
- "@tests/test-ssl.yml"
inventory:
links:
group_vars: ../../group_vars
host_vars: host_vars
playbooks:
prepare: ../default/prepare.yml
verify: ../default/verify.yml
verifier:
name: ansible

0 comments on commit f40f725

Please sign in to comment.