@@ -45,16 +45,8 @@ module S3
45
45
'rw0nS41rawnLDzkf+PKXmmt/uEi4bzvNMr72o=' ,
46
46
'x-amz-request-id' => 'BE9C18E622969B17'
47
47
} ,
48
- body : <<-XML )
49
- <?xml version="1.0" encoding="UTF-8"?>
50
- <ListAllMyBucketsResult xmlns=\" http://s3.amazonaws.com/doc/2006-03-01/\" >
51
- <Buckets>
52
- <Bucket>
53
- <Name>aws-sdk-ruby</Name>
54
- </Bucket>
55
- </Buckets>
56
- </ListAllMyBucketsResult>
57
- XML
48
+ body : ''
49
+ )
58
50
Seahorse ::Client ::Response . new ( context : context )
59
51
end
60
52
resp = s3 . list_buckets
@@ -431,14 +423,14 @@ module S3
431
423
status_code : 409 ,
432
424
headers : { } ,
433
425
body : <<-XML . strip
434
- <?xml version="1.0" encoding="UTF-8"?>
435
- <Error>
436
- <Code>BucketNotEmpty</Code>
437
- <Message>The bucket you tried to delete is not empty</Message>
438
- <BucketName>aws-sdk</BucketName>
439
- <RequestId>740BE6AB575EACED</RequestId>
440
- <HostId>MQVg1RMI+d93Hps1E8qpIuDb9Gd2TzkDhm0wE40981DjxSHP1UfLBB7qOAlwAqJB</HostId>
441
- </Error>
426
+ <?xml version="1.0" encoding="UTF-8"?>
427
+ <Error>
428
+ <Code>BucketNotEmpty</Code>
429
+ <Message>The bucket you tried to delete is not empty</Message>
430
+ <BucketName>aws-sdk</BucketName>
431
+ <RequestId>740BE6AB575EACED</RequestId>
432
+ <HostId>MQVg1RMI+d93Hps1E8qpIuDb9Gd2TzkDhm0wE40981DjxSHP1UfLBB7qOAlwAqJB</HostId>
433
+ </Error>
442
434
XML
443
435
)
444
436
Seahorse ::Client ::Response . new ( context : context )
@@ -460,8 +452,8 @@ module S3
460
452
status_code : 200 ,
461
453
headers : { } ,
462
454
body : <<-XML . strip
463
- <?xml version="1.0" encoding="UTF-8"?>
464
- <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/">EU</LocationConstraint>
455
+ <?xml version="1.0" encoding="UTF-8"?>
456
+ <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/">EU</LocationConstraint>
465
457
XML
466
458
)
467
459
Seahorse ::Client ::Response . new ( context : context )
@@ -477,8 +469,8 @@ module S3
477
469
status_code : 200 ,
478
470
headers : { } ,
479
471
body : <<-XML . strip
480
- <?xml version="1.0" encoding="UTF-8"?>
481
- <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
472
+ <?xml version="1.0" encoding="UTF-8"?>
473
+ <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
482
474
XML
483
475
)
484
476
Seahorse ::Client ::Response . new ( context : context )
@@ -512,19 +504,19 @@ module S3
512
504
status_code : 200 ,
513
505
headers : { } ,
514
506
body : <<-XML . strip )
515
- <?xml version="1.0" encoding="UTF-8"?>
516
- <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
517
- <Prefix>a%26</Prefix>
518
- <Delimiter>b%26</Delimiter>
519
- <Marker>c%26</Marker>
520
- <NextMarker>d%26</NextMarker>
521
- <Contents>
522
- <Key>e%26</Key>
523
- </Contents>
524
- <CommonPrefixes>
525
- <Prefix>f%26</Prefix>
526
- </CommonPrefixes>
527
- </ListBucketResult>
507
+ <?xml version="1.0" encoding="UTF-8"?>
508
+ <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
509
+ <Prefix>a%26</Prefix>
510
+ <Delimiter>b%26</Delimiter>
511
+ <Marker>c%26</Marker>
512
+ <NextMarker>d%26</NextMarker>
513
+ <Contents>
514
+ <Key>e%26</Key>
515
+ </Contents>
516
+ <CommonPrefixes>
517
+ <Prefix>f%26</Prefix>
518
+ </CommonPrefixes>
519
+ </ListBucketResult>
528
520
XML
529
521
Seahorse ::Client ::Response . new ( context : context )
530
522
end
@@ -549,12 +541,12 @@ module S3
549
541
status_code : 200 ,
550
542
headers : { } ,
551
543
body : <<-XML . strip )
552
- <?xml version="1.0" encoding="UTF-8"?>
553
- <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
554
- <Contents>
555
- <Key>a%26</Key>
556
- </Contents>
557
- </ListBucketResult>
544
+ <?xml version="1.0" encoding="UTF-8"?>
545
+ <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
546
+ <Contents>
547
+ <Key>a%26</Key>
548
+ </Contents>
549
+ </ListBucketResult>
558
550
XML
559
551
Seahorse ::Client ::Response . new ( context : context )
560
552
end
@@ -570,22 +562,22 @@ module S3
570
562
status_code : 200 ,
571
563
headers : { } ,
572
564
body : <<-XML . strip )
573
- <?xml version="1.0" encoding="UTF-8"?>
574
- <ListVersionsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01">
575
- <Prefix>a%26</Prefix>
576
- <Delimiter>b%26</Delimiter>
577
- <KeyMarker>c%26</KeyMarker>
578
- <NextKeyMarker>d%26</NextKeyMarker>
579
- <Version>
580
- <Key>e%26</Key>
581
- </Version>
582
- <DeleteMarker>
583
- <Key>f%26</Key>
584
- </DeleteMarker>
585
- <CommonPrefixes>
586
- <Prefix>g%26</Prefix>
587
- </CommonPrefixes>
588
- </ListVersionsResult>
565
+ <?xml version="1.0" encoding="UTF-8"?>
566
+ <ListVersionsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01">
567
+ <Prefix>a%26</Prefix>
568
+ <Delimiter>b%26</Delimiter>
569
+ <KeyMarker>c%26</KeyMarker>
570
+ <NextKeyMarker>d%26</NextKeyMarker>
571
+ <Version>
572
+ <Key>e%26</Key>
573
+ </Version>
574
+ <DeleteMarker>
575
+ <Key>f%26</Key>
576
+ </DeleteMarker>
577
+ <CommonPrefixes>
578
+ <Prefix>g%26</Prefix>
579
+ </CommonPrefixes>
580
+ </ListVersionsResult>
589
581
XML
590
582
Seahorse ::Client ::Response . new ( context : context )
591
583
end
@@ -610,19 +602,19 @@ module S3
610
602
status_code : 200 ,
611
603
headers : { } ,
612
604
body : <<-XML . strip )
613
- <?xml version="1.0" encoding="UTF-8"?>
614
- <ListVersionsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01">
615
- <Prefix>a%26</Prefix>
616
- <Delimiter>b%26</Delimiter>
617
- <KeyMarker>c%26</KeyMarker>
618
- <NextKeyMarker>d%26</NextKeyMarker>
619
- <Upload>
620
- <Key>e%26</Key>
621
- </Upload>
622
- <CommonPrefixes>
623
- <Prefix>f%26</Prefix>
624
- </CommonPrefixes>
625
- </ListVersionsResult>
605
+ <?xml version="1.0" encoding="UTF-8"?>
606
+ <ListVersionsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01">
607
+ <Prefix>a%26</Prefix>
608
+ <Delimiter>b%26</Delimiter>
609
+ <KeyMarker>c%26</KeyMarker>
610
+ <NextKeyMarker>d%26</NextKeyMarker>
611
+ <Upload>
612
+ <Key>e%26</Key>
613
+ </Upload>
614
+ <CommonPrefixes>
615
+ <Prefix>f%26</Prefix>
616
+ </CommonPrefixes>
617
+ </ListVersionsResult>
626
618
XML
627
619
Seahorse ::Client ::Response . new ( context : context )
628
620
end
@@ -694,17 +686,17 @@ module S3
694
686
status_code : 200 ,
695
687
headers : { } ,
696
688
body : <<-XML )
697
- <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
698
- <Contents>
699
- <Key>prefix+suffix</Key>
700
- </Contents>
701
- <Contents>
702
- <Key>prefix%2Bsuffix</Key>
703
- </Contents>
704
- <Contents>
705
- <Key>prefix%20suffix</Key>
706
- </Contents>
707
- </ListBucketResult>
689
+ <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
690
+ <Contents>
691
+ <Key>prefix+suffix</Key>
692
+ </Contents>
693
+ <Contents>
694
+ <Key>prefix%2Bsuffix</Key>
695
+ </Contents>
696
+ <Contents>
697
+ <Key>prefix%20suffix</Key>
698
+ </Contents>
699
+ </ListBucketResult>
708
700
XML
709
701
Seahorse ::Client ::Response . new ( context : context )
710
702
end
@@ -789,13 +781,13 @@ module S3
789
781
client . handle ( step : :send ) do |context |
790
782
context . http_response . signal_headers ( 200 , { } )
791
783
context . http_response . signal_data ( <<-XML . strip )
792
- <?xml version="1.0" encoding="UTF-8"?>
793
- <Error>
794
- <Code>InternalError</Code>
795
- <Message>We encountered an internal error. Please try again.</Message>
796
- <RequestId>656c76696e6727732072657175657374</RequestId>
797
- <HostId>Uuag1LuByRx9e6j5Onimru9pO4ZVKnJ2Qz7/C1NPcfTWAtRPfTaOFg==</HostId>
798
- </Error>
784
+ <?xml version="1.0" encoding="UTF-8"?>
785
+ <Error>
786
+ <Code>InternalError</Code>
787
+ <Message>We encountered an internal error. Please try again.</Message>
788
+ <RequestId>656c76696e6727732072657175657374</RequestId>
789
+ <HostId>Uuag1LuByRx9e6j5Onimru9pO4ZVKnJ2Qz7/C1NPcfTWAtRPfTaOFg==</HostId>
790
+ </Error>
799
791
XML
800
792
context . http_response . signal_done
801
793
Seahorse ::Client ::Response . new ( context : context )
0 commit comments