Skip to content

Commit

Permalink
udpate test
Browse files Browse the repository at this point in the history
  • Loading branch information
VaniHaripriya committed Nov 19, 2024
1 parent 97287e3 commit f3877f4
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions backend/src/apiserver/server/artifact_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit f3877f4

Please sign in to comment.