Support Scriptorium credentials in Narratio

This commit is contained in:
2026-09-29 18:18:42 +00:00
parent 3c0700b532
commit 758aed7a74
8 changed files with 48 additions and 8 deletions

View File

@@ -32,12 +32,11 @@
- narratio_pipeline.notarius.config_overlay == narratio_expected_notarius_config_overlay
- narratio_pipeline.notarius.resume == false
- narratio_pipeline.notarius.chunk_cache == 'auto'
- narratio_pipeline.scriptorium.credentials == narratio_expected_scriptorium_credentials
- narratio_pipeline.trim.enabled == false
- narratio_pipeline.trim.bounds.render_debug == false
- narratio_pipeline.render.enabled == false
- narratio_pipeline.render.include_metadata == false
- narratio_pipeline.scriptorium.artifacts.disabled_fixture.enabled == false
- narratio_pipeline.scriptorium.artifacts.additional_disabled_fixture.enabled == false
- "'configkit' not in narratio_pipeline"
- "'storage' not in narratio_pipeline"
- "'normalize' not in narratio_pipeline"
@@ -51,6 +50,26 @@
narratio_expected_audita_validation_profile: "{{ narratio_test_audita_validation_profile | default('representative-validation') }}"
narratio_expected_notarius_credentials: "{{ narratio_test_notarius_credentials | default(['NARRATIO_TEST_NOTARIUS_API_KEY']) }}"
narratio_expected_notarius_config_overlay: "{{ narratio_test_notarius_config_overlay | default('representative-overlay') }}"
narratio_expected_scriptorium_credentials: >-
{{ narratio_test_scriptorium_credentials |
default(['NARRATIO_TEST_AUDITA_API_KEY', 'NARRATIO_TEST_NOTARIUS_API_KEY']) }}
- name: Verify composed Scriptorium artifacts
ansible.builtin.assert:
that:
- narratio_pipeline.scriptorium.artifacts.disabled_fixture.enabled == false
- narratio_pipeline.scriptorium.artifacts.additional_disabled_fixture.enabled == false
vars:
narratio_pipeline: "{{ narratio_managed_pipeline.content | b64decode | from_yaml }}"
when: not (narratio_test_scriptorium_credentials_only | default(false))
- name: Verify the credential-only Scriptorium section
ansible.builtin.assert:
that:
- "narratio_pipeline.scriptorium == {'credentials': []}"
vars:
narratio_pipeline: "{{ narratio_managed_pipeline.content | b64decode | from_yaml }}"
when: narratio_test_scriptorium_credentials_only | default(false)
- name: Validate the representative pipeline as the Narratio account
become: true