Skip to content

Commit ba268e3

Browse files
committed
Generate secretsmanager mocks
1 parent c4abc77 commit ba268e3

File tree

4 files changed

+875
-0
lines changed

4 files changed

+875
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Copyright 2015-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License"). You may
4+
// not use this file except in compliance with the License. A copy of the
5+
// License is located at
6+
//
7+
// http://aws.amazon.com/apache2.0/
8+
//
9+
// or in the "license" file accompanying this file. This file is distributed
10+
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11+
// express or implied. See the License for the specific language governing
12+
// permissions and limitations under the License.
13+
14+
package secretsmanager
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright 2015-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License"). You may
4+
// not use this file except in compliance with the License. A copy of the
5+
// License is located at
6+
//
7+
// http://aws.amazon.com/apache2.0/
8+
//
9+
// or in the "license" file accompanying this file. This file is distributed
10+
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11+
// express or implied. See the License for the specific language governing
12+
// permissions and limitations under the License.
13+
14+
package secretsmanager
15+
16+
//go:generate mockgen.sh github.com/aws/aws-sdk-go/service/secretsmanager/secretsmanageriface SecretsManagerAPI mock/sdk/secretsmanageriface_mock.go
17+
//go:generate mockgen.sh github.com/aws/amazon-ecs-cli/ecs-cli/modules/clients/aws/secretsmanager SMClient mock/client.go
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
// Copyright 2015-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License"). You may
4+
// not use this file except in compliance with the License. A copy of the
5+
// License is located at
6+
//
7+
// http://aws.amazon.com/apache2.0/
8+
//
9+
// or in the "license" file accompanying this file. This file is distributed
10+
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11+
// express or implied. See the License for the specific language governing
12+
// permissions and limitations under the License.
13+
14+
// Automatically generated by MockGen. DO NOT EDIT!
15+
// Source: github.com/aws/amazon-ecs-cli/ecs-cli/modules/clients/aws/secretsmanager (interfaces: SMClient)
16+
17+
package mock_secretsmanager
18+
19+
import (
20+
secretsmanager "github.com/aws/aws-sdk-go/service/secretsmanager"
21+
gomock "github.com/golang/mock/gomock"
22+
)
23+
24+
// Mock of SMClient interface
25+
type MockSMClient struct {
26+
ctrl *gomock.Controller
27+
recorder *_MockSMClientRecorder
28+
}
29+
30+
// Recorder for MockSMClient (not exported)
31+
type _MockSMClientRecorder struct {
32+
mock *MockSMClient
33+
}
34+
35+
func NewMockSMClient(ctrl *gomock.Controller) *MockSMClient {
36+
mock := &MockSMClient{ctrl: ctrl}
37+
mock.recorder = &_MockSMClientRecorder{mock}
38+
return mock
39+
}
40+
41+
func (_m *MockSMClient) EXPECT() *_MockSMClientRecorder {
42+
return _m.recorder
43+
}
44+
45+
func (_m *MockSMClient) CreateSecret(_param0 secretsmanager.CreateSecretInput) (*secretsmanager.CreateSecretOutput, error) {
46+
ret := _m.ctrl.Call(_m, "CreateSecret", _param0)
47+
ret0, _ := ret[0].(*secretsmanager.CreateSecretOutput)
48+
ret1, _ := ret[1].(error)
49+
return ret0, ret1
50+
}
51+
52+
func (_mr *_MockSMClientRecorder) CreateSecret(arg0 interface{}) *gomock.Call {
53+
return _mr.mock.ctrl.RecordCall(_mr.mock, "CreateSecret", arg0)
54+
}
55+
56+
func (_m *MockSMClient) ListSecrets(_param0 *string) (*secretsmanager.ListSecretsOutput, error) {
57+
ret := _m.ctrl.Call(_m, "ListSecrets", _param0)
58+
ret0, _ := ret[0].(*secretsmanager.ListSecretsOutput)
59+
ret1, _ := ret[1].(error)
60+
return ret0, ret1
61+
}
62+
63+
func (_mr *_MockSMClientRecorder) ListSecrets(arg0 interface{}) *gomock.Call {
64+
return _mr.mock.ctrl.RecordCall(_mr.mock, "ListSecrets", arg0)
65+
}

0 commit comments

Comments
 (0)