diff options
author | Justin Tobler <jtobler@gitlab.com> | 2023-04-29 06:56:28 +0300 |
---|---|---|
committer | Justin Tobler <jtobler@gitlab.com> | 2023-04-29 06:56:28 +0300 |
commit | 512b7d09c44261f4018bd0cb89470315207f474c (patch) | |
tree | 8240c1f3d80535e9defd166d2aab3b44f922740d | |
parent | 9484b14fbd6fb04e71aaa919904d08a0710498ae (diff) | |
parent | 21f31e9a3241d6d8c9fbaea2116d00f2af7e9366 (diff) |
Merge branch 'jc/add-test-to-list-blobs' into 'master'
blob: Add test to show revision and path can be used
See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5708
Merged-by: Justin Tobler <jtobler@gitlab.com>
Approved-by: Justin Tobler <jtobler@gitlab.com>
Co-authored-by: John Cai <jcai@gitlab.com>
-rw-r--r-- | internal/gitaly/service/blob/blobs_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/gitaly/service/blob/blobs_test.go b/internal/gitaly/service/blob/blobs_test.go index d256114be..a29babeea 100644 --- a/internal/gitaly/service/blob/blobs_test.go +++ b/internal/gitaly/service/blob/blobs_test.go @@ -83,6 +83,15 @@ func TestListBlobs(t *testing.T) { }, }, { + desc: "revision and path", + revisions: []string{ + "master:a", + }, + expectedBlobs: []*gitalypb.ListBlobsResponse_Blob{ + {Oid: blobAOID.String(), Size: blobASize}, + }, + }, + { desc: "single blob with paths", revisions: []string{ repoInfo.lfsPointers[0].Oid, |