Descriptionenviron.StateInfo() for Azure provider.
This also required an implementation of loadState and saveState. All of this
looks like it belongs outside of the provider implementation; we just copy it
from the rest. Tests are also similar to what we found elsewhere. It looks
like it could do with some refactorings but we try to avoid that, on the
assumption that such code will be generalized at some point and the job will
only get worse if the various redundant implementations look too different.
In a new twist, I found that the loading/saving of state can be unit-tested.
The dummy provider has an in-memory storage implementation that we can re-use.
No need to put up a test double for Azure's storage service or anything like
that. All it took was to export two constructors from the dummy provider.
https://code.launchpad.net/~jtv/juju-core/stateinfo/+merge/171081
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 10
Patch Set 2 : environ.StateInfo() for Azure provider. #
Total comments: 2
Patch Set 3 : environ.StateInfo() for Azure provider. #Patch Set 4 : environ.StateInfo() for Azure provider. #Patch Set 5 : environ.StateInfo() for Azure provider. #Patch Set 6 : environ.StateInfo() for Azure provider. #
MessagesTotal messages: 18
|