From 4d4a267db5cd3584b05fd7a412e02453d62e2fc5 Mon Sep 17 00:00:00 2001 From: Johnny Bieren Date: Mon, 21 Oct 2024 11:33:58 -0400 Subject: [PATCH] fix: update release multiarch data fields This commit fixes two data fields in the multiarch advisories release pipeline test. The product_id field is changed from a string to an int, and the component source is removed from the data section of the ReleasePlanAdmission. The same component source information already appears to be present in the create snapshot function. Signed-off-by: Johnny Bieren --- tests/release/pipelines/multiarch_advisories.go | 7 +------ tests/release/pipelines/rh_advisories.go | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/release/pipelines/multiarch_advisories.go b/tests/release/pipelines/multiarch_advisories.go index 01bf98761e..fbb89051c3 100644 --- a/tests/release/pipelines/multiarch_advisories.go +++ b/tests/release/pipelines/multiarch_advisories.go @@ -235,11 +235,6 @@ func createMultiArchReleasePlanAdmission(multiarchRPAName string, managedFw fram "name": multiarchComponentName, "repository": "registry.stage.redhat.io/rhtap/konflux-release-e2e", "tags": []string{"latest", "latest-{{ timestamp }}"}, - "source": map[string]interface{}{ - "git": map[string]interface{}{ - "url": multiarchGitSourceURL, - }, - }, }, }, }, @@ -249,7 +244,7 @@ func createMultiArchReleasePlanAdmission(multiarchRPAName string, managedFw fram }, "releaseNotes": map[string]interface{}{ "cpe": "cpe:/a:example.com", - "product_id": "555", + "product_id": 555, "product_name": "test product", "product_stream": "rhtas-tp1", "product_version": "v1.0", diff --git a/tests/release/pipelines/rh_advisories.go b/tests/release/pipelines/rh_advisories.go index fe3cf05fb3..884bd6a866 100644 --- a/tests/release/pipelines/rh_advisories.go +++ b/tests/release/pipelines/rh_advisories.go @@ -249,7 +249,7 @@ func createADVSReleasePlanAdmission(advsRPAName string, managedFw framework.Fram }, "releaseNotes": map[string]interface{}{ "cpe": "cpe:/a:example.com", - "product_id": "555", + "product_id": 555, "product_name": "test product", "product_stream": "rhtas-tp1", "product_version": "v1.0",