From 834cd44946451d14a3dee49f05ba8f1982021167 Mon Sep 17 00:00:00 2001 From: Mateusz Szostok Date: Fri, 11 Mar 2022 10:54:13 +0100 Subject: [PATCH] Add fake value expectation in e2e test till #657 is not resolved (#660) --- test/e2e/action_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/e2e/action_test.go b/test/e2e/action_test.go index 1ca81eb03..add70e865 100644 --- a/test/e2e/action_test.go +++ b/test/e2e/action_test.go @@ -266,6 +266,11 @@ var _ = Describe("Action", func() { By("4.1 Check uploaded TypeInstances") expUploadTIBackend := &hublocalgraphql.TypeInstanceBackendReference{ID: helmStorageTI.ID, Abstract: false} + + // TODO(https://github.com/capactio/capact/issues/634): remove after using a real backend. + // for now, the Local Hub returns backend id under `key` property. + implIndicatorValue = expUploadTIBackend.ID + uploadedTI, cleanupUploaded := getUploadedTypeInstanceByValue(ctx, hubClient, implIndicatorValue) defer cleanupUploaded() // We need to clean it up as it's not deleted when Action is deleted. Expect(uploadedTI.Backend).Should(Equal(expUploadTIBackend))