NetworkManager/src/tests
Thomas Haller 8d34d23d52 core: fix match spec behavior for a list of all "except:"
If the spec specifies only negative matches (and none of them matches),
then the result shall be positive.

Meaning:

    [connection*] match-device=except:dhcp-plugin:dhclient
    [connection*] match-device=except:interface-name:eth0
    [.config] enabled=except:nm-version:1.14

should be the same as:

    [connection*] match-device=*,except:dhcp-plugin:dhclient
    [connection*] match-device=*,except:interface-name:eth0
    [.config] enabled=*,except:nm-version:1.14

and match by default. Previously, such specs would never yield a
positive match, which seems wrong.

Note that "except:" already has a special meaning. It is not merely
"not:". That is because we don't support "and:" nor grouping, but all
matches are combined by an implicit "or:". With such a meaning, having
a "not:" would be unclear to define. Instead it is defined that any
"except:" match always wins and makes the entire condition to explicitly
not match. As such, it makes sense to treat a match that only consists
of "except:" matches special.

This is a change in behavior, but the alternative meaning makes
little sense.

(cherry picked from commit a7ef23b326)
2018-12-11 14:05:21 +01:00
..
config device: add "dhcp-plugin" match spec for device 2018-11-14 12:38:05 +01:00
meson.build all: replace systemd's siphash24 with c-siphash 2018-05-31 15:59:38 +02:00
test-dcb.c all: modify line separator comments to be 80 chars wide 2016-10-03 12:01:15 +02:00
test-general-with-expect.c all: remove CLOCK_BOOTTIME defintions 2018-06-18 17:21:32 +02:00
test-general.c core: fix match spec behavior for a list of all "except:" 2018-12-11 14:05:21 +01:00
test-ip4-config.c core: reject invalid domains from ip configurations 2018-05-14 15:22:50 +02:00
test-ip6-config.c build: avoid header conflict for <linux/if.h> and <net/if.h> with "nm-platform.h" 2018-11-14 14:39:10 +01:00
test-secret-agent.py python: make test-secret-agent.py python3 ready 2016-12-14 19:00:42 +01:00
test-systemd.c core: add "nm-sd-utils.h" to access system internal helper 2018-11-14 14:17:34 +01:00
test-utils.c core: add assertions for network_id/stable_type 2017-01-09 14:50:33 +01:00
test-wired-defname.c settings: use delegation instead of inheritance for NMSettingsConnection and NMConnection 2018-08-28 22:27:55 +02:00