~ubuntu-core-dev/ubuntu/+source/networkd-dispatcher:upstream

Last commit made on 2019-01-30
Get this branch:
git clone -b upstream https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/networkd-dispatcher
Members of Ubuntu Core Development Team can upload to this branch. Log in for directions.

Branch merges

Branch information

Recent commits

333ef1e... by craftyguy

readme: refer to networkcrl manpage for op. state definitions

Fixes #44

3037a9a... by Julian Andres Klode

man: Explain that states may be explained in networkctl(1)

This is like !39, but for the manual page, either to
complement it or replace it.

f305af8... by Julian Andres Klode

Fix typo: deamon should be daemon

42238ac... by Julian Andres Klode

Mock iwconfig in test_get_interface_data()

Mock iwconfig in test_get_interface_data(), as otherwise it failed for
me (as executed by pytest-3) because it tried to run the real iwconfig.

/usr/lib/python3.6/subprocess.py:418: CalledProcessError
----------------------------- Captured stderr call -----------------------------
wlan0 No such device

a895f04... by clayton craft

Remove 'carrier' and 'degraded' from STATE_IGN

There's no good (known) reason to ignore these states, so they will not
be ignored. There's also no reason to keep STATE_IGN around after this
change, so it has also been removed. It can be re-added if there are new
states we want to ignore later.

Tests have been adjusted accordingly.

51a7b94... by clayton craft

gitignore: add pyc files in root dir

d323b56... by clayton craft

tests/tox: fail pytest if coverage is not 100%

100% coverage or GTFO.

49744ba... by clayton craft

tox: show missing statements in summary

6c8b66d... by clayton craft

tests: add remaining test coverage

This commit restructures some test fixtures to allow them to be easily shared
between tests. It also adds remaining tests for Dispatcher class and any other
methods not previously covered (e.g. main, sd_notify, etc)

a6c0b11... by clayton craft

Exclude import exception handling from pytest

Testing imports is tough work, so we're going to not do that for now