54 lines
2.8 KiB
YAML
54 lines
2.8 KiB
YAML
---
|
|
- name: Verify rendered Audita configuration
|
|
hosts: localhost
|
|
gather_facts: false
|
|
vars:
|
|
audita_rendered_config: "{{ audita_rendered_config_file.content | b64decode | from_yaml }}"
|
|
tasks:
|
|
- name: Read rendered configuration
|
|
ansible.builtin.slurp:
|
|
src: "{{ audita_test_config_path }}"
|
|
register: audita_rendered_config_file
|
|
|
|
- name: Check omitted baseline settings
|
|
ansible.builtin.assert:
|
|
that:
|
|
- audita_rendered_config.profiles_dir is not defined
|
|
- audita_rendered_config.llm.validation_profile is not defined
|
|
- audita_rendered_config.llm.transient_retries is not defined
|
|
- audita_rendered_config.llm.repair_attempts is not defined
|
|
- audita_rendered_config.llm.operation_timeout is not defined
|
|
- audita_rendered_config.reporting is not defined
|
|
- audita_rendered_config.diagnostics is not defined
|
|
when: audita_test_case == "baseline"
|
|
|
|
- name: Check representative rendered configuration
|
|
ansible.builtin.assert:
|
|
that:
|
|
- audita_rendered_config.version == 2
|
|
- audita_rendered_config.profiles_dir == "profiles"
|
|
- audita_rendered_config.backends.fixture.endpoint == "http://127.0.0.1:11434/v1"
|
|
- audita_rendered_config.backends.fixture.credential is none
|
|
- audita_rendered_config.backends.fixture.concurrency == 2
|
|
- audita_rendered_config.backends.fixture.queue_capacity == 0
|
|
- audita_rendered_config.llm.proposal_profile == "fixture-proposal"
|
|
- audita_rendered_config.llm.validation_profile == "fixture-validation"
|
|
- audita_rendered_config.llm.transient_retries == 0
|
|
- audita_rendered_config.llm.repair_attempts == 0
|
|
- audita_rendered_config.llm.operation_timeout == "45s"
|
|
- audita_rendered_config.validation.max_prompt_tokens == 128
|
|
- audita_rendered_config.pipeline.modules == []
|
|
- audita_rendered_config.normalization.max_segment_gap == 1.25
|
|
- audita_rendered_config.normalization.max_segment_gap is number
|
|
- audita_rendered_config.normalization.ellipsis_gap == 2.5
|
|
- audita_rendered_config.normalization.ellipsis_gap is number
|
|
- audita_rendered_config.normalization.max_segment_duration == 30.75
|
|
- audita_rendered_config.normalization.max_segment_duration is number
|
|
- audita_rendered_config.context.description == ""
|
|
- audita_rendered_config.reporting.enabled == false
|
|
- audita_rendered_config.reporting.stdout_dir == ""
|
|
- audita_rendered_config.diagnostics.debug == false
|
|
- audita_rendered_config.output is not defined
|
|
- audita_rendered_config.diagnostics.work_dir is not defined
|
|
when: audita_test_case == "representative"
|