mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2026-11-24 18:03:48 +00:00
molecule: make scenarios work on containerized CI runners
Since the molecule jobs moved to self-hosted container runners, molecule talks to a Docker daemon that does not share the runner's filesystem or network namespace: - quarkus_ha*: drop the postgresql.conf bind mount (the workspace path does not exist on the daemon side) and pass listen_addresses via -c - quarkus, quarkus_devmode: fetch the openid configuration from the instance with ansible.builtin.uri instead of curl | jq on the runner, and drop the fixed host published_ports that are no longer needed - quarkus_nohost: add the missing roles symlink Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
9c5f03b8be
commit
68a1f3d28b
@@ -12,8 +12,6 @@ platforms:
|
||||
- "8443/tcp"
|
||||
- "8009/tcp"
|
||||
- "9000/tcp"
|
||||
published_ports:
|
||||
- 0.0.0.0:8443:8443/tcp
|
||||
provisioner:
|
||||
name: ansible
|
||||
config_options:
|
||||
|
||||
+10
-13
@@ -47,23 +47,20 @@
|
||||
- hera_home is defined
|
||||
- hera_home | length == 0
|
||||
block:
|
||||
- name: Fetch openID config # noqa blocked_modules command-instead-of-module
|
||||
ansible.builtin.shell: |
|
||||
set -o pipefail
|
||||
curl -H 'Host: instance' https://localhost:8443/realms/master/.well-known/openid-configuration -k | jq .
|
||||
args:
|
||||
executable: /bin/bash
|
||||
delegate_to: localhost
|
||||
- name: Fetch openID config
|
||||
ansible.builtin.uri:
|
||||
url: https://localhost:8443/realms/master/.well-known/openid-configuration
|
||||
headers:
|
||||
Host: instance
|
||||
validate_certs: false
|
||||
register: openid_config
|
||||
changed_when: False
|
||||
- name: Verify endpoint URLs
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- (openid_config.stdout | from_json)["backchannel_authentication_endpoint"] == 'https://instance:8443/realms/master/protocol/openid-connect/ext/ciba/auth'
|
||||
- (openid_config.stdout | from_json)['issuer'] == 'https://instance:8443/realms/master'
|
||||
- (openid_config.stdout | from_json)['authorization_endpoint'] == 'https://instance:8443/realms/master/protocol/openid-connect/auth'
|
||||
- (openid_config.stdout | from_json)['token_endpoint'] == 'https://instance:8443/realms/master/protocol/openid-connect/token'
|
||||
delegate_to: localhost
|
||||
- openid_config.json["backchannel_authentication_endpoint"] == 'https://instance:8443/realms/master/protocol/openid-connect/ext/ciba/auth'
|
||||
- openid_config.json['issuer'] == 'https://instance:8443/realms/master'
|
||||
- openid_config.json['authorization_endpoint'] == 'https://instance:8443/realms/master/protocol/openid-connect/auth'
|
||||
- openid_config.json['token_endpoint'] == 'https://instance:8443/realms/master/protocol/openid-connect/token'
|
||||
|
||||
- name: Check log folder
|
||||
ansible.builtin.stat:
|
||||
|
||||
Reference in New Issue
Block a user