NetworkManager/src/libnm-core-impl/tests
Thomas Haller 207cf3d5d4
libnm: normalize "connection.uuid"
For NetworkManager profiles, "connection.uuid" is the identifier of the
profile. It is supposed to be a UUID, however:

- the UUID was not ensured to be all-lower case. We should make sure
  that our UUIDs are in a consistent manner, so that users can rely
  on the format of the string.

- the UUID was never actually interpreted as a UUID. It only was some
  opaque string, that we use as identifier. We had nm_utils_is_uuid()
  which checks that the format is valid, however that did not fully
  validate the format, like it would accept "----7daf444dd78741a59e1ef1b3c8b1c0e8"
  and "549fac10a25f4bcc912d1ae688c2b4987daf444d" (40 hex characters).

Both invalid UUIDs and non-normalized UUID should be normalized. We
don't want to break existing profiles that use such UUIDs, thus we don't
outright reject them. Let's instead mangle them during
nm_connection_normalize().
2021-05-04 15:51:59 +02:00
..
certs build: move "libnm-core/" to "src/" and split it 2021-02-18 19:46:51 +01:00
meson.build build/meson: cleanup tests 2021-02-28 18:56:08 +01:00
nm-core-tests-enum-types.c.template build: move "libnm-core/" to "src/" and split it 2021-02-18 19:46:51 +01:00
nm-core-tests-enum-types.h.template build: move "libnm-core/" to "src/" and split it 2021-02-18 19:46:51 +01:00
test-compare.c shared: move "nm-test-utils.h" to "src/libnm-glib-aux/" 2021-02-24 12:48:33 +01:00
test-crypto.c shared: move "nm-test-utils.h" to "src/libnm-glib-aux/" 2021-02-24 12:48:33 +01:00
test-general-enums.h build: move "libnm-core/" to "src/" and split it 2021-02-18 19:46:51 +01:00
test-general.c all: only include "libnm-glib-aux/nm-uuid.h" where needed 2021-05-04 15:51:51 +02:00
test-keyfile.c shared: move "nm-test-utils.h" to "src/libnm-glib-aux/" 2021-02-24 12:48:33 +01:00
test-secrets.c all: use nm_g_variant_singleton_a*() helpers 2021-04-16 11:44:19 +02:00
test-setting.c libnm: normalize "connection.uuid" 2021-05-04 15:51:59 +02:00
test-settings-defaults.c shared: move "nm-test-utils.h" to "src/libnm-glib-aux/" 2021-02-24 12:48:33 +01:00