Skip to content

Commit

Permalink
Merge pull request juju#7810 from axw/oracle-release-import-volumes
Browse files Browse the repository at this point in the history
provider/oracle: release/import volume support

## Description of change

Add support for releasing and import volumes from/into
an Oracle model. Tags are removed and added respectively.

## QA steps

1. juju bootstrap oracle
2. juju deploy cs:~axwalk/storagetest --storage fs=oracle,1G
3. juju remove-storage --no-destroy fs/0
(wait, check it's still in console)
4. juju import-filesystem oracle \<volume-id\> fs
(should be imported as fs/1)
5. juju attach-storage storagetest/0 fs/1
(wait, should attach correctly)
6. juju destroy-controller -y oracle --destroy-all-models --destroy-storage

## Documentation changes

None.

## Bug reference

None.
  • Loading branch information
jujubot authored Aug 31, 2017
2 parents 792de65 + 08c0fe1 commit c0fa0bb
Show file tree
Hide file tree
Showing 5 changed files with 297 additions and 165 deletions.
8 changes: 4 additions & 4 deletions provider/oracle/environ_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (e *environSuite) TestInstanceAvailabilityZoneNamesWithErrors(c *gc.C) {
environs.OpenParams{
Config: testing.ModelConfig(c),
},
oracletesting.FakeEnvironAPI{
&oracletesting.FakeEnvironAPI{
FakeInstancer: oracletesting.FakeInstancer{
InstanceErr: errors.New("FakeInstanceErr"),
},
Expand All @@ -86,7 +86,7 @@ func (e *environSuite) TestInstanceAvailabilityZoneNamesWithErrors(c *gc.C) {
environs.OpenParams{
Config: testing.ModelConfig(c),
},
oracletesting.FakeEnvironAPI{
&oracletesting.FakeEnvironAPI{
FakeInstance: oracletesting.FakeInstance{
AllErr: errors.New("FakeInstanceErr"),
},
Expand Down Expand Up @@ -115,7 +115,7 @@ func (e *environSuite) TestPrepareForBootstrapWithErrors(c *gc.C) {
environs.OpenParams{
Config: testing.ModelConfig(c),
},
oracletesting.FakeEnvironAPI{
&oracletesting.FakeEnvironAPI{
FakeAuthenticater: oracletesting.FakeAuthenticater{
AuthenticateErr: errors.New("FakeAuthenticateErr"),
},
Expand Down Expand Up @@ -180,7 +180,7 @@ func (e *environSuite) TestCreateWithErrors(c *gc.C) {
environs.OpenParams{
Config: testing.ModelConfig(c),
},
oracletesting.FakeEnvironAPI{
&oracletesting.FakeEnvironAPI{
FakeAuthenticater: oracletesting.FakeAuthenticater{
AuthenticateErr: errors.New("FakeAuthenticateErr"),
},
Expand Down
4 changes: 2 additions & 2 deletions provider/oracle/images_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (i imageSuite) TestGetImageNameWithErrors(c *gc.C) {
_, err := oracle.GetImageName(oracletesting.DefaultEnvironAPI, "")
c.Assert(err, gc.NotNil)

_, err = oracle.GetImageName(oracletesting.FakeEnvironAPI{
_, err = oracle.GetImageName(&oracletesting.FakeEnvironAPI{
FakeImager: oracletesting.FakeImager{
AllErr: errors.New("FakeImageListErr"),
}}, "0")
Expand All @@ -44,7 +44,7 @@ func (i imageSuite) TestCheckImageList(c *gc.C) {
}

func (i imageSuite) TestCheckImageListWithErrors(c *gc.C) {
_, err := oracle.CheckImageList(oracletesting.FakeEnvironAPI{
_, err := oracle.CheckImageList(&oracletesting.FakeEnvironAPI{
FakeImager: oracletesting.FakeImager{
AllErr: errors.New("FakeImageListErr"),
},
Expand Down
Loading

0 comments on commit c0fa0bb

Please sign in to comment.