mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Fix the logic around the AWS instance test
We test that when we get instances with the same name that we get an error
This commit is contained in:
parent
cc81742e40
commit
e25c9f8644
@ -134,10 +134,12 @@ func TestList(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestIPAddress(t *testing.T) {
|
||||
// Note these instances have the same name
|
||||
// (we test that this produces an error)
|
||||
instances := make([]ec2.Instance, 2)
|
||||
instances[0].PrivateDNSName = "instance1"
|
||||
instances[0].PrivateIpAddress = "192.168.0.1"
|
||||
instances[1].PrivateDNSName = "instance2"
|
||||
instances[1].PrivateDNSName = "instance1"
|
||||
instances[1].PrivateIpAddress = "192.168.0.2"
|
||||
|
||||
aws1 := mockInstancesResp([]ec2.Instance{})
|
||||
|
Loading…
Reference in New Issue
Block a user