25 lines
1.1 KiB
YAML
25 lines
1.1 KiB
YAML
---
|
|
- name: Verify rendered Audita configuration
|
|
hosts: localhost
|
|
gather_facts: false
|
|
tasks:
|
|
- name: Read rendered configuration
|
|
ansible.builtin.slurp:
|
|
src: "{{ audita_test_config_path }}"
|
|
register: audita_rendered_config_file
|
|
|
|
- name: Check representative rendered configuration
|
|
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"
|
|
- audita_rendered_config.pipeline.modules == ["glossary"]
|
|
- audita_rendered_config.context.description == ""
|
|
- audita_rendered_config.llm.validation_profile is not defined
|
|
- audita_rendered_config.output is not defined
|
|
- audita_rendered_config.diagnostics is not defined
|
|
vars:
|
|
audita_rendered_config: "{{ audita_rendered_config_file.content | b64decode | from_yaml }}"
|