mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
golint fixes for aws cloudprovider
This commit is contained in:
@@ -43,7 +43,7 @@ func TestReadAWSCloudConfig(t *testing.T) {
|
||||
name string
|
||||
|
||||
reader io.Reader
|
||||
aws AWSServices
|
||||
aws Services
|
||||
|
||||
expectError bool
|
||||
zone string
|
||||
@@ -198,7 +198,7 @@ func TestNewAWSCloud(t *testing.T) {
|
||||
name string
|
||||
|
||||
reader io.Reader
|
||||
awsServices AWSServices
|
||||
awsServices Services
|
||||
|
||||
expectError bool
|
||||
region string
|
||||
@@ -508,7 +508,7 @@ func (a *FakeASG) DescribeAutoScalingGroups(*autoscaling.DescribeAutoScalingGrou
|
||||
panic("Not implemented")
|
||||
}
|
||||
|
||||
func mockInstancesResp(selfInstance *ec2.Instance, instances []*ec2.Instance) (*AWSCloud, *FakeAWSServices) {
|
||||
func mockInstancesResp(selfInstance *ec2.Instance, instances []*ec2.Instance) (*Cloud, *FakeAWSServices) {
|
||||
awsServices := NewFakeAWSServices()
|
||||
awsServices.instances = instances
|
||||
awsServices.selfInstance = selfInstance
|
||||
@@ -519,7 +519,7 @@ func mockInstancesResp(selfInstance *ec2.Instance, instances []*ec2.Instance) (*
|
||||
return awsCloud, awsServices
|
||||
}
|
||||
|
||||
func mockAvailabilityZone(availabilityZone string) *AWSCloud {
|
||||
func mockAvailabilityZone(availabilityZone string) *Cloud {
|
||||
awsServices := NewFakeAWSServices().withAz(availabilityZone)
|
||||
awsCloud, err := newAWSCloud(nil, awsServices)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user