Test Narratio selectors and credential lists
This commit is contained in:
@@ -24,7 +24,11 @@
|
||||
- narratio_pipeline.seriatim.coalesce_gap == 0.0
|
||||
- narratio_pipeline.seriatim.report == false
|
||||
- narratio_pipeline.audita.modules == []
|
||||
- narratio_pipeline.notarius.credentials == ['NARRATIO_TEST_NOTARIUS_API_KEY']
|
||||
- narratio_pipeline.audita.credentials == narratio_expected_audita_credentials
|
||||
- narratio_pipeline.audita.overlay == narratio_expected_audita_overlay
|
||||
- narratio_pipeline.audita.proposal_profile == narratio_expected_audita_proposal_profile
|
||||
- narratio_pipeline.audita.validation_profile == narratio_expected_audita_validation_profile
|
||||
- narratio_pipeline.notarius.credentials == narratio_expected_notarius_credentials
|
||||
- narratio_pipeline.notarius.config_overlay == narratio_expected_notarius_config_overlay
|
||||
- narratio_pipeline.notarius.resume == false
|
||||
- narratio_pipeline.notarius.chunk_cache == 'auto'
|
||||
@@ -39,6 +43,13 @@
|
||||
- "'normalize' not in narratio_pipeline"
|
||||
vars:
|
||||
narratio_pipeline: "{{ narratio_managed_pipeline.content | b64decode | from_yaml }}"
|
||||
narratio_expected_audita_credentials: >-
|
||||
{{ narratio_test_audita_credentials |
|
||||
default(['NARRATIO_TEST_AUDITA_API_KEY', 'NARRATIO_TEST_NOTARIUS_API_KEY']) }}
|
||||
narratio_expected_audita_overlay: "{{ narratio_test_audita_overlay | default('representative-audita-overlay') }}"
|
||||
narratio_expected_audita_proposal_profile: "{{ narratio_test_audita_proposal_profile | default('representative-proposal') }}"
|
||||
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') }}"
|
||||
|
||||
- name: Validate the representative pipeline as the Narratio account
|
||||
@@ -53,4 +64,5 @@
|
||||
- /usr/local/etc/narratio/pipeline.yml
|
||||
environment:
|
||||
NARRATIO_TEST_NOTARIUS_API_KEY: "{{ lookup('ansible.builtin.env', 'NARRATIO_TEST_NOTARIUS_API_KEY') }}"
|
||||
NARRATIO_TEST_AUDITA_API_KEY: "{{ lookup('ansible.builtin.env', 'NARRATIO_TEST_AUDITA_API_KEY') }}"
|
||||
changed_when: false
|
||||
|
||||
Reference in New Issue
Block a user