Commit e25c9f86 authored by Justin Santa Barbara's avatar Justin Santa Barbara

Fix the logic around the AWS instance test

We test that when we get instances with the same name that we get an error
parent cc81742e
......@@ -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{})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment