~peter-sabaini/charm-sudo-pair:add-charm-destructor

Last commit made on 2019-01-14
Get this branch:
git clone -b add-charm-destructor https://git.launchpad.net/~peter-sabaini/charm-sudo-pair
Only Peter Sabaini can upload to this branch. If you are Peter Sabaini please log in for upload directions.

Branch merges

Branch information

Name:
add-charm-destructor
Repository:
lp:~peter-sabaini/charm-sudo-pair

Recent commits

b0edeb8... by Peter Sabaini

Strip stray tabs from JUJU_REPOSITORY chk, add max complexity

89229f8... by Peter Sabaini

Address review comments

ab4a0b5... by Peter Sabaini

Add cleanup on unit removal

- Remove sudo.conf and lib on removal of unit

- Add testenv for functesting xenial only

- Optionally preserve test model

- PEP8 fixes

185b866... by Peter Sabaini

Address comments, also found a typo requirements

9c7efd3... by Peter Sabaini

Fix functional tests

- Build charm before functest, deploy from built charm

- Pin pytest because of https://docs.pytest.org/en/latest/mark.html#marker-revamp-and-iteration

- Add lint target, add Makefile

d133e6b... by Peter Sabaini

Update perms based on sudo_pair docs

As per https://github.com/square/sudo_pair/commit/41e7a291256f819a98f7fb4898bbad0e5589499e#diff-29d8221047461bfe69fc0997c8a9cbe6R66

3eaaff6... by Peter Sabaini

Fix unittests

- Got a perm. denied reading conffile, update in fixture

- Check for extra_packages seems to be a leftover

5fd51e3... by Andrea Ieri

Simplify the file_contents fixture by using cat instead of python

952cfe6... by Andrea Ieri

Rewrite of fixtures and tests:

- override the default event loop so we can use module scoped fixtures
- parametrize tests to check both xenial and bionic
- use a temporary model and tear it down when done
- introduce generic fixtures that can be reused
- add docstrings

1c39b8d... by Andrea Ieri

Move functional test fixtures to their own conftest file