Implement Storage for MAAS 2 #5070

Closed
wants to merge 13 commits into
from

Conversation

Projects
None yet
2 participants
Member

babbageclunk commented Apr 11, 2016

Rename maasStorage to maas1Storage and add maas2Storage built on top of the gomaasapi Files interfaces.

I shared the implementation of RemoveAll between the two storage versions since it was written completely in terms of storage.Storage operations.

(Review request: http://reviews.vapour.ws/r/4513/)

babbageclunk added some commits Apr 7, 2016

Implement Storage for MAAS 2
Renamed maasStorage to maas1Storage and added maas2Storage as a new
storage.Storage on top of the gomaasapi Files interfaces.
Add fakeFile to fake controller
Scaffolding for tests for maas2Storage.
Simplified test construction
We almost always want to inject a fakeController into the environment,
so pass it in to suite.makeEnviron.
Move maas2 environ testing stuff into maas2_test
So I can use it in maas2storage_test.
Tests for Get, List and URL
Next up: Put, Remove and RemoveAll.
Simplify tests
Don't get the controller out with awkward casting, hang on to the
original reference.
Merge remote-tracking branch 'upstream/master' into maas2-storage
Fixed some conflicts where voidspace had changed functions that I had
moved.
Review change
Raise a nice clear error rather than panicking if the test setup is wrong.
Member

babbageclunk commented Apr 11, 2016

$$merge$$

Contributor

jujubot commented Apr 11, 2016

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

Contributor

jujubot commented Apr 11, 2016

Build failed: Does not match ['fixes-1568312']
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/7304

Member

babbageclunk commented Apr 12, 2016

While Juju master is blocked landing this against the next branch instead. #5093

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment