diff --git a/backend/src/apiserver/server/artifact_server_test.go b/backend/src/apiserver/server/artifact_server_test.go index b8edd4879c9..bc41608162e 100644 --- a/backend/src/apiserver/server/artifact_server_test.go +++ b/backend/src/apiserver/server/artifact_server_test.go @@ -77,26 +77,26 @@ func TestGetArtifacts(t *testing.T) { LastUpdatedAt: timestamppb.New(time.Unix(2, 0)), }, }, - // { - // name: "Fetch artifact 2", - // artifactRequest: &apiv2beta1.GetArtifactRequest{ - // ArtifactId: "2", - // View: apiv2beta1.GetArtifactRequest_RENDER, - // }, - // expectedArtifact: &apiv2beta1.Artifact{ - // ArtifactId: "2", - // StorageProvider: "s3", - // StoragePath: "pipeline/some-pipeline-id/task/key0", - // Uri: "s3://test-bucket/pipeline/some-pipeline-id/task/key0", - // DownloadUrl: "dummy-render-url", // defined in object_store_fake - // Namespace: "test-namespace", - // ArtifactType: "1", - // ArtifactSize: 123, + { + name: "Fetch artifact 2", + artifactRequest: &apiv2beta1.GetArtifactRequest{ + ArtifactId: "0", + View: apiv2beta1.GetArtifactRequest_RENDER, + }, + expectedArtifact: &apiv2beta1.Artifact{ + ArtifactId: "0", + StorageProvider: "s3", + StoragePath: "pipeline/some-pipeline-id/task/key0", + Uri: "s3://test-bucket/pipeline/some-pipeline-id/task/key0", + DownloadUrl: "dummy-render-url", // defined in object_store_fake + Namespace: "test-namespace", + ArtifactType: "1", + ArtifactSize: 123, - // CreatedAt: timestamppb.New(time.Unix(1, 0)), - // LastUpdatedAt: timestamppb.New(time.Unix(1, 0)), - // }, - // }, + CreatedAt: timestamppb.New(time.Unix(1, 0)), + LastUpdatedAt: timestamppb.New(time.Unix(1, 0)), + }, + }, { name: "Fetch artifact 1 - View unspecified", artifactRequest: &apiv2beta1.GetArtifactRequest{