Expose the Notarius configuration profile in the Narratio role

This commit is contained in:
2026-09-22 18:33:28 +00:00
parent e783ddeb3f
commit 330afe7856
7 changed files with 26 additions and 4 deletions

View File

@@ -70,6 +70,7 @@ chmod 0755 "$custom_go_binary"
sudo rm -f -- /usr/local/bin/narratio
recovery_log="$test_tmp/recovery.log"
run_converge "$recovery_log" "${baseline_args[@]}" \
-e 'narratio_version=v2.1.0' \
-e '{"narratio_manage_build_dependencies": false}' \
-e "narratio_go_binary=$custom_go_binary"
grep -q . "$custom_go_invocations"
@@ -77,6 +78,7 @@ grep -q . "$custom_go_invocations"
"$ansible_playbook" -i "$inventory" "$verify_baseline"
recovery_repeat_log="$test_tmp/recovery-repeat.log"
run_converge "$recovery_repeat_log" "${baseline_args[@]}" \
-e 'narratio_version=v2.1.0' \
-e '{"narratio_manage_build_dependencies": false}' \
-e "narratio_go_binary=$custom_go_binary"
require_clean_recap "$recovery_repeat_log"
@@ -91,3 +93,12 @@ NARRATIO_TEST_NOTARIUS_API_KEY="$synthetic_notarius_api_key" \
representative_repeat_log="$test_tmp/representative-repeat.log"
"$ansible_playbook" -i "$inventory" "$representative" | tee "$representative_repeat_log"
require_clean_recap "$representative_repeat_log"
empty_profile_log="$test_tmp/empty-profile.log"
"$ansible_playbook" -i "$inventory" \
-e '{"narratio_notarius_config_profile": ""}' \
"$representative" | tee "$empty_profile_log"
NARRATIO_TEST_NOTARIUS_API_KEY="$synthetic_notarius_api_key" \
"$ansible_playbook" -i "$inventory" \
-e '{"narratio_test_notarius_config_profile": ""}' \
"$verify_config"

View File

@@ -26,6 +26,7 @@
narratio_audita_modules: []
narratio_audita_report: false
narratio_notarius_llm_api_key: NARRATIO_TEST_NOTARIUS_API_KEY
narratio_notarius_config_profile: representative-profile
narratio_notarius_resume: false
narratio_notarius_chunk_cache: auto
narratio_normalize_output_path: null

View File

@@ -26,6 +26,7 @@
- narratio_pipeline.audita.modules == []
- narratio_pipeline.audita.report == false
- narratio_pipeline.notarius.llm_api_key == 'NARRATIO_TEST_NOTARIUS_API_KEY'
- narratio_pipeline.notarius.config_profile == narratio_expected_notarius_config_profile
- narratio_pipeline.notarius.resume == false
- narratio_pipeline.notarius.chunk_cache == 'auto'
- narratio_pipeline.trim.enabled == false
@@ -39,6 +40,7 @@
- "'normalize' not in narratio_pipeline"
vars:
narratio_pipeline: "{{ narratio_managed_pipeline.content | b64decode | from_yaml }}"
narratio_expected_notarius_config_profile: "{{ narratio_test_notarius_config_profile | default('representative-profile') }}"
- name: Validate the representative pipeline as the Narratio account
become: true