Simplify the Audita integration tests
This commit is contained in:
@@ -9,10 +9,22 @@
|
||||
src: /usr/local/etc/audita/config.yml
|
||||
register: audita_rendered_config_file
|
||||
|
||||
- name: Check rendered configuration
|
||||
- name: Check representative rendered configuration
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- '(audita_rendered_config_file.content | b64decode | from_yaml) == audita_expected_config'
|
||||
- audita_rendered_config.version == 1
|
||||
- audita_rendered_config.pipeline.modules == ["glossary"]
|
||||
- audita_rendered_config.llm.proposal.base_url == "https://openrouter.ai/api/v1"
|
||||
- audita_rendered_config.llm.proposal.model == "openrouter/google/gemma-4-31b-it"
|
||||
- audita_rendered_config.llm.proposal.timeout == "10s"
|
||||
- audita_rendered_config.llm.proposal.max_retries == 0
|
||||
- audita_rendered_config.context.description == ""
|
||||
- audita_rendered_config.diagnostics.retention == "never"
|
||||
- audita_rendered_config.llm.validation is not defined
|
||||
- audita_rendered_config.output is not defined
|
||||
- audita_rendered_config.diagnostics.work_dir is not defined
|
||||
vars:
|
||||
audita_rendered_config: "{{ audita_rendered_config_file.content | b64decode | from_yaml }}"
|
||||
|
||||
- name: Validate rendered configuration
|
||||
ansible.builtin.command:
|
||||
@@ -22,10 +34,4 @@
|
||||
- validate
|
||||
- --config
|
||||
- /usr/local/etc/audita/config.yml
|
||||
register: audita_rendered_config_validation
|
||||
changed_when: false
|
||||
|
||||
- name: Check rendered configuration validation output
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- audita_rendered_config_validation.stdout == "config is valid"
|
||||
|
||||
Reference in New Issue
Block a user