Merge lp:~online-accounts/libsignon-glib/packaging into lp:libsignon-glib
- packaging
- Merge into trunk
Proposed by
Alberto Mardegan
Status: | Merged |
---|---|
Approved by: | David Barth |
Approved revision: | no longer in the source branch. |
Merged at revision: | 150 |
Proposed branch: | lp:~online-accounts/libsignon-glib/packaging |
Merge into: | lp:libsignon-glib |
Diff against target: |
354 lines (+79/-44) 8 files modified
NEWS (+14/-0) configure.ac (+1/-1) debian/changelog (+14/-0) libsignon-glib/signon-auth-service.c (+2/-2) libsignon-glib/signon-auth-session.c (+16/-21) libsignon-glib/signon-identity.h (+1/-1) libsignon-glib/signon.vapi (+17/-15) tests/check_signon.c (+14/-4) |
To merge this branch: | bzr merge lp:~online-accounts/libsignon-glib/packaging |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Needs Fixing | |
David Barth (community) | Approve | ||
Review via email: mp+244098@code.launchpad.net |
Commit message
New upstream release
- Introspection: fix transfer type of some methods
- Update VALA bindings (bug 1382843)
Description of the change
New upstream release
- Introspection: fix transfer type of some methods
- Update VALA bindings (bug 1382843)
To post a comment you must log in.
Revision history for this message
David Barth (dbarth) : | # |
review:
Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : | # |
review:
Needs Fixing
(continuous-integration)
- 150. By Alberto Mardegan
-
New upstream release
- Introspection: fix transfer type of some methods
- Update VALA bindings (bug 1382843)Approved by: David Barth
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'NEWS' | |||
2 | --- NEWS 2013-06-05 11:28:59 +0000 | |||
3 | +++ NEWS 2014-12-09 13:40:34 +0000 | |||
4 | @@ -1,5 +1,19 @@ | |||
5 | 1 | libsignon-glib NEWS | 1 | libsignon-glib NEWS |
6 | 2 | 2 | ||
7 | 3 | Version 1.12 | ||
8 | 4 | ------------ | ||
9 | 5 | |||
10 | 6 | * Introspection: fix transfer type of some methods | ||
11 | 7 | * Update VALA bindings | ||
12 | 8 | |||
13 | 9 | Version 1.11 | ||
14 | 10 | ------------ | ||
15 | 11 | |||
16 | 12 | * Disconnect from signals when the remote AuthSession dies | ||
17 | 13 | http://code.google.com/p/accounts-sso/issues/detail?id=229 | ||
18 | 14 | * Avoid unreferencing a NULL GVariant | ||
19 | 15 | * Fix the linking problem when using check | ||
20 | 16 | |||
21 | 3 | Version 1.10 | 17 | Version 1.10 |
22 | 4 | ------------ | 18 | ------------ |
23 | 5 | 19 | ||
24 | 6 | 20 | ||
25 | === modified file 'configure.ac' | |||
26 | --- configure.ac 2013-06-21 14:46:21 +0000 | |||
27 | +++ configure.ac 2014-12-09 13:40:34 +0000 | |||
28 | @@ -1,7 +1,7 @@ | |||
29 | 1 | dnl Process this file with autoconf to produce a configure script. | 1 | dnl Process this file with autoconf to produce a configure script. |
30 | 2 | AC_PREREQ([2.64]) | 2 | AC_PREREQ([2.64]) |
31 | 3 | AC_INIT([libsignon-glib], | 3 | AC_INIT([libsignon-glib], |
33 | 4 | [1.10], | 4 | [1.12], |
34 | 5 | [http://code.google.com/p/accounts-sso/issues/entry], | 5 | [http://code.google.com/p/accounts-sso/issues/entry], |
35 | 6 | [libsignon-glib], | 6 | [libsignon-glib], |
36 | 7 | [http://code.google.com/p/accounts-sso/]) | 7 | [http://code.google.com/p/accounts-sso/]) |
37 | 8 | 8 | ||
38 | === modified file 'debian/changelog' | |||
39 | --- debian/changelog 2013-06-25 04:31:09 +0000 | |||
40 | +++ debian/changelog 2014-12-09 13:40:34 +0000 | |||
41 | @@ -1,3 +1,17 @@ | |||
42 | 1 | libsignon-glib (1.12-0ubuntu1) UNRELEASED; urgency=medium | ||
43 | 2 | |||
44 | 3 | * New upstream release. | ||
45 | 4 | - Introspection: fix transfer type of some methods | ||
46 | 5 | - Update VALA bindings (LP: #1382843) | ||
47 | 6 | |||
48 | 7 | -- Alberto Mardegan <alberto.mardegan@canonical.com> Tue, 09 Dec 2014 11:21:44 +0200 | ||
49 | 8 | |||
50 | 9 | libsignon-glib (1.10daily13.06.25-0ubuntu2) trusty; urgency=medium | ||
51 | 10 | |||
52 | 11 | * Rebuild to drop files installed into /usr/share/pyshared. | ||
53 | 12 | |||
54 | 13 | -- Matthias Klose <doko@ubuntu.com> Sun, 23 Feb 2014 13:48:19 +0000 | ||
55 | 14 | |||
56 | 1 | libsignon-glib (1.10daily13.06.25-0ubuntu1) saucy; urgency=low | 15 | libsignon-glib (1.10daily13.06.25-0ubuntu1) saucy; urgency=low |
57 | 2 | 16 | ||
58 | 3 | [ Jeremy Bicha ] | 17 | [ Jeremy Bicha ] |
59 | 4 | 18 | ||
60 | === modified file 'libsignon-glib/signon-auth-service.c' | |||
61 | --- libsignon-glib/signon-auth-service.c 2012-11-29 12:00:52 +0000 | |||
62 | +++ libsignon-glib/signon-auth-service.c 2014-12-09 13:40:34 +0000 | |||
63 | @@ -176,7 +176,7 @@ | |||
64 | 176 | /** | 176 | /** |
65 | 177 | * SignonQueryMethodsCb: | 177 | * SignonQueryMethodsCb: |
66 | 178 | * @auth_service: the #SignonAuthService. | 178 | * @auth_service: the #SignonAuthService. |
68 | 179 | * @methods: (transfer full) (type GStrv): list of available methods. | 179 | * @methods: (transfer none) (type GStrv): list of available methods. |
69 | 180 | * @error: a #GError if an error occurred, %NULL otherwise. | 180 | * @error: a #GError if an error occurred, %NULL otherwise. |
70 | 181 | * @user_data: the user data that was passed when installing this callback. | 181 | * @user_data: the user data that was passed when installing this callback. |
71 | 182 | * | 182 | * |
72 | @@ -218,7 +218,7 @@ | |||
73 | 218 | * SignonQueryMechanismCb: | 218 | * SignonQueryMechanismCb: |
74 | 219 | * @auth_service: the #SignonAuthService. | 219 | * @auth_service: the #SignonAuthService. |
75 | 220 | * @method: the authentication method being inspected. | 220 | * @method: the authentication method being inspected. |
77 | 221 | * @mechanisms: (transfer full) (type GStrv): list of available mechanisms. | 221 | * @mechanisms: (transfer none) (type GStrv): list of available mechanisms. |
78 | 222 | * @error: a #GError if an error occurred, %NULL otherwise. | 222 | * @error: a #GError if an error occurred, %NULL otherwise. |
79 | 223 | * @user_data: the user data that was passed when installing this callback. | 223 | * @user_data: the user data that was passed when installing this callback. |
80 | 224 | * | 224 | * |
81 | 225 | 225 | ||
82 | === modified file 'libsignon-glib/signon-auth-session.c' | |||
83 | --- libsignon-glib/signon-auth-session.c 2013-02-05 14:23:39 +0000 | |||
84 | +++ libsignon-glib/signon-auth-session.c 2014-12-09 13:40:34 +0000 | |||
85 | @@ -244,13 +244,25 @@ | |||
86 | 244 | if (reply != NULL) | 244 | if (reply != NULL) |
87 | 245 | g_hash_table_unref (reply); | 245 | g_hash_table_unref (reply); |
88 | 246 | } | 246 | } |
90 | 247 | g_variant_unref (v_reply); | 247 | |
91 | 248 | if (v_reply != NULL) | ||
92 | 249 | g_variant_unref (v_reply); | ||
93 | 248 | 250 | ||
94 | 249 | g_slice_free (AuthSessionProcessCbData, cb_data); | 251 | g_slice_free (AuthSessionProcessCbData, cb_data); |
95 | 250 | g_clear_error (&error); | 252 | g_clear_error (&error); |
96 | 251 | g_object_unref (res); | 253 | g_object_unref (res); |
97 | 252 | } | 254 | } |
98 | 253 | 255 | ||
99 | 256 | static void | ||
100 | 257 | destroy_proxy (SignonAuthSessionPrivate *priv) | ||
101 | 258 | { | ||
102 | 259 | g_signal_handler_disconnect (priv->proxy, priv->signal_state_changed); | ||
103 | 260 | g_signal_handler_disconnect (priv->proxy, priv->signal_unregistered); | ||
104 | 261 | g_object_unref (priv->proxy); | ||
105 | 262 | |||
106 | 263 | priv->proxy = NULL; | ||
107 | 264 | } | ||
108 | 265 | |||
109 | 254 | static GQuark | 266 | static GQuark |
110 | 255 | auth_session_object_quark () | 267 | auth_session_object_quark () |
111 | 256 | { | 268 | { |
112 | @@ -288,13 +300,7 @@ | |||
113 | 288 | } | 300 | } |
114 | 289 | 301 | ||
115 | 290 | if (priv->proxy) | 302 | if (priv->proxy) |
123 | 291 | { | 303 | destroy_proxy (priv); |
117 | 292 | g_signal_handler_disconnect (priv->proxy, priv->signal_state_changed); | ||
118 | 293 | g_signal_handler_disconnect (priv->proxy, priv->signal_unregistered); | ||
119 | 294 | g_object_unref (priv->proxy); | ||
120 | 295 | |||
121 | 296 | priv->proxy = NULL; | ||
122 | 297 | } | ||
124 | 298 | 304 | ||
125 | 299 | if (priv->auth_service_proxy) | 305 | if (priv->auth_service_proxy) |
126 | 300 | { | 306 | { |
127 | @@ -503,7 +509,7 @@ | |||
128 | 503 | /** | 509 | /** |
129 | 504 | * SignonAuthSessionProcessCb: | 510 | * SignonAuthSessionProcessCb: |
130 | 505 | * @self: the #SignonAuthSession. | 511 | * @self: the #SignonAuthSession. |
132 | 506 | * @session_data: (transfer full) (element-type utf8 GValue): a dictionary with | 512 | * @session_data: (transfer none) (element-type utf8 GValue): a dictionary with |
133 | 507 | * the response. | 513 | * the response. |
134 | 508 | * @error: a #GError if an error occurred, %NULL otherwise. | 514 | * @error: a #GError if an error occurred, %NULL otherwise. |
135 | 509 | * @user_data: the user data that was passed when installing this callback. | 515 | * @user_data: the user data that was passed when installing this callback. |
136 | @@ -763,19 +769,8 @@ | |||
137 | 763 | DEBUG ("remote object unregistered"); | 769 | DEBUG ("remote object unregistered"); |
138 | 764 | 770 | ||
139 | 765 | if (priv->proxy) | 771 | if (priv->proxy) |
144 | 766 | { | 772 | destroy_proxy (priv); |
141 | 767 | g_object_unref (priv->proxy); | ||
142 | 768 | priv->proxy = NULL; | ||
143 | 769 | } | ||
145 | 770 | 773 | ||
146 | 771 | /* | ||
147 | 772 | * as remote object is destroyed only | ||
148 | 773 | * when the session core is destroyed, | ||
149 | 774 | * so there should not be any processes | ||
150 | 775 | * running | ||
151 | 776 | * */ | ||
152 | 777 | priv->busy = FALSE; | ||
153 | 778 | priv->canceled = FALSE; | ||
154 | 779 | _signon_object_not_ready(self); | 774 | _signon_object_not_ready(self); |
155 | 780 | } | 775 | } |
156 | 781 | 776 | ||
157 | 782 | 777 | ||
158 | === modified file 'libsignon-glib/signon-identity.h' | |||
159 | --- libsignon-glib/signon-identity.h 2012-01-27 10:24:27 +0000 | |||
160 | +++ libsignon-glib/signon-identity.h 2014-12-09 13:40:34 +0000 | |||
161 | @@ -165,7 +165,7 @@ | |||
162 | 165 | /** | 165 | /** |
163 | 166 | * SignonIdentityInfoCb: | 166 | * SignonIdentityInfoCb: |
164 | 167 | * @self: the #SignonIdentity. | 167 | * @self: the #SignonIdentity. |
166 | 168 | * @info: the #SignonIdentityInfo for @self. | 168 | * @info: (transfer none): the #SignonIdentityInfo for @self. |
167 | 169 | * @error: a #GError if an error occurred, or %NULL otherwise. | 169 | * @error: a #GError if an error occurred, or %NULL otherwise. |
168 | 170 | * @user_data: the user data that was passed when installing this callback. | 170 | * @user_data: the user data that was passed when installing this callback. |
169 | 171 | * | 171 | * |
170 | 172 | 172 | ||
171 | === modified file 'libsignon-glib/signon.vapi' | |||
172 | --- libsignon-glib/signon.vapi 2012-07-16 12:29:34 +0000 | |||
173 | +++ libsignon-glib/signon.vapi 2014-12-09 13:40:34 +0000 | |||
174 | @@ -6,8 +6,8 @@ | |||
175 | 6 | public class AuthService : GLib.Object { | 6 | public class AuthService : GLib.Object { |
176 | 7 | [CCode (has_construct_function = false)] | 7 | [CCode (has_construct_function = false)] |
177 | 8 | public AuthService (); | 8 | public AuthService (); |
180 | 9 | public void query_mechanisms (string method, Signon.QueryMechanismCb cb); | 9 | public void query_mechanisms (string method, [CCode (scope = "async")] owned Signon.QueryMechanismCb cb); |
181 | 10 | public void query_methods (Signon.QueryMethodsCb cb); | 10 | public void query_methods ([CCode (scope = "async")] owned Signon.QueryMethodsCb cb); |
182 | 11 | } | 11 | } |
183 | 12 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", type_id = "signon_auth_session_get_type ()")] | 12 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", type_id = "signon_auth_session_get_type ()")] |
184 | 13 | public class AuthSession : GLib.Object { | 13 | public class AuthSession : GLib.Object { |
185 | @@ -15,9 +15,11 @@ | |||
186 | 15 | public AuthSession (uint id, string method_name) throws GLib.Error; | 15 | public AuthSession (uint id, string method_name) throws GLib.Error; |
187 | 16 | public void cancel (); | 16 | public void cancel (); |
188 | 17 | public unowned string get_method (); | 17 | public unowned string get_method (); |
192 | 18 | public void process (GLib.HashTable<string,GLib.Value?> session_data, string mechanism, Signon.AuthSessionProcessCb cb); | 18 | [Deprecated (since = "1.8")] |
193 | 19 | public void query_available_mechanisms (string wanted_mechanisms, Signon.AuthSessionQueryAvailableMechanismsCb cb); | 19 | public void process (GLib.HashTable<string,GLib.Value?> session_data, string mechanism, [CCode (scope = "async")] owned Signon.AuthSessionProcessCb cb); |
194 | 20 | public signal void state_changed (int object, string p0); | 20 | public async GLib.Variant process_async (GLib.Variant session_data, string mechanism, GLib.Cancellable? cancellable) throws GLib.Error; |
195 | 21 | public void query_available_mechanisms (string wanted_mechanisms, [CCode (scope = "async")] owned Signon.AuthSessionQueryAvailableMechanismsCb cb); | ||
196 | 22 | public signal void state_changed (int state, string message); | ||
197 | 21 | } | 23 | } |
198 | 22 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", type_id = "signon_identity_get_type ()")] | 24 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", type_id = "signon_identity_get_type ()")] |
199 | 23 | public class Identity : GLib.Object { | 25 | public class Identity : GLib.Object { |
200 | @@ -28,12 +30,12 @@ | |||
201 | 28 | [CCode (has_construct_function = false)] | 30 | [CCode (has_construct_function = false)] |
202 | 29 | public Identity.from_db (uint32 id); | 31 | public Identity.from_db (uint32 id); |
203 | 30 | public unowned GLib.Error get_last_error (); | 32 | public unowned GLib.Error get_last_error (); |
206 | 31 | public void query_info (Signon.IdentityInfoCb cb); | 33 | public void query_info ([CCode (scope = "async")] owned Signon.IdentityInfoCb cb); |
207 | 32 | public void remove (Signon.IdentityRemovedCb cb, void* user_data); | 34 | public void remove ([CCode (scope = "async")] owned Signon.IdentityRemovedCb cb, void* user_data); |
208 | 33 | public void remove_reference (string reference, Signon.IdentityReferenceRemovedCb cb, void* user_data); | 35 | public void remove_reference (string reference, Signon.IdentityReferenceRemovedCb cb, void* user_data); |
212 | 34 | public void store_credentials_with_args (string username, string secret, bool store_secret, GLib.HashTable<string,string[]> methods, string caption, string realms, string access_control_list, Signon.IdentityType type, Signon.IdentityStoreCredentialsCb cb); | 36 | public void store_credentials_with_args (string username, string secret, bool store_secret, GLib.HashTable<string,string[]> methods, string caption, string realms, string access_control_list, Signon.IdentityType type, [CCode (scope = "async")] owned Signon.IdentityStoreCredentialsCb cb); |
213 | 35 | public void store_credentials_with_info (Signon.IdentityInfo info, Signon.IdentityStoreCredentialsCb cb); | 37 | public void store_credentials_with_info (Signon.IdentityInfo info, [CCode (scope = "async")] owned Signon.IdentityStoreCredentialsCb cb); |
214 | 36 | public void verify_secret (string secret, Signon.IdentityVerifyCb cb); | 38 | public void verify_secret (string secret, [CCode (scope = "async")] owned Signon.IdentityVerifyCb cb); |
215 | 37 | [NoAccessorMethod] | 39 | [NoAccessorMethod] |
216 | 38 | public uint id { get; set; } | 40 | public uint id { get; set; } |
217 | 39 | [HasEmitter] | 41 | [HasEmitter] |
218 | @@ -65,7 +67,7 @@ | |||
219 | 65 | public void set_secret (string secret, bool store_secret); | 67 | public void set_secret (string secret, bool store_secret); |
220 | 66 | public void set_username (string username); | 68 | public void set_username (string username); |
221 | 67 | } | 69 | } |
223 | 68 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", cprefix = "SIGNON_IDENTITY_TYPE_")] | 70 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", cprefix = "SIGNON_IDENTITY_TYPE_", type_id = "signon_identity_type_get_type ()")] |
224 | 69 | [Flags] | 71 | [Flags] |
225 | 70 | public enum IdentityType { | 72 | public enum IdentityType { |
226 | 71 | OTHER, | 73 | OTHER, |
227 | @@ -73,7 +75,7 @@ | |||
228 | 73 | WEB, | 75 | WEB, |
229 | 74 | NETWORK | 76 | NETWORK |
230 | 75 | } | 77 | } |
232 | 76 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", cprefix = "SIGNON_POLICY_")] | 78 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", cprefix = "SIGNON_POLICY_", type_id = "signon_session_data_ui_policy_get_type ()")] |
233 | 77 | public enum SessionDataUiPolicy { | 79 | public enum SessionDataUiPolicy { |
234 | 78 | DEFAULT, | 80 | DEFAULT, |
235 | 79 | REQUEST_PASSWORD, | 81 | REQUEST_PASSWORD, |
236 | @@ -120,7 +122,7 @@ | |||
237 | 120 | public static GLib.Quark quark (); | 122 | public static GLib.Quark quark (); |
238 | 121 | } | 123 | } |
239 | 122 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 3.9)] | 124 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 3.9)] |
241 | 123 | public delegate void AuthSessionProcessCb (Signon.AuthSession self, owned GLib.HashTable<string,GLib.Value?> session_data, GLib.Error error); | 125 | public delegate void AuthSessionProcessCb (Signon.AuthSession self, GLib.HashTable<string,GLib.Value?> session_data, GLib.Error error); |
242 | 124 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 3.9)] | 126 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 3.9)] |
243 | 125 | public delegate void AuthSessionQueryAvailableMechanismsCb (Signon.AuthSession self, [CCode (array_length = false, array_null_terminated = true)] owned string[] mechanisms, GLib.Error error); | 127 | public delegate void AuthSessionQueryAvailableMechanismsCb (Signon.AuthSession self, [CCode (array_length = false, array_null_terminated = true)] owned string[] mechanisms, GLib.Error error); |
244 | 126 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 3.9)] | 128 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 3.9)] |
245 | @@ -142,9 +144,9 @@ | |||
246 | 142 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 2.9)] | 144 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 2.9)] |
247 | 143 | public delegate void IdentityVoidCb (Signon.Identity self, GLib.Error error); | 145 | public delegate void IdentityVoidCb (Signon.Identity self, GLib.Error error); |
248 | 144 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 4.9)] | 146 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 4.9)] |
250 | 145 | public delegate void QueryMechanismCb (Signon.AuthService auth_service, string method, [CCode (array_length = false, array_null_terminated = true)] owned string[] mechanisms, GLib.Error error); | 147 | public delegate void QueryMechanismCb (Signon.AuthService auth_service, string method, [CCode (array_length = false, array_null_terminated = true)] string[] mechanisms, GLib.Error error); |
251 | 146 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 3.9)] | 148 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 3.9)] |
253 | 147 | public delegate void QueryMethodsCb (Signon.AuthService auth_service, [CCode (array_length = false, array_null_terminated = true)] owned string[] methods, GLib.Error error); | 149 | public delegate void QueryMethodsCb (Signon.AuthService auth_service, [CCode (array_length = false, array_null_terminated = true)] string[] methods, GLib.Error error); |
254 | 148 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", cname = "SIGNON_SESSION_DATA_CAPTION")] | 150 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", cname = "SIGNON_SESSION_DATA_CAPTION")] |
255 | 149 | public const string SESSION_DATA_CAPTION; | 151 | public const string SESSION_DATA_CAPTION; |
256 | 150 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", cname = "SIGNON_SESSION_DATA_PROXY")] | 152 | [CCode (cheader_filename = "libsignon-glib/signon-glib.h", cname = "SIGNON_SESSION_DATA_PROXY")] |
257 | 151 | 153 | ||
258 | === modified file 'tests/check_signon.c' | |||
259 | --- tests/check_signon.c 2013-06-05 07:34:33 +0000 | |||
260 | +++ tests/check_signon.c 2014-12-09 13:40:34 +0000 | |||
261 | @@ -648,6 +648,7 @@ | |||
262 | 648 | { | 648 | { |
263 | 649 | SignonIdentityInfo *info; | 649 | SignonIdentityInfo *info; |
264 | 650 | SignonIdentity *identity; | 650 | SignonIdentity *identity; |
265 | 651 | const gchar *const acl[] = { "*", NULL }; | ||
266 | 651 | 652 | ||
267 | 652 | g_debug("%s", G_STRFUNC); | 653 | g_debug("%s", G_STRFUNC); |
268 | 653 | 654 | ||
269 | @@ -659,6 +660,7 @@ | |||
270 | 659 | 660 | ||
271 | 660 | info = signon_identity_info_new (); | 661 | info = signon_identity_info_new (); |
272 | 661 | signon_identity_info_set_username (info, "Nice user"); | 662 | signon_identity_info_set_username (info, "Nice user"); |
273 | 663 | signon_identity_info_set_access_control_list (info, acl); | ||
274 | 662 | 664 | ||
275 | 663 | signon_identity_store_credentials_with_info (identity, | 665 | signon_identity_store_credentials_with_info (identity, |
276 | 664 | info, | 666 | info, |
277 | @@ -716,6 +718,7 @@ | |||
278 | 716 | { | 718 | { |
279 | 717 | SignonIdentity *identity; | 719 | SignonIdentity *identity; |
280 | 718 | GHashTable *methods; | 720 | GHashTable *methods; |
281 | 721 | const gchar *const acl[] = { "*", NULL }; | ||
282 | 719 | guint id = 0; | 722 | guint id = 0; |
283 | 720 | 723 | ||
284 | 721 | identity = signon_identity_new(NULL, NULL); | 724 | identity = signon_identity_new(NULL, NULL); |
285 | @@ -728,7 +731,7 @@ | |||
286 | 728 | methods, | 731 | methods, |
287 | 729 | "caption", | 732 | "caption", |
288 | 730 | NULL, | 733 | NULL, |
290 | 731 | NULL, | 734 | acl, |
291 | 732 | 0, | 735 | 0, |
292 | 733 | new_identity_store_credentials_cb, | 736 | new_identity_store_credentials_cb, |
293 | 734 | &id); | 737 | &id); |
294 | @@ -788,7 +791,8 @@ | |||
295 | 788 | fail_unless (error != NULL); | 791 | fail_unless (error != NULL); |
296 | 789 | 792 | ||
297 | 790 | fail_unless (error->domain == SIGNON_ERROR); | 793 | fail_unless (error->domain == SIGNON_ERROR); |
299 | 791 | fail_unless (error->code == SIGNON_ERROR_IDENTITY_NOT_FOUND); | 794 | fail_unless (error->code == SIGNON_ERROR_IDENTITY_NOT_FOUND || |
300 | 795 | error->code == SIGNON_ERROR_PERMISSION_DENIED); | ||
301 | 792 | 796 | ||
302 | 793 | end_test (); | 797 | end_test (); |
303 | 794 | } | 798 | } |
304 | @@ -880,6 +884,8 @@ | |||
305 | 880 | 884 | ||
306 | 881 | START_TEST(test_verify_secret_identity) | 885 | START_TEST(test_verify_secret_identity) |
307 | 882 | { | 886 | { |
308 | 887 | const gchar *const acl[] = { "*", NULL }; | ||
309 | 888 | |||
310 | 883 | g_debug("%s", G_STRFUNC); | 889 | g_debug("%s", G_STRFUNC); |
311 | 884 | SignonIdentity *idty = signon_identity_new(NULL, NULL); | 890 | SignonIdentity *idty = signon_identity_new(NULL, NULL); |
312 | 885 | fail_unless (idty != NULL); | 891 | fail_unless (idty != NULL); |
313 | @@ -899,7 +905,7 @@ | |||
314 | 899 | methods, | 905 | methods, |
315 | 900 | caption, | 906 | caption, |
316 | 901 | NULL, | 907 | NULL, |
318 | 902 | NULL, | 908 | acl, |
319 | 903 | 0, | 909 | 0, |
320 | 904 | store_credentials_identity_cb, | 910 | store_credentials_identity_cb, |
321 | 905 | NULL); | 911 | NULL); |
322 | @@ -1069,6 +1075,7 @@ | |||
323 | 1069 | 1075 | ||
324 | 1070 | static SignonIdentityInfo *create_standard_info() | 1076 | static SignonIdentityInfo *create_standard_info() |
325 | 1071 | { | 1077 | { |
326 | 1078 | const gchar *const acl[] = { "*", NULL }; | ||
327 | 1072 | g_debug("%s", G_STRFUNC); | 1079 | g_debug("%s", G_STRFUNC); |
328 | 1073 | SignonIdentityInfo *info = signon_identity_info_new (); | 1080 | SignonIdentityInfo *info = signon_identity_info_new (); |
329 | 1074 | signon_identity_info_set_username (info, "James Bond"); | 1081 | signon_identity_info_set_username (info, "James Bond"); |
330 | @@ -1085,12 +1092,15 @@ | |||
331 | 1085 | signon_identity_info_set_method (info, "method1", (const gchar **)mechanisms); | 1092 | signon_identity_info_set_method (info, "method1", (const gchar **)mechanisms); |
332 | 1086 | signon_identity_info_set_method (info, "method2", (const gchar **)mechanisms); | 1093 | signon_identity_info_set_method (info, "method2", (const gchar **)mechanisms); |
333 | 1087 | signon_identity_info_set_method (info, "method3", (const gchar **)mechanisms); | 1094 | signon_identity_info_set_method (info, "method3", (const gchar **)mechanisms); |
334 | 1095 | signon_identity_info_set_access_control_list (info, acl); | ||
335 | 1088 | 1096 | ||
336 | 1089 | return info; | 1097 | return info; |
337 | 1090 | } | 1098 | } |
338 | 1091 | 1099 | ||
339 | 1092 | START_TEST(test_info_identity) | 1100 | START_TEST(test_info_identity) |
340 | 1093 | { | 1101 | { |
341 | 1102 | const gchar *const acl[] = { "*", NULL }; | ||
342 | 1103 | |||
343 | 1094 | g_debug("%s", G_STRFUNC); | 1104 | g_debug("%s", G_STRFUNC); |
344 | 1095 | SignonIdentity *idty = signon_identity_new(); | 1105 | SignonIdentity *idty = signon_identity_new(); |
345 | 1096 | fail_unless (idty != NULL); | 1106 | fail_unless (idty != NULL); |
346 | @@ -1114,7 +1124,7 @@ | |||
347 | 1114 | methods, | 1124 | methods, |
348 | 1115 | "caption", | 1125 | "caption", |
349 | 1116 | NULL, | 1126 | NULL, |
351 | 1117 | NULL, | 1127 | acl, |
352 | 1118 | 0, | 1128 | 0, |
353 | 1119 | store_credentials_identity_cb, | 1129 | store_credentials_identity_cb, |
354 | 1120 | NULL); | 1130 | NULL); |
FAILED: Continuous integration, rev:152 jenkins. qa.ubuntu. com/job/ libsignon- glib-ci/ 8/ jenkins. qa.ubuntu. com/job/ libsignon- glib-vivid- amd64-ci/ 1 jenkins. qa.ubuntu. com/job/ libsignon- glib-vivid- armhf-ci/ 1/console jenkins. qa.ubuntu. com/job/ libsignon- glib-vivid- i386-ci/ 1
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/libsignon- glib-ci/ 8/rebuild
http://