NetworkManager/src/settings/plugins/keyfile/tests/keyfiles
Thomas Haller c9a8764ad2 keyfile: support writing certificates as blob inside the keyfile
keyfile should become our main import/export format. It is desirable,
that a keyfile can contain every aspect of a connection.

For blob certificates, the writer in core daemon would always write
them to a file and convert the scheme to path.
This behavior is not great for a (hyptetical) `nmcli connection export`
command because it would have to export them somehow outside of keyfile,
e.g. by writing them to temporary files.

Instead, if the write handler does not handle a certificate, use a
default implementation in nm_keyfile_write() which adds the blob inside
the keyfile.

Interestingly, keyfile reader already supported reading certificate
blobs. But this legacy format accepts the blob as arbitrary
binary without marking the format and without scheme prefix.
Instead of writing the binary data directly, write it with a new
uri scheme "data:;base64," and encode it in base64.

Also go through some lengths to make sure that whatever path
keyfile plugin writes, can be read back again. That is, because
keyfile writer preferably writes relative paths without prefix.
Add nm_keyfile_detect_unqualified_path_scheme() to encapsulate
the detection of pathnames without file:// prefix and use it to
check whether the path name must be fully qualified.
2015-03-12 18:16:58 +01:00
..
ATT_Data_Connect_BT libnm-core: make NMSettingSerial:parity an enum 2014-10-03 09:36:28 -04:00
ATT_Data_Connect_Plain libnm-core: make NMSettingSerial:parity an enum 2014-10-03 09:36:28 -04:00
Makefile.am keyfile: fix handling of enum/flags properties after fcfb4b40 (bgo #738585) 2014-10-16 19:17:18 -05:00
test-ca-cert.pem keyfile: allow paths to be used for certificates and private keys 2011-03-02 23:44:27 -06:00
test-key-and-cert.pem keyfile: allow paths to be used for certificates and private keys 2011-03-02 23:44:27 -06:00
Test_Bridge_Component keyfile: add some tests for bridges 2012-11-30 13:21:51 -06:00
Test_Bridge_Main keyfile: update testcase for multicast-snooping property 2015-02-26 09:08:13 +01:00
Test_Enum_Property keyfile: fix handling of enum/flags properties after fcfb4b40 (bgo #738585) 2014-10-16 19:17:18 -05:00
Test_Flags_Property keyfile: fix handling of enum/flags properties after fcfb4b40 (bgo #738585) 2014-10-16 19:17:18 -05:00
Test_GSM_Connection settings: move system-settings/plugins => src/settings/plugins 2011-02-15 11:55:34 -06:00
Test_InfiniBand_Connection keyfile: fix testcases after InfiniBand transport-mode default change 2012-03-19 10:10:36 -05:00
Test_Intlike_SSID keyfile: add testcase for intlist-like SSID (lp:874328) 2011-10-14 11:17:12 -05:00
Test_Intlike_SSID_2 keyfile: add another testcase for intlist-like SSID (bgo #660232) 2011-10-18 17:01:17 +02:00
Test_Intlist_SSID keyfile: fix integer list SSID parsing after 30c41a4b80 2011-07-20 17:44:14 -05:00
Test_MAC_IB_Old_Format keyfile: fix reading MAC in old format (list of integers) 2014-05-29 19:00:41 +02:00
Test_MAC_Old_Format keyfile: fix reading MAC in old format (list of integers) 2014-05-29 19:00:41 +02:00
Test_minimal_1 keyfile/tests: test reading minimal keyfiles that needs normalization of type and slave-type 2014-08-22 15:24:31 +02:00
Test_minimal_2 keyfile/tests: test reading minimal keyfiles that needs normalization of type and slave-type 2014-08-22 15:24:31 +02:00
Test_minimal_slave_1 keyfile/tests: test reading minimal keyfiles that needs normalization of type and slave-type 2014-08-22 15:24:31 +02:00
Test_minimal_slave_2 keyfile/tests: test reading minimal keyfiles that needs normalization of type and slave-type 2014-08-22 15:24:31 +02:00
Test_minimal_slave_3 keyfile/tests: test reading minimal keyfiles that needs normalization of type and slave-type 2014-08-22 15:24:31 +02:00
Test_minimal_slave_4 keyfile/tests: test reading minimal keyfiles that needs normalization of type and slave-type 2014-08-22 15:24:31 +02:00
Test_Missing_ID_UUID keyfile: allow missing 'id' and 'uuid' in [connection] section (bgo #683345) 2014-06-25 16:26:59 +02:00
Test_Missing_Vlan_Setting keyfile: ensure all-default VLAN setting is read correctly 2013-04-11 14:55:37 -05:00
Test_New_Wired_Group_Name keyfile: use 'ethernet', 'wifi' and 'wifi-security' group names (bgo #696940) 2013-04-11 10:52:39 -05:00
Test_New_Wireless_Group_Names test: remove deprecated 'security' property from tests 2013-09-02 09:46:31 +02:00
Test_String_SSID settings: move system-settings/plugins => src/settings/plugins 2011-02-15 11:55:34 -06:00
Test_Wired_Connection keyfile: fix reader and writer for writing routes 2013-12-09 18:41:38 +01:00
Test_Wired_Connection_IP6 settings: move system-settings/plugins => src/settings/plugins 2011-02-15 11:55:34 -06:00
Test_Wired_Connection_MAC_Case settings: move system-settings/plugins => src/settings/plugins 2011-02-15 11:55:34 -06:00
Test_Wired_TLS_Blob keyfile: support writing certificates as blob inside the keyfile 2015-03-12 18:16:58 +01:00
Test_Wired_TLS_New keyfile: allow paths to be used for certificates and private keys 2011-03-02 23:44:27 -06:00
Test_Wired_TLS_Old keyfile: support writing certificates as blob inside the keyfile 2015-03-12 18:16:58 +01:00
Test_Wired_TLS_Path_Missing keyfile: better handle cert/key files that don't exist (bgo #649807) 2011-06-01 16:51:47 -05:00
Test_Wireless_Connection settings: move system-settings/plugins => src/settings/plugins 2011-02-15 11:55:34 -06:00