From b33d873d82100fb86fb86b698262c35c2dc341ff Mon Sep 17 00:00:00 2001 From: Nathan Good Date: Wed, 7 Feb 2024 09:16:08 -0700 Subject: [PATCH 1/2] Fixed bad syntax on the OC apply command. Signed-off-by: Nathan Good --- src/commontasks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commontasks.ts b/src/commontasks.ts index c1ba433..441a2b0 100644 --- a/src/commontasks.ts +++ b/src/commontasks.ts @@ -16,7 +16,7 @@ export const DefaultCatalogSourceNamespace: string = 'openshift-marketplace'; */ export function ApplyObjectTask(scope: Construct, id: string, input: any): TaskBuilder { return openshift_client(scope, id).withStringParam(new ParameterBuilder('SCRIPT').withValue( - ['oc apply -f < Date: Wed, 7 Feb 2024 09:20:08 -0700 Subject: [PATCH 2/2] Updated snapshots for unit tests. Signed-off-by: Nathan Good --- test/__snapshots__/commonTasks.test.ts.snap | 20 +++++++++++-------- .../commonpipelines.test.ts.snap | 20 +++++++++++-------- 2 files changed, 24 insertions(+), 16 deletions(-) diff --git a/test/__snapshots__/commonTasks.test.ts.snap b/test/__snapshots__/commonTasks.test.ts.snap index 81de455..580e807 100644 --- a/test/__snapshots__/commonTasks.test.ts.snap +++ b/test/__snapshots__/commonTasks.test.ts.snap @@ -22,7 +22,7 @@ exports[`ApplyObjectTaskTest ApplyNamespaceObject 1`] = ` "params": [ { "name": "SCRIPT", - "value": "oc apply -f <