charm-vault/unit_tests/__init__.py
James Page 6d593a01c0 Add snap channel support
Add a new configuration option 'channel' to support deployment
of vault from channels other than stable.

This superceeds the layer option which is dropped as part of this
review.

Channel config option changes are honoured, but vault may not be
restarted depending on whether the local vault service has been
unsealed.

Change-Id: I845cd8db3a7e80155f2b485bb3f07934476996f2
2018-04-19 11:55:25 +01:00

12 lines
160 B
Python

# unit tests
import mock
import sys
sys.path.append('src')
sys.path.append('src/lib')
global snap
snap = mock.MagicMock()
sys.modules['charms.layer'] = snap