@@ -7815,53 +7815,6 @@ func TestManifestStore_generateDescriptor(t *testing.T) {
7815
7815
wantDescriptor : ocispec.Descriptor {},
7816
7816
wantErr : true ,
7817
7817
},
7818
- {
7819
- name : "resp with body, missing Docker-Content-Digest" ,
7820
- resp : & http.Response {
7821
- Header : http.Header {
7822
- "Content-Type" : []string {mediaType },
7823
- },
7824
- ContentLength : dataSize ,
7825
- Request : & http.Request {
7826
- Method : http .MethodGet ,
7827
- URL : & url.URL {Path : "/test" },
7828
- },
7829
- Body : io .NopCloser (bytes .NewReader (data )),
7830
- },
7831
- ref : registry.Reference {
7832
- Registry : "registry.example.com" ,
7833
- Repository : "hello-world" ,
7834
- Reference : dataDigest .String (),
7835
- },
7836
- httpMethod : http .MethodGet ,
7837
- wantDescriptor : ocispec.Descriptor {
7838
- MediaType : mediaType ,
7839
- Digest : dataDigest ,
7840
- Size : dataSize ,
7841
- },
7842
- wantErr : false ,
7843
- },
7844
- {
7845
- name : "resp without body, missing Docker-Content-Digest" ,
7846
- resp : & http.Response {
7847
- Header : http.Header {
7848
- "Content-Type" : []string {mediaType },
7849
- },
7850
- ContentLength : dataSize ,
7851
- Request : & http.Request {
7852
- Method : http .MethodGet ,
7853
- URL : & url.URL {Path : "/test" },
7854
- },
7855
- },
7856
- ref : registry.Reference {
7857
- Registry : "registry.example.com" ,
7858
- Repository : "hello-world" ,
7859
- Reference : dataDigest .String (),
7860
- },
7861
- httpMethod : http .MethodGet ,
7862
- wantDescriptor : ocispec.Descriptor {},
7863
- wantErr : true ,
7864
- },
7865
7818
{
7866
7819
name : "failed to read resp with body, missing Docker-Content-Digest" ,
7867
7820
resp : & http.Response {
0 commit comments