Sergiy Markin be9f97b846 Airflow 2.10.2 + ubuntu_jammy
Change-Id: I7c8a637efc1e969ab6814447e76068caaca0e66e
2024-09-26 17:25:57 +00:00

56 lines
1.7 KiB
YAML

# Tests success path for advanced replacement scenario, where
# parent-replacement document receives substitutions and is then layered
# with by its child-replacement document, which replaces its parent.
#
# 1. Purges existing data to ensure test isolation.
# 2. Adds initial documents with replacement scenario described above.
# 3. Verifies correctly layered, substituted and replaced data.
defaults:
request_headers:
content-type: application/x-yaml
# response_headers:
# content-type: application/x-yaml
verbose: true
tests:
- name: purge
desc: Begin testing from known state.
DELETE: /api/v1.0/revisions
status: 204
response_headers: {}
- name: initialize
desc: Create initial documents
PUT: /api/v1.0/buckets/mop/documents
status: 200
response_headers:
content-type: application/x-yaml
data: <@resources/replacement.yaml
- name: verify_replacement_document_receives_substitution
desc: |
Tests success path for advanced replacement scenario, where
parent-replacement document receives substitutions and is then layered
with by its child-replacement document, which replaces its parent.
GET: /api/v1.0/revisions/$RESPONSE['$.[0].status.revision']/rendered-documents
query_parameters:
schema: armada/Chart/v1
status: 200
response_headers:
content-type: application/x-yaml
response_multidoc_jsonpaths:
$.`len`: 1
$.[*].metadata.name: example-chart-01
$.[*].metadata.layeringDefinition.layer: site
$.[*].data:
chart:
details:
data: bar
values:
tls:
certificate: |
CERTIFICATE DATA
key: |
KEY DATA