From fbf5f360b13a0991a47d915327d592e58cbace5f Mon Sep 17 00:00:00 2001 From: droctothorpe Date: Thu, 15 Aug 2024 13:56:40 -0400 Subject: [PATCH] Fix unit test Signed-off-by: droctothorpe --- frontend/server/workflow-helper.test.ts | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/frontend/server/workflow-helper.test.ts b/frontend/server/workflow-helper.test.ts index 06e23fd1ee36..1dc8892b073f 100644 --- a/frontend/server/workflow-helper.test.ts +++ b/frontend/server/workflow-helper.test.ts @@ -147,6 +147,17 @@ describe('workflow-helper', () => { apiVersion: 'argoproj.io/v1alpha1', kind: 'Workflow', status: { + artifactRepositoryRef: { + artifactRepository: { archiveLogs: true }, + s3: { + accessKeySecret: { key: 'accessKey', name: 'accessKeyName' }, + bucket: 'bucket', + endpoint: 'minio-service.kubeflow', + insecure: true, + key: 'prefix/workflow-name/workflow-name-abc/some-artifact.csv', + secretKeySecret: { key: 'secretKey', name: 'secretKeyName' }, + }, + }, nodes: { 'workflow-name-abc': { outputs: { @@ -163,16 +174,8 @@ describe('workflow-helper', () => { }, }, { - archiveLogs: true, name: 'main.log', - s3: { - accessKeySecret: { key: 'accessKey', name: 'accessKeyName' }, - bucket: 'bucket', - endpoint: 'minio-service.kubeflow', - insecure: true, - key: 'prefix/workflow-name/workflow-name-abc/main.log', - secretKeySecret: { key: 'secretKey', name: 'secretKeyName' }, - }, + s3: { key: 'prefix/workflow-name/workflow-name-abc/main.log' }, }, ], },