From 38313a40ceda82edffe7cb086da929314c4b90c0 Mon Sep 17 00:00:00 2001 From: Zoran Regvart Date: Wed, 3 Jan 2024 12:43:18 +0100 Subject: [PATCH] Remove data and attestation logs This is to reduce the size of the overall log output. reference: RHTAPBUGS-1027 --- .../__snapshots__/task_validate_image.snap | 29 ------------------- features/task_validate_image.feature | 2 -- .../0.1/verify-enterprise-contract.yaml | 14 --------- 3 files changed, 45 deletions(-) diff --git a/features/__snapshots__/task_validate_image.snap b/features/__snapshots__/task_validate_image.snap index d041379e3..66422b0a1 100755 --- a/features/__snapshots__/task_validate_image.snap +++ b/features/__snapshots__/task_validate_image.snap @@ -458,35 +458,6 @@ success: true --- -[Outputs are there:data - 1] -- null - ---- - -[Outputs are there:attestations - 1] -{ - "_type": "https://in-toto.io/Statement/v0.1", - "predicateType": "https://slsa.dev/provenance/v0.2", - "subject": [ - { - "name": "acceptance/okayish", - "digest": { - "sha256": "${REGISTRY_acceptance/okayish:latest_DIGEST}" - } - } - ], - "predicate": { - "builder": { - "id": "https://tekton.dev/chains/v2" - }, - "buildType": "https://tekton.dev/attestations/chains/pipelinerun@v2", - "invocation": { - "configSource": {} - } - } -} ---- - [Outputs are there:summary - 1] { "timestamp": "${TIMESTAMP}", diff --git a/features/task_validate_image.feature b/features/task_validate_image.feature index 3a6746559..8b52e5733 100644 --- a/features/task_validate_image.feature +++ b/features/task_validate_image.feature @@ -219,8 +219,6 @@ Feature: Verify Enterprise Contract Tekton Tasks Then the task should succeed And the task logs for step "initialize-tuf" should match the snapshot And the task logs for step "report" should match the snapshot - And the task logs for step "data" should match the snapshot - And the task logs for step "attestations" should match the snapshot And the task logs for step "summary" should match the snapshot And the task logs for step "assert" should match the snapshot And the task logs for step "report-json" should match the snapshot diff --git a/tasks/verify-enterprise-contract/0.1/verify-enterprise-contract.yaml b/tasks/verify-enterprise-contract/0.1/verify-enterprise-contract.yaml index 2655b1da5..408798017 100644 --- a/tasks/verify-enterprise-contract/0.1/verify-enterprise-contract.yaml +++ b/tasks/verify-enterprise-contract/0.1/verify-enterprise-contract.yaml @@ -167,10 +167,6 @@ spec: - "--output" - "appstudio=$(results.TEST_OUTPUT.path)" - "--output" - - "data=$(params.HOMEDIR)/data.yaml" - - "--output" - - "attestation=$(params.HOMEDIR)/attestations.jsonl" - - "--output" - "json=$(params.HOMEDIR)/report-json.json" env: - name: SSL_CERT_DIR @@ -198,16 +194,6 @@ spec: command: [cat] args: - "$(params.HOMEDIR)/report.yaml" - - name: data - image: quay.io/enterprise-contract/ec-cli:snapshot - command: [cat] - args: - - "$(params.HOMEDIR)/data.yaml" - - name: attestations - image: quay.io/enterprise-contract/ec-cli:snapshot - command: [cat] - args: - - "$(params.HOMEDIR)/attestations.jsonl" - name: report-json image: quay.io/enterprise-contract/ec-cli:snapshot command: [cat]