Files
ansible-role-audita/tests/verify-config.yml

25 lines
1.1 KiB
YAML
Raw Normal View History

2026-09-08 13:27:10 +00:00
---
- name: Verify rendered Audita configuration
hosts: localhost
gather_facts: false
tasks:
- name: Read rendered configuration
ansible.builtin.slurp:
src: "{{ audita_test_config_path }}"
2026-09-08 13:27:10 +00:00
register: audita_rendered_config_file
2026-09-09 04:27:44 +00:00
- name: Check representative rendered configuration
2026-09-08 13:27:10 +00:00
ansible.builtin.assert:
that:
- audita_rendered_config.version == 2
- audita_rendered_config.backends.fixture.endpoint == "http://127.0.0.1:11434/v1"
- audita_rendered_config.backends.fixture.credential is none
- audita_rendered_config.llm.proposal_profile == "fixture-proposal"
2026-09-09 04:27:44 +00:00
- audita_rendered_config.pipeline.modules == ["glossary"]
- audita_rendered_config.context.description == ""
- audita_rendered_config.llm.validation_profile is not defined
2026-09-09 04:27:44 +00:00
- audita_rendered_config.output is not defined
- audita_rendered_config.diagnostics is not defined
2026-09-09 04:27:44 +00:00
vars:
audita_rendered_config: "{{ audita_rendered_config_file.content | b64decode | from_yaml }}"