update test data

Signed-off-by: aiordache <anca.iordache@docker.com>
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
aiordache 2020-06-04 17:09:41 +02:00 committed by Nicolas De Loof
parent 3194cc9b16
commit 2ea694a1c5
No known key found for this signature in database
GPG Key ID: 9858809D6F8F6E7E
3 changed files with 52 additions and 1 deletions

View File

@ -6,11 +6,12 @@ package amazon
import ( import (
context "context" context "context"
reflect "reflect"
cloudformation "github.com/aws/aws-sdk-go/service/cloudformation" cloudformation "github.com/aws/aws-sdk-go/service/cloudformation"
cloudformation0 "github.com/awslabs/goformation/v4/cloudformation" cloudformation0 "github.com/awslabs/goformation/v4/cloudformation"
docker "github.com/docker/ecs-plugin/pkg/docker" docker "github.com/docker/ecs-plugin/pkg/docker"
gomock "github.com/golang/mock/gomock" gomock "github.com/golang/mock/gomock"
reflect "reflect"
) )
// MockAPI is a mock of API interface // MockAPI is a mock of API interface
@ -324,3 +325,27 @@ func (mr *MockAPIMockRecorder) WaitStackComplete(arg0, arg1, arg2 interface{}) *
mr.mock.ctrl.T.Helper() mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitStackComplete", reflect.TypeOf((*MockAPI)(nil).WaitStackComplete), arg0, arg1, arg2) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitStackComplete", reflect.TypeOf((*MockAPI)(nil).WaitStackComplete), arg0, arg1, arg2)
} }
// LoadBalancerExists mocks base method
func (m *MockAPI) LoadBalancerExists(arg0 context.Context, arg1 string) (bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LoadBalancerExists", arg0, arg1)
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// LoadBalancerExists indicates an expected call of VpcExists
func (mr *MockAPIMockRecorder) LoadBalancerExists(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadBalancerExists", reflect.TypeOf((*MockAPI)(nil).LoadBalancerExists), arg0, arg1)
}
// GetLoadBalancerARN mocks base method
func (m *MockAPI) GetLoadBalancerARN(arg0 context.Context, arg1 string) (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetLoadBalancerARN", arg0)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}

View File

@ -8,6 +8,14 @@
"Ref": "ParameterClusterName" "Ref": "ParameterClusterName"
} }
] ]
},
"CreateLoadBalancer": {
"Fn::Equals": [
"",
{
"Ref": "ParameterLoadBalancerARN"
}
]
} }
}, },
"Parameters": { "Parameters": {
@ -15,6 +23,10 @@
"Description": "Name of the ECS cluster to deploy to (optional)", "Description": "Name of the ECS cluster to deploy to (optional)",
"Type": "String" "Type": "String"
}, },
"ParameterLoadBalancerARN": {
"Description": "Name of the LoadBalancer to connect to (optional)",
"Type": "String"
},
"ParameterSubnet1Id": { "ParameterSubnet1Id": {
"Description": "SubnetId, for Availability Zone 1 in the region in your VPC", "Description": "SubnetId, for Availability Zone 1 in the region in your VPC",
"Type": "AWS::EC2::Subnet::Id" "Type": "AWS::EC2::Subnet::Id"
@ -247,6 +259,7 @@
"Type": "AWS::EC2::SecurityGroupIngress" "Type": "AWS::EC2::SecurityGroupIngress"
}, },
"TestSimpleConvertNLB": { "TestSimpleConvertNLB": {
"Condition": "CreateLoadBalancer",
"Properties": { "Properties": {
"Name": "TestSimpleConvertNLB", "Name": "TestSimpleConvertNLB",
"Scheme": "internet-facing", "Scheme": "internet-facing",

View File

@ -8,6 +8,14 @@
"Ref": "ParameterClusterName" "Ref": "ParameterClusterName"
} }
] ]
},
"CreateLoadBalancer": {
"Fn::Equals": [
"",
{
"Ref": "ParameterLoadBalancerARN"
}
]
} }
}, },
"Parameters": { "Parameters": {
@ -15,6 +23,10 @@
"Description": "Name of the ECS cluster to deploy to (optional)", "Description": "Name of the ECS cluster to deploy to (optional)",
"Type": "String" "Type": "String"
}, },
"ParameterLoadBalancerARN": {
"Description": "Name of the LoadBalancer to connect to (optional)",
"Type": "String"
},
"ParameterSubnet1Id": { "ParameterSubnet1Id": {
"Description": "SubnetId, for Availability Zone 1 in the region in your VPC", "Description": "SubnetId, for Availability Zone 1 in the region in your VPC",
"Type": "AWS::EC2::Subnet::Id" "Type": "AWS::EC2::Subnet::Id"
@ -247,6 +259,7 @@
"Type": "AWS::EC2::SecurityGroupIngress" "Type": "AWS::EC2::SecurityGroupIngress"
}, },
"TestSimpleWithOverridesNLB": { "TestSimpleWithOverridesNLB": {
"Condition": "CreateLoadBalancer",
"Properties": { "Properties": {
"Name": "TestSimpleWithOverridesNLB", "Name": "TestSimpleWithOverridesNLB",
"Scheme": "internet-facing", "Scheme": "internet-facing",