Skip to content

Commit

Permalink
test: test for lower case realm in realmd.conf
Browse files Browse the repository at this point in the history
Signed-off-by: Rich Megginson <rmeggins@redhat.com>
  • Loading branch information
richm committed Mar 8, 2024
1 parent a4caa41 commit e26d1dd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/tests_basic_join.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
ad_integration_password: Secret123

tasks:
- name: Set test realm
set_fact:
__ad_integration_sample_realm: MiXeD.cAsE

- name: Test - Run the system role
include_role:
name: linux-system-roles.ad_integration
Expand All @@ -35,3 +39,9 @@
vars:
__file: /etc/realmd.conf
__fingerprint: "system_role:ad_integration"

- name: Check that realm name is all lower case
command: >-
grep -xF "[{{ __ad_integration_sample_realm | lower }}]"
/etc/realmd.conf
changed_when: false

0 comments on commit e26d1dd

Please sign in to comment.