22Ensure (credentials, free_credentials_frees_all_fields)
26 credentials.
username = g_strdup (
"testuser");
27 credentials.
password = g_strdup (
"testpass");
28 credentials.
uuid = g_strdup (
"12345");
29 credentials.
timezone = g_strdup (
"UTC");
33 credentials.
role = g_strdup (
"admin");
36 credentials.
jwt = g_strdup (
"test.token.value");
40 assert_that (credentials.
username, is_null);
41 assert_that (credentials.
password, is_null);
42 assert_that (credentials.
uuid, is_null);
43 assert_that (credentials.
timezone, is_null);
44 assert_that (credentials.
role, is_null);
46 assert_that (credentials.
jwt, is_null);
90main (
int argc,
char **argv)
95 suite = create_test_suite ();
97 add_test_with_context (suite, credentials, free_credentials_frees_all_fields);
98 add_test_with_context (suite, credentials,
99 append_to_credentials_username_appends_text);
100 add_test_with_context (suite, credentials,
101 append_to_credentials_password_appends_text);
104 ret = run_single_test (suite, argv[1], create_text_reporter ());
106 ret = run_test_suite (suite, create_text_reporter ());
108 destroy_test_suite (suite);