Merge lp://staging/~wallyworld/juju-core/openstack-live-test-fixes into lp://staging/~juju/juju-core/trunk
Proposed by
Ian Booth
Status: | Merged |
---|---|
Approved by: | William Reade |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1205 |
Proposed branch: | lp://staging/~wallyworld/juju-core/openstack-live-test-fixes |
Merge into: | lp://staging/~juju/juju-core/trunk |
Prerequisite: | lp://staging/~wallyworld/juju-core/openstack-image-lookup |
Diff against target: |
244 lines (+61/-30) 8 files modified
environs/openstack/export_test.go (+9/-0) environs/openstack/live_test.go (+3/-6) environs/openstack/local_test.go (+10/-8) environs/openstack/provider.go (+4/-2) environs/openstack/provider_test.go (+1/-11) environs/testing/tools.go (+15/-1) environs/tools/storage.go (+9/-2) environs/tools/storage_test.go (+10/-0) |
To merge this branch: | bzr merge lp://staging/~wallyworld/juju-core/openstack-live-test-fixes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+160275@code.staging.launchpad.net |
Description of the change
Remove hard coded Canonistack image id
Now that we have cloud image metadata for Canonistack, the hard coded
image id and instance type used for live tests are no longer required.
Another change is that the live tests now create a test "container"
in which to upload the fake tools to the public bucket. This allows
any specified public bucket to be used to read the image metadata files
but does not risk any legitimate tools in that public bucket being deleted.
The clean up for the live tests only removes the fake tools from the
test "container" and leaves the other public bucket files untouched.
To post a comment you must log in.
Reviewers: mp+160275_ code.launchpad. net,
Message:
Please take a look.
Description:
Remove hard coded Canonistack image id
Now that we have cloud image metadata for Canonistack, the hard coded
image id and instance type used for live tests are no longer required.
Another change is that the clean up for the live tests was changed to
only remove the fake tools from the public bucket otherwise we were
deleting the entire public bucket and this removed all the legitimate
tools and image metadata files.
https:/ /code.launchpad .net/~wallyworl d/juju- core/openstack- live-test- fixes/+ merge/160275
Requires: /code.launchpad .net/~wallyworl d/juju- core/openstack- image-lookup/ +merge/ 159301
https:/
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/8812053/
Affected files: openstack/ live_test. go openstack/ local_test. go openstack/ provider. go openstack/ provider_ test.go testing/ tools.go
A [revision details]
M environs/
M environs/
M environs/
M environs/
M environs/
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision: <email address hidden>
Index: environs/ openstack/ live_test. go openstack/ live_test. go' openstack/ live_test. go 2013-04-19 02:39:42 +0000 openstack/ live_test. go 2013-04-23 04:03:33 +0000 oner: false, s.ImageId, s.Flavor,
=== modified file 'environs/
--- environs/
+++ environs/
@@ -70,8 +70,6 @@
// this flag to True.
HasProvisi
},
- testImageId: testImageDetail
- testFlavor: testImageDetail
})
}
@@ -82,8 +80,6 @@ LoggingSuite LiveTests Credentials licStorage environs.Storage
coretesting.
jujutest.
cred *identity.
- testImageId string
- testFlavor string
writeablePub
}
@@ -118,8 +114,7 @@ icStorage != nil { DeleteStorageCo ntent(t. writeablePublic Storage) RemoveFakeTools (c, t.writeablePubl icStorage) TearDownSuite( c) te.TearDownSuit e(c)
return
}
if t.writeablePubl
- err := openstack.
- c.Check(err, IsNil)
+ envtesting.
}
t.LiveTests.
t.LoggingSui
Index: environs/ openstack/ local_test. go openstack/ local_test. go' openstack/ local_test. go 2013-04-19 02:39:42 +0000 openstack/ local_test. go 2013-04-23 04:03:33 +0000 "default- instance- type"] = "m1.small" &localLiveSuite { TestConfig{ config} , LoggingSuite Credentials Credentials Storage environs.Storage
=== modified file 'environs/
--- environs/
+++ environs/
@@ -100,9 +100,7 @@
config[
Suite(
LiveTests: LiveTests{
- cred: cred,
- testImageId: "1",
- testFlavor: "m1.small",
+ cred: cred,
LiveTests: jujutest.LiveTests{
TestConfig: jujutest.
},
@@ -183,9 +181,10 @@
type localServerSuite struct {
coretesting.
jujutest.Tests
- cred *identity.
- srv localServer
- env environs.Environ
+ cred *identity.
+ srv localServer
+ env environs.Environ
+ writeablePublic
}
func (s *localServerSuite) SetUpSuite(c *C) {
@@ -206,8 +20...