48 lines
2.8 KiB
YAML
48 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 representative rendered configuration
|
|
ansible.builtin.assert:
|
|
that:
|
|
- audita_rendered_config.version == 3
|
|
- audita_rendered_config.promptkit.backends[0].id == "fixture-backend"
|
|
- audita_rendered_config.promptkit.backends[0].endpoint == "http://127.0.0.1:11434/v1"
|
|
- audita_rendered_config.promptkit.backends[0].concurrency_limit == 1
|
|
- audita_rendered_config.promptkit.backends[0].queue_capacity == 0
|
|
- audita_rendered_config.promptkit.backends[0].extra_params.stream == false
|
|
- audita_rendered_config.promptkit.profiles[0].model == "offline-proposal"
|
|
- audita_rendered_config.promptkit.prompts[0].id == "fixture-note"
|
|
- audita_rendered_config.promptkit.collections.fixture.profiles[0].id == "offline"
|
|
- audita_rendered_config.promptkit.schema_root == "schemas"
|
|
- audita_rendered_config.pipeline.stages | map(attribute='id') | list == ['first', 'second']
|
|
- audita_rendered_config.pipeline.stages[0].glossaries == []
|
|
- audita_rendered_config.pipeline.stages[0].llm.validation_profile is none
|
|
- audita_rendered_config.pipeline.stages[1].context.description == "Second pass"
|
|
- audita_rendered_config.glossary_collections.people.entries[0].name == "Mira"
|
|
- audita_rendered_config.glossary_collections.places.entries[0].name == "Haven"
|
|
- audita_rendered_config.glossaries == ['people']
|
|
- audita_rendered_config.protected_terms == ['places']
|
|
- audita_rendered_config.llm.proposal_profile == "fixture-proposal"
|
|
- audita_rendered_config.llm.validation_profile == "fixture-validation"
|
|
- audita_rendered_config.llm.correction_repair_profile == "fixture-repair"
|
|
- audita_rendered_config.llm.correction_repair_attempts == 0
|
|
- audita_rendered_config.llm.transient_retries == 0
|
|
- audita_rendered_config.llm.operation_timeout == "45s"
|
|
- audita_rendered_config.validation.max_prompt_tokens == 128
|
|
- audita_rendered_config.normalization.max_segment_gap == 1.25
|
|
- audita_rendered_config.normalization.ellipsis_gap == 2.5
|
|
- audita_rendered_config.normalization.max_segment_duration == 30.75
|
|
- audita_rendered_config.context.description == ""
|
|
- audita_rendered_config.reporting.enabled == false
|
|
- audita_rendered_config.output is not defined
|
|
- audita_rendered_config.diagnostics is not defined
|