Merge lp:~gz/goamz/tests_amazon_region into lp:goamz
Proposed by
Martin Packman
Status: | Needs review |
---|---|
Proposed branch: | lp:~gz/goamz/tests_amazon_region |
Merge into: | lp:goamz |
Diff against target: |
501 lines (+311/-29) 7 files modified
ec2/ec2_test.go (+7/-7) ec2/ec2i_test.go (+17/-7) ec2/ec2t_test.go (+21/-9) ec2/ec2test/server.go (+1/-1) testutil/streams.go (+91/-0) testutil/streams_test.go (+150/-0) testutil/suite.go (+24/-5) |
To merge this branch: | bzr merge lp:~gz/goamz/tests_amazon_region |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
goamz maintainers | Pending | ||
Review via email: mp+192269@code.launchpad.net |
Description of the change
Enable running live tests against any EC2 region
There are two stages:
* Making the test -amazon flag take a region name
* Looking up real amis with simplestreams and using those in tests
Perhaps leaving the -amazon flag as an enabling bool, and setting a new
flag just for selecting a region that defaults to us-east-1 would be
better.
Both the simplestreams code and required test changes are pretty ugly,
a bigger rewrite would help to clean up the tests.
To post a comment you must log in.
Unmerged revisions
- 46. By Martin Packman
-
go fmt
- 45. By Martin Packman
-
Get real ami values for live tests from published simplestreams data
- 44. By Martin Packman
-
Change -amazon test flag to accept region value for testing against other regions
Reviewers: mp+192269_ code.launchpad. net,
Message:
Please take a look.
Description:
Enable running live tests against any EC2 region
There are two stages:
* Making the test -amazon flag take a region name
* Looking up real amis with simplestreams and using those in tests
Perhaps leaving the -amazon flag as an enabling bool, and setting a new
flag just for selecting a region that defaults to us-east-1 would be
better.
Both the simplestreams code and required test changes are pretty ugly,
a bigger rewrite would help to clean up the tests.
https:/ /code.launchpad .net/~gz/ goamz/tests_ amazon_ region/ +merge/ 192269
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/14930049/
Affected files (+304, -19 lines): streams_ test.go
A [revision details]
M ec2/ec2i_test.go
M ec2/ec2t_test.go
A testutil/streams.go
A testutil/
M testutil/suite.go