Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1191)

Issue 98430044: ec2test: Create NICs on RunInstances time (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 11 months ago by dimitern
Modified:
9 years, 11 months ago
Reviewers:
mp+220257, niemeyer, jameinel
Visibility:
Public.

Description

ec2test: Create NICs on RunInstances time Improvements to the ec2test server's RunInstances: * When NetworkInterfaces are specified in RunInstances params, the interfaces get created and attached to the simulated instances. * When no network interfaces are specified, a new default one is created to simulate what EC2 does more closely. Also, if a default VPC is set in the test server using SetInitialAttributes(), a VPC and a subnet will be created in the server for them. Added live and local tests to confirm the changes. https://code.launchpad.net/~dimitern/goamz/110-ec2test-improvements/+merge/220257 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 38

Patch Set 2 : ec2test: Create NICs on RunInstances time #

Total comments: 2

Patch Set 3 : ec2test: Create NICs on RunInstances time #

Total comments: 14

Patch Set 4 : ec2test: Create NICs on RunInstances time #

Total comments: 10

Patch Set 5 : ec2test: Create NICs on RunInstances time #

Total comments: 6

Patch Set 6 : ec2test: Create NICs on RunInstances time #

Unified diffs Side-by-side diffs Delta from patch set Stats (+499 lines, -35 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ec2/ec2i_test.go View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ec2/ec2t_test.go View 1 2 2 chunks +175 lines, -0 lines 0 comments Download
M ec2/ec2test/server.go View 1 2 3 4 12 chunks +321 lines, -35 lines 0 comments Download

Messages

Total messages: 14
dimitern
Please take a look.
9 years, 11 months ago (2014-05-20 13:32:22 UTC) #1
niemeyer
I've provided some feedback below. I don't feel entitled to review the EC2-specific logic, though. ...
9 years, 11 months ago (2014-05-20 14:38:53 UTC) #2
dimitern
Please take a look. https://codereview.appspot.com/98430044/diff/1/ec2/ec2test/server.go File ec2/ec2test/server.go (right): https://codereview.appspot.com/98430044/diff/1/ec2/ec2test/server.go#newcode246 ec2/ec2test/server.go:246: case "defaultForAz", "default-for-az": On 2014/05/20 ...
9 years, 11 months ago (2014-05-20 15:41:43 UTC) #3
fwereade
As far as I can judge, this looks good, but I'd really like someone who ...
9 years, 11 months ago (2014-05-21 09:56:00 UTC) #4
dimitern
Please take a look. https://codereview.appspot.com/98430044/diff/20001/ec2/ec2test/server.go File ec2/ec2test/server.go (right): https://codereview.appspot.com/98430044/diff/20001/ec2/ec2test/server.go#newcode688 ec2/ec2test/server.go:688: return ifaces, limitToOneInstance On 2014/05/21 ...
9 years, 11 months ago (2014-05-21 13:54:21 UTC) #5
niemeyer
Thanks for the fixes. A few follow ups. Also, I'd still strongly recommend the review ...
9 years, 11 months ago (2014-05-21 15:25:36 UTC) #6
dimitern
Please take a look. https://codereview.appspot.com/98430044/diff/40001/ec2/ec2test/server.go File ec2/ec2test/server.go (right): https://codereview.appspot.com/98430044/diff/40001/ec2/ec2test/server.go#newcode405 ec2/ec2test/server.go:405: // subnet. On 2014/05/21 15:25:36, ...
9 years, 11 months ago (2014-05-21 15:46:48 UTC) #7
vladislav.klyachin
https://codereview.appspot.com/98430044/diff/40001/ec2/ec2test/server.go File ec2/ec2test/server.go (right): https://codereview.appspot.com/98430044/diff/40001/ec2/ec2test/server.go#newcode428 ec2/ec2test/server.go:428: } I would create several subnets here with different ...
9 years, 11 months ago (2014-05-21 15:59:23 UTC) #8
hazmat
two points of interest as i think the syntax delta maybe due to struct remapping ...
9 years, 11 months ago (2014-05-21 18:37:18 UTC) #9
dimitern
Please take a look. https://codereview.appspot.com/98430044/diff/40001/ec2/ec2test/server.go File ec2/ec2test/server.go (right): https://codereview.appspot.com/98430044/diff/40001/ec2/ec2test/server.go#newcode428 ec2/ec2test/server.go:428: } On 2014/05/21 15:59:22, vladislav.klyachin ...
9 years, 11 months ago (2014-05-22 05:58:42 UTC) #10
jameinel
I have a couple of comments, but I think this LGTM. I'd rather see it ...
9 years, 11 months ago (2014-05-22 06:28:22 UTC) #11
dimitern
https://codereview.appspot.com/98430044/diff/80001/ec2/ec2t_test.go File ec2/ec2t_test.go (right): https://codereview.appspot.com/98430044/diff/80001/ec2/ec2t_test.go#newcode121 ec2/ec2t_test.go:121: // its default subnets. If fails if there is ...
9 years, 11 months ago (2014-05-22 06:39:10 UTC) #12
niemeyer
LGTM, superficially. I don't feel able to rule out bugs in this logic, but you'll ...
9 years, 11 months ago (2014-05-22 15:00:20 UTC) #13
dimitern
9 years, 11 months ago (2014-05-22 15:24:17 UTC) #14
*** Submitted:

ec2test: Create NICs on RunInstances time

Improvements to the ec2test server's RunInstances:
 * When NetworkInterfaces are specified in
   RunInstances params, the interfaces get created
   and attached to the simulated instances.
 * When no network interfaces are specified, a new
   default one is created to simulate what EC2 does
   more closely.

Also, if a default VPC is set in the test server
using SetInitialAttributes(), a VPC and a subnet
will be created in the server for them.

Added live and local tests to confirm the changes.

R=niemeyer, fwereade, vladislav.klyachin, hazmat, jameinel
CC=
https://codereview.appspot.com/98430044
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b