From dd80e247a95fb4a6ce1e7a8d2bdb9d9aba5258d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Fri, 3 May 2013 16:54:15 +0200 Subject: [PATCH] ifcfg-rh: fix tests after nm_utils_wep_key_valid() fix bfc20af513704a8025c09c49b364f07ab9158c96 --- src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c b/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c index 6c3bd05f5..6cba20ef6 100644 --- a/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c +++ b/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c @@ -11262,6 +11262,7 @@ test_write_wifi_wep_agent_keys (void) g_object_set (s_wsec, NM_SETTING_WIRELESS_SECURITY_KEY_MGMT, "none", + NM_SETTING_WIRELESS_SECURITY_WEP_KEY_TYPE, NM_WEP_KEY_TYPE_PASSPHRASE, NM_SETTING_WIRELESS_SECURITY_WEP_KEY_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL); nm_setting_wireless_security_set_wep_key (s_wsec, 0, "asdfdjaslfjasd;flasjdfl;aksdf"); @@ -11303,8 +11304,12 @@ test_write_wifi_wep_agent_keys (void) /* Remove the WEP key from the original, because it should not have been * written out to disk as it was agent-owned. The new connection should * not have any WEP keys set. + * Also the new connection should not have WEP key type set. */ nm_setting_wireless_security_set_wep_key (s_wsec, 0, NULL); + g_object_set (s_wsec, + NM_SETTING_WIRELESS_SECURITY_WEP_KEY_TYPE, NM_WEP_KEY_TYPE_UNKNOWN, + NULL); /* Compare original and reread */ success = nm_connection_compare (connection, reread, NM_SETTING_COMPARE_FLAG_EXACT);