Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
e25c9f86
Commit
e25c9f86
authored
Mar 04, 2015
by
Justin Santa Barbara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
aws_test.go
pkg/cloudprovider/aws/aws_test.go
+3
-1
No files found.
pkg/cloudprovider/aws/aws_test.go
View file @
e25c9f86
...
...
@@ -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
=
"instance
2
"
instances
[
1
]
.
PrivateDNSName
=
"instance
1
"
instances
[
1
]
.
PrivateIpAddress
=
"192.168.0.2"
aws1
:=
mockInstancesResp
([]
ec2
.
Instance
{})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment