mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Update vendored deps, including AWS SDK, openpgp, ftp, ...
This commit is contained in:
+10
-10
@@ -16,7 +16,7 @@ const opBatchDeleteAttributes = "BatchDeleteAttributes"
|
||||
|
||||
// BatchDeleteAttributesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the BatchDeleteAttributes operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -112,7 +112,7 @@ const opBatchPutAttributes = "BatchPutAttributes"
|
||||
|
||||
// BatchPutAttributesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the BatchPutAttributes operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -256,7 +256,7 @@ const opCreateDomain = "CreateDomain"
|
||||
|
||||
// CreateDomainRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateDomain operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -348,7 +348,7 @@ const opDeleteAttributes = "DeleteAttributes"
|
||||
|
||||
// DeleteAttributesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteAttributes operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -445,7 +445,7 @@ const opDeleteDomain = "DeleteDomain"
|
||||
|
||||
// DeleteDomainRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteDomain operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -528,7 +528,7 @@ const opDomainMetadata = "DomainMetadata"
|
||||
|
||||
// DomainMetadataRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DomainMetadata operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -609,7 +609,7 @@ const opGetAttributes = "GetAttributes"
|
||||
|
||||
// GetAttributesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetAttributes operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -700,7 +700,7 @@ const opListDomains = "ListDomains"
|
||||
|
||||
// ListDomainsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListDomains operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -840,7 +840,7 @@ const opPutAttributes = "PutAttributes"
|
||||
|
||||
// PutAttributesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutAttributes operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -966,7 +966,7 @@ const opSelect = "Select"
|
||||
|
||||
// SelectRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the Select operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To Amazon SimpleDB with the SDK use the New function to create
|
||||
// To contact Amazon SimpleDB with the SDK use the New function to create
|
||||
// a new service client. With that client you can make API requests to the service.
|
||||
// These clients are safe to use concurrently.
|
||||
//
|
||||
|
||||
+9
-4
@@ -1,7 +1,6 @@
|
||||
package simpledb
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"net/http"
|
||||
"testing"
|
||||
|
||||
@@ -27,7 +26,13 @@ func TestUnmarhsalErrorLeak(t *testing.T) {
|
||||
reader := req.HTTPResponse.Body.(*awstesting.ReadCloser)
|
||||
unmarshalError(req)
|
||||
|
||||
assert.NotNil(t, req.Error)
|
||||
assert.Equal(t, reader.Closed, true)
|
||||
assert.Equal(t, reader.Size, 0)
|
||||
if req.Error == nil {
|
||||
t.Errorf("expect error, got nil")
|
||||
}
|
||||
if !reader.Closed {
|
||||
t.Errorf("expect closed, was not")
|
||||
}
|
||||
if e, a := 0, reader.Size; e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
}
|
||||
|
||||
+24
-10
@@ -6,8 +6,6 @@ import (
|
||||
"net/http"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/awserr"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
@@ -45,9 +43,15 @@ func TestStatusCodeError(t *testing.T) {
|
||||
DomainName: aws.String("test-domain"),
|
||||
})
|
||||
|
||||
assert.Error(t, err)
|
||||
assert.Equal(t, test.code, err.(awserr.Error).Code())
|
||||
assert.Equal(t, test.message, err.(awserr.Error).Message())
|
||||
if err == nil {
|
||||
t.Fatalf("expect error, got nil")
|
||||
}
|
||||
if e, a := test.code, err.(awserr.Error).Code(); e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
if e, a := test.message, err.(awserr.Error).Message(); e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,12 +115,22 @@ func TestResponseError(t *testing.T) {
|
||||
DomainName: aws.String("test-domain"),
|
||||
})
|
||||
|
||||
assert.Error(t, err)
|
||||
assert.Equal(t, test.code, err.(awserr.Error).Code())
|
||||
assert.Equal(t, test.message, err.(awserr.Error).Message())
|
||||
if err == nil {
|
||||
t.Fatalf("expect error, got none")
|
||||
}
|
||||
if e, a := test.code, err.(awserr.Error).Code(); e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
if e, a := test.message, err.(awserr.Error).Message(); e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
if len(test.errors) > 0 {
|
||||
assert.Equal(t, test.requestID, err.(awserr.RequestFailure).RequestID())
|
||||
assert.Equal(t, test.scode, err.(awserr.RequestFailure).StatusCode())
|
||||
if e, a := test.requestID, err.(awserr.RequestFailure).RequestID(); e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
if e, a := test.scode, err.(awserr.RequestFailure).StatusCode(); e != a {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user