Commit 9f026283 authored by Jiří Klimeš's avatar Jiří Klimeš
Browse files

ifnet: fix tests

parent 379d9044
......@@ -252,25 +252,25 @@ test_is_unmanaged ()
static void
test_new_connection ()
{
GError **error = NULL;
GError *error = NULL;
NMConnection *connection;
connection = ifnet_update_connection_from_config_block ("eth2", error);
connection = ifnet_update_connection_from_config_block ("eth2", &error);
ASSERT (connection != NULL, "new connection",
"new connection failed: %s",
error == NULL ? "None" : (*error)->message);
error ? error->message : "None");
g_object_unref (connection);
connection =
ifnet_update_connection_from_config_block ("qiaomuf", error);
connection = ifnet_update_connection_from_config_block ("qiaomuf", &error);
ASSERT (connection != NULL, "new connection",
"new connection failed: %s", error
&& (*error) ? (*error)->message : "NONE");
"new connection failed: %s",
error ? error->message : "NONE");
g_object_unref (connection);
connection =
ifnet_update_connection_from_config_block ("myxjtu2", error);
connection = ifnet_update_connection_from_config_block ("myxjtu2", &error);
ASSERT (connection != NULL, "new connection",
"new connection failed: %s", error
&& (*error) ? (*error)->message : "NONE");
"new connection failed: %s",
error ? error->message : "NONE");
g_object_unref (connection);
}
......@@ -280,32 +280,32 @@ test_new_connection ()
static void
test_update_connection ()
{
GError **error = NULL;
GError *error = NULL;
NMConnection *connection;
gboolean success;
connection = ifnet_update_connection_from_config_block ("eth0", error);
connection = ifnet_update_connection_from_config_block ("eth0", &error);
ASSERT (connection != NULL, "get connection",
"get connection failed: %s",
error == NULL ? "None" : (*error)->message);
error ? error->message : "None");
success = ifnet_update_parsers_by_connection (connection, "eth0",
NET_GEN_NAME,
SUP_GEN_NAME,
NULL,
error);
&error);
ASSERT (success, "update connection", "update connection failed %s", "eth0");
g_object_unref (connection);
connection = ifnet_update_connection_from_config_block ("0xab3ace", error);
connection = ifnet_update_connection_from_config_block ("0xab3ace", &error);
ASSERT (connection != NULL, "get connection", "get connection failed: %s",
error == NULL ? "None" : (*error)->message);
error ? error->message : "None");
success = ifnet_update_parsers_by_connection (connection, "0xab3ace",
NET_GEN_NAME,
SUP_GEN_NAME,
NULL,
error);
&error);
ASSERT (success, "update connection", "update connection failed %s", "0xab3ace");
g_object_unref (connection);
......
-----BEGIN CERTIFICATE-----
MIIEjzCCA3egAwIBAgIJAOvnZPt59yIZMA0GCSqGSIb3DQEBBQUAMIGLMQswCQYD
VQQGEwJVUzESMBAGA1UECBMJQmVya3NoaXJlMRAwDgYDVQQHEwdOZXdidXJ5MRcw
FQYDVQQKEw5NeSBDb21wYW55IEx0ZDEQMA4GA1UECxMHVGVzdGluZzENMAsGA1UE
AxMEdGVzdDEcMBoGCSqGSIb3DQEJARYNdGVzdEB0ZXN0LmNvbTAeFw0wOTAzMTAx
NTEyMTRaFw0xOTAzMDgxNTEyMTRaMIGLMQswCQYDVQQGEwJVUzESMBAGA1UECBMJ
QmVya3NoaXJlMRAwDgYDVQQHEwdOZXdidXJ5MRcwFQYDVQQKEw5NeSBDb21wYW55
IEx0ZDEQMA4GA1UECxMHVGVzdGluZzENMAsGA1UEAxMEdGVzdDEcMBoGCSqGSIb3
DQEJARYNdGVzdEB0ZXN0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
ggEBAKot9j+/+CX1/gZLgJHIXCRgCItKLGnf7qGbgqB9T2ACBqR0jllKWwDKrcWU
xjXNIc+GF9Wnv+lX6G0Okn4Zt3/uRNobL+2b/yOF7M3Td3/9W873zdkQQX930YZc
Rr8uxdRPP5bxiCgtcw632y21sSEbG9mjccAUnV/0jdvfmMNj0i8gN6E0fMBiJ9S3
FkxX/KFvt9JWE9CtoyL7ki7UIDq+6vj7Gd5N0B3dOa1y+rRHZzKlJPcSXQSEYUS4
HmKDwiKSVahft8c4tDn7KPi0vex91hlgZVd3usL2E/Vq7o5D9FAZ5kZY0AdFXwdm
J4lO4Mj7ac7GE4vNERNcXVIX59sCAwEAAaOB8zCB8DAdBgNVHQ4EFgQUuDU3Mr7P
T3n1e3Sy8hBauoDFahAwgcAGA1UdIwSBuDCBtYAUuDU3Mr7PT3n1e3Sy8hBauoDF
ahChgZGkgY4wgYsxCzAJBgNVBAYTAlVTMRIwEAYDVQQIEwlCZXJrc2hpcmUxEDAO
BgNVBAcTB05ld2J1cnkxFzAVBgNVBAoTDk15IENvbXBhbnkgTHRkMRAwDgYDVQQL
EwdUZXN0aW5nMQ0wCwYDVQQDEwR0ZXN0MRwwGgYJKoZIhvcNAQkBFg10ZXN0QHRl
c3QuY29tggkA6+dk+3n3IhkwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOC
AQEAVRG4aALIvCXCiKfe7K+iJxjBVRDFPEf7JWA9LGgbFOn6pNvbxonrR+0BETdc
JV1ET4ct2xsE7QNFIkp9GKRC+6J32zCo8qtLCD5+v436r8TUG2/t2JRMkb9I2XVT
p7RJoot6M0Ltf8KNQUPYh756xmKZ4USfQUwc58MOSDGY8VWEXJOYij9Pf0e0c52t
qiCEjXH7uXiS8Pgq9TYm7AkWSOrglYhSa83x0f8mtT8Q15nBESIHZ6o8FAS2bBgn
B0BkrKRjtBUkuJG3vTox+bYINh2Gxi1JZHWSV1tN5z3hd4VFcKqanW5OgQwToBqp
3nniskIjbH0xjgZf/nVMyLnjxg==
-----END CERTIFICATE-----
......@@ -859,6 +859,7 @@ network={
identity="user@example.com"
anonymous_identity="anonymous@example.com"
password="foobar"
ca_cert="blob://exampleblob"
ca_cert="test_ca_cert.pem"
phase2="auth=CHAP"
priority=20
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment