@@ -115,10 +115,6 @@ var _ = Describe("Check", func() {
115
115
116
116
BeforeEach (func () {
117
117
registry .AppendHandlers (
118
- ghttp .CombineHandlers (
119
- ghttp .VerifyRequest ("GET" , "/v2/" ),
120
- ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
121
- ),
122
118
ghttp .CombineHandlers (
123
119
ghttp .VerifyRequest ("GET" , "/v2/" ),
124
120
ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
@@ -129,10 +125,6 @@ var _ = Describe("Check", func() {
129
125
"Content-Length" : LATEST_FAKE_HEADERS ["Content-Length" ],
130
126
}),
131
127
),
132
- ghttp .CombineHandlers (
133
- ghttp .VerifyRequest ("GET" , "/v2/" ),
134
- ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
135
- ),
136
128
ghttp .CombineHandlers (
137
129
ghttp .VerifyRequest ("GET" , "/v2/fake-image/manifests/latest" ),
138
130
ghttp .RespondWith (http .StatusOK , `{"fake":"manifest"}` , http.Header {
@@ -160,10 +152,6 @@ var _ = Describe("Check", func() {
160
152
registry = ghttp .NewTLSServer ()
161
153
162
154
registry .AppendHandlers (
163
- ghttp .CombineHandlers (
164
- ghttp .VerifyRequest ("GET" , "/v2/" ),
165
- ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
166
- ),
167
155
ghttp .CombineHandlers (
168
156
ghttp .VerifyRequest ("GET" , "/v2/" ),
169
157
ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
@@ -230,10 +218,6 @@ var _ = Describe("Check", func() {
230
218
registry = ghttp .NewServer ()
231
219
232
220
registry .AppendHandlers (
233
- ghttp .CombineHandlers (
234
- ghttp .VerifyRequest ("GET" , "/v2/" ),
235
- ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
236
- ),
237
221
ghttp .CombineHandlers (
238
222
ghttp .VerifyRequest ("GET" , "/v2/" ),
239
223
ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
@@ -264,10 +248,6 @@ var _ = Describe("Check", func() {
264
248
Context ("which has the image" , func () {
265
249
BeforeEach (func () {
266
250
mirror .AppendHandlers (
267
- ghttp .CombineHandlers (
268
- ghttp .VerifyRequest ("GET" , "/v2/" ),
269
- ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
270
- ),
271
251
ghttp .CombineHandlers (
272
252
ghttp .VerifyRequest ("GET" , "/v2/" ),
273
253
ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
@@ -293,10 +273,6 @@ var _ = Describe("Check", func() {
293
273
Context ("which is missing the image" , func () {
294
274
BeforeEach (func () {
295
275
mirror .AppendHandlers (
296
- ghttp .CombineHandlers (
297
- ghttp .VerifyRequest ("GET" , "/v2/" ),
298
- ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
299
- ),
300
276
ghttp .CombineHandlers (
301
277
ghttp .VerifyRequest ("GET" , "/v2/" ),
302
278
ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
@@ -404,10 +380,6 @@ var _ = Describe("Check", func() {
404
380
Context ("which has the image" , func () {
405
381
BeforeEach (func () {
406
382
mirror .AppendHandlers (
407
- ghttp .CombineHandlers (
408
- ghttp .VerifyRequest ("GET" , "/v2/" ),
409
- ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
410
- ),
411
383
ghttp .CombineHandlers (
412
384
ghttp .VerifyRequest ("GET" , "/v2/" ),
413
385
ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
@@ -438,10 +410,6 @@ var _ = Describe("Check", func() {
438
410
Context ("which is missing the image" , func () {
439
411
BeforeEach (func () {
440
412
mirror .AppendHandlers (
441
- ghttp .CombineHandlers (
442
- ghttp .VerifyRequest ("GET" , "/v2/" ),
443
- ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
444
- ),
445
413
ghttp .CombineHandlers (
446
414
ghttp .VerifyRequest ("GET" , "/v2/" ),
447
415
ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
@@ -544,10 +512,6 @@ var _ = Describe("Check", func() {
544
512
Context ("which has the image" , func () {
545
513
BeforeEach (func () {
546
514
mirror .AppendHandlers (
547
- ghttp .CombineHandlers (
548
- ghttp .VerifyRequest ("GET" , "/v2/" ),
549
- ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
550
- ),
551
515
ghttp .CombineHandlers (
552
516
ghttp .VerifyRequest ("GET" , "/v2/" ),
553
517
ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
@@ -556,10 +520,6 @@ var _ = Describe("Check", func() {
556
520
ghttp .VerifyRequest ("HEAD" , "/v2/library/fake-image/manifests/latest" ),
557
521
ghttp .RespondWith (http .StatusOK , `` , LATEST_FAKE_HEADERS ),
558
522
),
559
- ghttp .CombineHandlers (
560
- ghttp .VerifyRequest ("GET" , "/v2/" ),
561
- ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
562
- ),
563
523
ghttp .CombineHandlers (
564
524
ghttp .VerifyRequest ("HEAD" , "/v2/library/fake-image/manifests/" + OLDER_FAKE_DIGEST ),
565
525
ghttp .RespondWith (http .StatusOK , `` , OLDER_FAKE_HEADERS ),
@@ -584,10 +544,6 @@ var _ = Describe("Check", func() {
584
544
Context ("which is missing the image" , func () {
585
545
BeforeEach (func () {
586
546
mirror .AppendHandlers (
587
- ghttp .CombineHandlers (
588
- ghttp .VerifyRequest ("GET" , "/v2/" ),
589
- ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
590
- ),
591
547
ghttp .CombineHandlers (
592
548
ghttp .VerifyRequest ("GET" , "/v2/" ),
593
549
ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
@@ -680,10 +636,6 @@ var _ = Describe("Check", func() {
680
636
Context ("which has the image" , func () {
681
637
BeforeEach (func () {
682
638
mirror .AppendHandlers (
683
- ghttp .CombineHandlers (
684
- ghttp .VerifyRequest ("GET" , "/v2/" ),
685
- ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
686
- ),
687
639
ghttp .CombineHandlers (
688
640
ghttp .VerifyRequest ("GET" , "/v2/" ),
689
641
ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
@@ -692,10 +644,6 @@ var _ = Describe("Check", func() {
692
644
ghttp .VerifyRequest ("HEAD" , "/v2/library/fake-image/manifests/latest" ),
693
645
ghttp .RespondWith (http .StatusOK , `` , LATEST_FAKE_HEADERS ),
694
646
),
695
- ghttp .CombineHandlers (
696
- ghttp .VerifyRequest ("GET" , "/v2/" ),
697
- ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
698
- ),
699
647
ghttp .CombineHandlers (
700
648
ghttp .VerifyRequest ("HEAD" , "/v2/library/fake-image/manifests/" + req .Version .Digest ),
701
649
ghttp .RespondWith (http .StatusNotFound , `{"errors":[{"code": "MANIFEST_UNKNOWN", "message": "ruh roh", "detail": "not here"}]}` ),
@@ -717,10 +665,6 @@ var _ = Describe("Check", func() {
717
665
Context ("which is missing the image" , func () {
718
666
BeforeEach (func () {
719
667
mirror .AppendHandlers (
720
- ghttp .CombineHandlers (
721
- ghttp .VerifyRequest ("GET" , "/v2/" ),
722
- ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
723
- ),
724
668
ghttp .CombineHandlers (
725
669
ghttp .VerifyRequest ("GET" , "/v2/" ),
726
670
ghttp .RespondWith (http .StatusOK , `welcome to zombocom` ),
0 commit comments