Simplify the Notarius integration tests
This commit is contained in:
@@ -7,12 +7,31 @@
|
||||
become: true
|
||||
ansible.builtin.slurp:
|
||||
src: /usr/local/etc/notarius/config.yml
|
||||
register: notarius_rendered_config
|
||||
register: notarius_rendered_config_file
|
||||
|
||||
- name: Check rendered configuration
|
||||
- name: Check representative rendered configuration
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- '(notarius_rendered_config.content | b64decode | from_yaml) == notarius_expected_config'
|
||||
- notarius_rendered_config.version == 4
|
||||
- notarius_rendered_config.promptkit.local_backend.endpoint == "http://localhost:8000/v1"
|
||||
- notarius_rendered_config.promptkit.local_backend.concurrency_limit == 0
|
||||
- notarius_rendered_config.cache.checkpoints.enabled is false
|
||||
- notarius_rendered_config.cache.chunk_plans.directory == ""
|
||||
- notarius_rendered_config.output.directory == "/tmp/notarius-output"
|
||||
- notarius_rendered_config.pipelines["dnd-session"] == notarius_expected_pipeline
|
||||
- notarius_rendered_config.pipelines["dnd-archive"] == notarius_expected_pipeline
|
||||
- notarius_rendered_config.promptkit.profile_dir is not defined
|
||||
- notarius_rendered_config.promptkit.profile_file is not defined
|
||||
- notarius_rendered_config.debug is not defined
|
||||
vars:
|
||||
notarius_rendered_config: "{{ notarius_rendered_config_file.content | b64decode | from_yaml }}"
|
||||
notarius_expected_pipeline:
|
||||
llm_profile: dnd-extraction
|
||||
input: seriatim
|
||||
artifacts:
|
||||
spells:
|
||||
extract: dnd/spells
|
||||
normalize: dnd/spells
|
||||
|
||||
- name: Validate rendered configuration
|
||||
ansible.builtin.command:
|
||||
|
||||
Reference in New Issue
Block a user