Tim Van Steenburgh
Tim Van Steenburgh
Fixes #112. Adds an add_storage() method the UnitSentry, e.g.: ``` python unit = d.sentry['wordpress'][0] unit.add_storage('mystorage', pool='ebs', count=3, size=1024) ``` There are no 'remove storage' commands in Juju.
From a test run of lp:~jose/charms/trusty/pubphoto/trunk ``` DEBUG:runner:call ['/tmp/bundletester-KdHqrm/pubphoto/tests/10-deploy'] (cwd: /tmp/bundletester-KdHqrm/pubphoto) DEBUG:runner:/usr/lib/python3/dist-packages/path.py:1719: DeprecationWarning: path is deprecated. Use Path instead. DEBUG:runner: warnings.warn(msg, DeprecationWarning) DEBUG:runner:E DEBUG:runner:====================================================================== DEBUG:runner:ERROR: setUpClass (__main__.TestDeployment) DEBUG:runner:---------------------------------------------------------------------- DEBUG:runner:Traceback (most...
Doing so will ensure that amulet will actually work right-out-of-the-box, for example when installed from pip in a fresh container, without having to manually install other deps. As of https://github.com/juju-solutions/bundletester/pull/42,...
When a test does `sentry['mycharm/0']`, do `sentry['mycharm'][0]` behind-the-scenes instead of returning a KeyError. I.e., use the unit num as an index into the sentry array. This will make old tests...
For example: ``` # bad sentry.unit['mysql/0'] # good sentry.unit['mysql'][0] ``` The reason for this is that bundletester, by default, resets the env between test file executions. So, unit numbers for...