You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							33 lines
						
					
					
						
							626 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							33 lines
						
					
					
						
							626 B
						
					
					
				
								package s3api
							 | 
						|
								
							 | 
						|
								import (
							 | 
						|
									"github.com/seaweedfs/seaweedfs/weed/s3api/s3err"
							 | 
						|
									"testing"
							 | 
						|
									"time"
							 | 
						|
								)
							 | 
						|
								
							 | 
						|
								func TestCopyObjectResponse(t *testing.T) {
							 | 
						|
								
							 | 
						|
									// https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html
							 | 
						|
								
							 | 
						|
									response := CopyObjectResult{
							 | 
						|
										ETag:         "12345678",
							 | 
						|
										LastModified: time.Now(),
							 | 
						|
									}
							 | 
						|
								
							 | 
						|
									println(string(s3err.EncodeXMLResponse(response)))
							 | 
						|
								
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func TestCopyPartResponse(t *testing.T) {
							 | 
						|
								
							 | 
						|
									// https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html
							 | 
						|
								
							 | 
						|
									response := CopyPartResult{
							 | 
						|
										ETag:         "12345678",
							 | 
						|
										LastModified: time.Now(),
							 | 
						|
									}
							 | 
						|
								
							 | 
						|
									println(string(s3err.EncodeXMLResponse(response)))
							 | 
						|
								
							 | 
						|
								}
							 |