[libgdata/offline-testing] tests: Add trace file testing support to the ClientLogin test suite
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata/offline-testing] tests: Add trace file testing support to the ClientLogin test suite
- Date: Tue, 30 Jul 2013 08:28:02 +0000 (UTC)
commit 5fa38a44bd9d93c4942393148436ed97e1d460e5
Author: Philip Withnall <philip tecnocode co uk>
Date: Mon Jul 29 17:04:49 2013 +0200
tests: Add trace file testing support to the ClientLogin test suite
gdata/tests/client-login-authorizer.c | 118 +++++++++++++-------
.../client-login-authorizer-authenticate-async | 27 +++++
...-authorizer-authenticate-async-multiple-domains | 54 +++++++++
.../client-login-authorizer-authenticate-sync | 27 +++++
...login-authorizer-authenticate-sync-bad-password | 25 ++++
...n-authorizer-authenticate-sync-multiple-domains | 54 +++++++++
...etup-client-login-authorizer-data-authenticated | 27 +++++
7 files changed, 292 insertions(+), 40 deletions(-)
---
diff --git a/gdata/tests/client-login-authorizer.c b/gdata/tests/client-login-authorizer.c
index 06b6001..03d9f6d 100644
--- a/gdata/tests/client-login-authorizer.c
+++ b/gdata/tests/client-login-authorizer.c
@@ -23,6 +23,7 @@
#include "common.h"
static GThread *main_thread = NULL;
+static GDataMockServer *mock_server = NULL;
static void
test_client_login_authorizer_constructor (void)
@@ -135,9 +136,13 @@ set_up_client_login_authorizer_data_multiple_domains (ClientLoginAuthorizerData
static void
set_up_client_login_authorizer_data_authenticated (ClientLoginAuthorizerData *data, gconstpointer user_data)
{
+ gdata_test_mock_server_start_trace (mock_server, "setup-client-login-authorizer-data-authenticated");
+
data->authorizer = gdata_client_login_authorizer_new ("client-id", GDATA_TYPE_YOUTUBE_SERVICE);
g_assert (gdata_client_login_authorizer_authenticate (data->authorizer, USERNAME, PASSWORD, NULL,
NULL) == TRUE);
connect_to_client_login_authorizer (data);
+
+ gdata_mock_server_end_trace (mock_server);
}
static void
@@ -325,6 +330,8 @@ test_client_login_authorizer_authenticate_sync (ClientLoginAuthorizerData *data,
gboolean success;
GError *error = NULL;
+ gdata_test_mock_server_start_trace (mock_server, "client-login-authorizer-authenticate-sync");
+
pre_test_authentication (data);
/* Authenticate! */
@@ -334,6 +341,8 @@ test_client_login_authorizer_authenticate_sync (ClientLoginAuthorizerData *data,
g_clear_error (&error);
post_test_authentication (data, TRUE);
+
+ gdata_mock_server_end_trace (mock_server);
}
/* Test that authentication using an incorrect password fails */
@@ -344,6 +353,8 @@ test_client_login_authorizer_authenticate_sync_bad_password (ClientLoginAuthoriz
gboolean success;
GError *error = NULL;
+ gdata_test_mock_server_start_trace (mock_server,
"client-login-authorizer-authenticate-sync-bad-password");
+
pre_test_authentication (data);
/* Authenticate! */
@@ -353,6 +364,8 @@ test_client_login_authorizer_authenticate_sync_bad_password (ClientLoginAuthoriz
g_clear_error (&error);
post_test_authentication (data, FALSE);
+
+ gdata_mock_server_end_trace (mock_server);
}
/* Test that authentication against multiple authorization domains simultaneously and synchronously works */
@@ -362,6 +375,8 @@ test_client_login_authorizer_authenticate_sync_multiple_domains (ClientLoginAuth
gboolean success;
GError *error = NULL;
+ gdata_test_mock_server_start_trace (mock_server,
"client-login-authorizer-authenticate-sync-multiple-domains");
+
pre_test_authentication (data);
/* Authenticate! */
@@ -375,6 +390,8 @@ test_client_login_authorizer_authenticate_sync_multiple_domains (ClientLoginAuth
gdata_picasaweb_service_get_primary_authorization_domain ()) == TRUE);
post_test_authentication (data, TRUE);
+
+ gdata_mock_server_end_trace (mock_server);
}
/* Test that synchronous authentication can be cancelled */
@@ -385,6 +402,8 @@ test_client_login_authorizer_authenticate_sync_cancellation (ClientLoginAuthoriz
GCancellable *cancellable;
GError *error = NULL;
+ gdata_test_mock_server_start_trace (mock_server,
"client-login-authorizer-authenticate-sync-cancellation");
+
pre_test_authentication (data);
/* Set up the cancellable */
@@ -400,6 +419,8 @@ test_client_login_authorizer_authenticate_sync_cancellation (ClientLoginAuthoriz
post_test_authentication (data, FALSE);
g_object_unref (cancellable);
+
+ gdata_mock_server_end_trace (mock_server);
}
typedef struct {
@@ -469,6 +490,8 @@ test_client_login_authorizer_authenticate_async_cb (GDataClientLoginAuthorizer *
static void
test_client_login_authorizer_authenticate_async (ClientLoginAuthorizerAsyncData *data, gconstpointer
user_data)
{
+ gdata_test_mock_server_start_trace (mock_server, "client-login-authorizer-authenticate-async");
+
pre_test_authentication ((ClientLoginAuthorizerData*) data);
/* Create a main loop and authenticate */
@@ -476,6 +499,8 @@ test_client_login_authorizer_authenticate_async (ClientLoginAuthorizerAsyncData
(GAsyncReadyCallback)
test_client_login_authorizer_authenticate_async_cb, data);
g_main_loop_run (data->main_loop);
+
+ gdata_mock_server_end_trace (mock_server);
}
static void
@@ -503,6 +528,8 @@ test_client_login_authorizer_authenticate_async_multiple_domains_cb (GDataClient
static void
test_client_login_authorizer_authenticate_async_multiple_domains (ClientLoginAuthorizerAsyncData *data,
gconstpointer user_data)
{
+ gdata_test_mock_server_start_trace (mock_server,
"client-login-authorizer-authenticate-async-multiple-domains");
+
pre_test_authentication ((ClientLoginAuthorizerData*) data);
/* Create a main loop and authenticate */
@@ -511,6 +538,8 @@ test_client_login_authorizer_authenticate_async_multiple_domains (ClientLoginAut
data);
g_main_loop_run (data->main_loop);
+
+ gdata_mock_server_end_trace (mock_server);
}
static void
@@ -536,6 +565,8 @@ test_client_login_authorizer_authenticate_async_cancellation (ClientLoginAuthori
{
GCancellable *cancellable;
+ gdata_test_mock_server_start_trace (mock_server,
"client-login-authorizer-authenticate-async-cancellation");
+
pre_test_authentication ((ClientLoginAuthorizerData*) data);
/* Set up the cancellable */
@@ -550,6 +581,8 @@ test_client_login_authorizer_authenticate_async_cancellation (ClientLoginAuthori
g_main_loop_run (data->main_loop);
g_object_unref (cancellable);
+
+ gdata_mock_server_end_trace (mock_server);
}
/* Test that gdata_authorizer_refresh_authorization() is a no-op (when authorised or not) */
@@ -672,8 +705,15 @@ test_client_login_authorizer_process_request_insecure (ClientLoginAuthorizerData
int
main (int argc, char *argv[])
{
+ GFile *trace_directory;
+
gdata_test_init (argc, argv);
+ mock_server = gdata_test_get_mock_server ();
+ trace_directory = g_file_new_for_path ("traces/client-login-authorizer");
+ gdata_mock_server_set_trace_directory (mock_server, trace_directory);
+ g_object_unref (trace_directory);
+
main_thread = g_thread_self ();
g_test_add_func ("/client-login-authorizer/constructor", test_client_login_authorizer_constructor);
@@ -700,46 +740,44 @@ main (int argc, char *argv[])
set_up_client_login_authorizer_data,
test_client_login_authorizer_process_request_unauthenticated,
tear_down_client_login_authorizer_data);
- if (gdata_test_internet () == TRUE) {
- /* Test once with the domain attached and once without */
- g_test_add ("/client-login-authorizer/authenticate/sync", ClientLoginAuthorizerData,
USERNAME, set_up_client_login_authorizer_data,
- test_client_login_authorizer_authenticate_sync,
tear_down_client_login_authorizer_data);
- g_test_add ("/client-login-authorizer/authenticate/sync/no-domain",
ClientLoginAuthorizerData, USERNAME_NO_DOMAIN,
- set_up_client_login_authorizer_data,
test_client_login_authorizer_authenticate_sync,
- tear_down_client_login_authorizer_data);
- g_test_add ("/client-login-authorizer/authenticate/sync/bad-password",
ClientLoginAuthorizerData, USERNAME,
- set_up_client_login_authorizer_data,
test_client_login_authorizer_authenticate_sync_bad_password,
- tear_down_client_login_authorizer_data);
- g_test_add ("/client-login-authorizer/authenticate/sync/multiple-domains",
ClientLoginAuthorizerData, NULL,
- set_up_client_login_authorizer_data_multiple_domains,
test_client_login_authorizer_authenticate_sync_multiple_domains,
- tear_down_client_login_authorizer_data);
- g_test_add ("/client-login-authorizer/authenticate/sync/cancellation",
ClientLoginAuthorizerData, NULL,
- set_up_client_login_authorizer_data,
test_client_login_authorizer_authenticate_sync_cancellation,
- tear_down_client_login_authorizer_data);
-
- /* Async tests */
- g_test_add ("/client-login-authorizer/authenticate/async", ClientLoginAuthorizerAsyncData,
NULL,
- set_up_client_login_authorizer_async_data,
test_client_login_authorizer_authenticate_async,
- tear_down_client_login_authorizer_async_data);
- g_test_add ("/client-login-authorizer/authenticate/async/multiple-domains",
ClientLoginAuthorizerAsyncData, NULL,
- set_up_client_login_authorizer_async_data_multiple_domains,
- test_client_login_authorizer_authenticate_async_multiple_domains,
tear_down_client_login_authorizer_async_data);
- g_test_add ("/client-login-authorizer/authenticate/async/cancellation",
ClientLoginAuthorizerAsyncData, NULL,
- set_up_client_login_authorizer_async_data,
test_client_login_authorizer_authenticate_async_cancellation,
- tear_down_client_login_authorizer_async_data);
-
- /* Miscellaneous other tests which require authentication */
- g_test_add ("/client-login-authorizer/refresh-authorization/authenticated",
ClientLoginAuthorizerData, NULL,
- set_up_client_login_authorizer_data_authenticated,
test_client_login_authorizer_refresh_authorization,
- tear_down_client_login_authorizer_data);
-
- g_test_add ("/client-login-authorizer/process-request/authenticated",
ClientLoginAuthorizerData, NULL,
- set_up_client_login_authorizer_data_authenticated,
test_client_login_authorizer_process_request_authenticated,
- tear_down_client_login_authorizer_data);
- g_test_add ("/client-login-authorizer/process-request/insecure", ClientLoginAuthorizerData,
NULL,
- set_up_client_login_authorizer_data_authenticated,
test_client_login_authorizer_process_request_insecure,
- tear_down_client_login_authorizer_data);
- }
+ /* Test once with the domain attached and once without */
+ g_test_add ("/client-login-authorizer/authenticate/sync", ClientLoginAuthorizerData, USERNAME,
set_up_client_login_authorizer_data,
+ test_client_login_authorizer_authenticate_sync, tear_down_client_login_authorizer_data);
+ g_test_add ("/client-login-authorizer/authenticate/sync/no-domain", ClientLoginAuthorizerData,
USERNAME_NO_DOMAIN,
+ set_up_client_login_authorizer_data, test_client_login_authorizer_authenticate_sync,
+ tear_down_client_login_authorizer_data);
+ g_test_add ("/client-login-authorizer/authenticate/sync/bad-password", ClientLoginAuthorizerData,
USERNAME,
+ set_up_client_login_authorizer_data,
test_client_login_authorizer_authenticate_sync_bad_password,
+ tear_down_client_login_authorizer_data);
+ g_test_add ("/client-login-authorizer/authenticate/sync/multiple-domains", ClientLoginAuthorizerData,
NULL,
+ set_up_client_login_authorizer_data_multiple_domains,
test_client_login_authorizer_authenticate_sync_multiple_domains,
+ tear_down_client_login_authorizer_data);
+ g_test_add ("/client-login-authorizer/authenticate/sync/cancellation", ClientLoginAuthorizerData,
NULL,
+ set_up_client_login_authorizer_data,
test_client_login_authorizer_authenticate_sync_cancellation,
+ tear_down_client_login_authorizer_data);
+
+ /* Async tests */
+ g_test_add ("/client-login-authorizer/authenticate/async", ClientLoginAuthorizerAsyncData, NULL,
+ set_up_client_login_authorizer_async_data,
test_client_login_authorizer_authenticate_async,
+ tear_down_client_login_authorizer_async_data);
+ g_test_add ("/client-login-authorizer/authenticate/async/multiple-domains",
ClientLoginAuthorizerAsyncData, NULL,
+ set_up_client_login_authorizer_async_data_multiple_domains,
+ test_client_login_authorizer_authenticate_async_multiple_domains,
tear_down_client_login_authorizer_async_data);
+ g_test_add ("/client-login-authorizer/authenticate/async/cancellation",
ClientLoginAuthorizerAsyncData, NULL,
+ set_up_client_login_authorizer_async_data,
test_client_login_authorizer_authenticate_async_cancellation,
+ tear_down_client_login_authorizer_async_data);
+
+ /* Miscellaneous other tests which require authentication */
+ g_test_add ("/client-login-authorizer/refresh-authorization/authenticated",
ClientLoginAuthorizerData, NULL,
+ set_up_client_login_authorizer_data_authenticated,
test_client_login_authorizer_refresh_authorization,
+ tear_down_client_login_authorizer_data);
+
+ g_test_add ("/client-login-authorizer/process-request/authenticated", ClientLoginAuthorizerData, NULL,
+ set_up_client_login_authorizer_data_authenticated,
test_client_login_authorizer_process_request_authenticated,
+ tear_down_client_login_authorizer_data);
+ g_test_add ("/client-login-authorizer/process-request/insecure", ClientLoginAuthorizerData, NULL,
+ set_up_client_login_authorizer_data_authenticated,
test_client_login_authorizer_process_request_insecure,
+ tear_down_client_login_authorizer_data);
return g_test_run ();
}
diff --git a/gdata/tests/traces/client-login-authorizer/client-login-authorizer-authenticate-async
b/gdata/tests/traces/client-login-authorizer/client-login-authorizer-authenticate-async
new file mode 100644
index 0000000..86bbaf9
--- /dev/null
+++ b/gdata/tests/traces/client-login-authorizer/client-login-authorizer-authenticate-async
@@ -0,0 +1,27 @@
+> POST /accounts/ClientLogin HTTP/1.1
+> Soup-Debug-Timestamp: 1375110168
+> Soup-Debug: SoupSession 1 (0x64f4c0), SoupMessage 1 (0x94f680), SoupSocket 1 (0x9736a0)
+> Host: www.google.com
+> Content-Type: application/x-www-form-urlencoded
+> Accept-Encoding: gzip, deflate
+> Connection: Keep-Alive
+>
+>
accountType=HOSTED%5FOR%5FGOOGLE&Email=libgdata%2Etest%40gmail%2Ecom&Passwd=gdata%2Dgdata&service=youtube&source=client%2Did
+
+< HTTP/1.1 200 OK
+< Soup-Debug-Timestamp: 1375110168
+< Soup-Debug: SoupMessage 1 (0x94f680)
+< Content-Type: text/plain
+< Cache-control: no-cache, no-store
+< Pragma: no-cache
+< Expires: Mon, 01-Jan-1990 00:00:00 GMT
+< Date: Mon, 29 Jul 2013 15:02:48 GMT
+< X-Content-Type-Options: nosniff
+< X-XSS-Protection: 1; mode=block
+< Content-Length: 881
+< Server: GSE
+<
+<
SID=DQAAAMwAAADmP_tUgWHXHh6NbcApflUSoY1-8C9N1orEKV9DtPUnVb5PKcPiXPnJZsD9MyHZ2Ez-P88hJyhCkaAVPJE17JcTkklWPoKR_czKzlC9zMBmouo0XzVLsIcb1cYf1lsvJxizRKmRqrDwDi3ROuRBfLA0dNKgn4jzNIL3b6RDpJzLRJUoM6BQHYFv5iddFQig5GXoH60BoTLiZy1TjceDtfFRCbEHz0TvY8-FhzqI_T6zNsJugtJ9QJ-2_wA5MVnoK12QXK-3U0eZl3pYudpxCtQ2
+<
LSID=DQAAAM8AAAABmiv6l-cKNjg-5_RGZGbQEkV4uJHvNXZJa3CwDdr5FddDXNMA-TBc50Gal5K0LQ7Dh0998X2Smacq1PYDb2GHAbYPfT53XnYvP12ZpYqhzU1rTAY2sYch-N5qhJn4aVbW1JJouqiz4SDRrv8E8xrrkcjiD5RwTCTH0PPii-MEOYauoDZ8KSuaSp5Ac0aZtpQqH1xXhQX1FDQVbbsg2lYidVg5_aDyIrfz29mL7IAH-45rni9naUc2Ssn360wmX6oWlr3_9zCU9SYKjBtdOYAv
+<
Auth=DQAAAM4AAAABmiv6l-cKNjg-5_RGZGbQEkV4uJHvNXZJa3CwDdr5FddDXNMA-TBc50Gal5K0LQ5yi9X9_zrGCpiq0Xl_xGhOhn8r2wXprLZAi-R9XKAY8Lh7oaZbvNSB1budL8svMXnfpAOv8utorFpOcf-Ikb-ZqtCBEt2dJSFZ5egoy370rLrOl-vQoWuZR_413FEpdd21Cza4gaE2ppkAuPwfMi280t9bxDej6yOvx-xfMEubg_uvrpfUM9jh6u349GgmA3xeyQvZrgYINIHtzOpWHsXL
+
diff --git
a/gdata/tests/traces/client-login-authorizer/client-login-authorizer-authenticate-async-cancellation
b/gdata/tests/traces/client-login-authorizer/client-login-authorizer-authenticate-async-cancellation
new file mode 100644
index 0000000..e69de29
diff --git
a/gdata/tests/traces/client-login-authorizer/client-login-authorizer-authenticate-async-multiple-domains
b/gdata/tests/traces/client-login-authorizer/client-login-authorizer-authenticate-async-multiple-domains
new file mode 100644
index 0000000..8198cda
--- /dev/null
+++ b/gdata/tests/traces/client-login-authorizer/client-login-authorizer-authenticate-async-multiple-domains
@@ -0,0 +1,54 @@
+> POST /accounts/ClientLogin HTTP/1.1
+> Soup-Debug-Timestamp: 1375110170
+> Soup-Debug: SoupSession 1 (0x64f4c0), SoupMessage 1 (0x7fffe00148e0), SoupSocket 1 (0x973760)
+> Host: www.google.com
+> Content-Type: application/x-www-form-urlencoded
+> Accept-Encoding: gzip, deflate
+> Connection: Keep-Alive
+>
+>
accountType=HOSTED%5FOR%5FGOOGLE&Email=libgdata%2Etest%40gmail%2Ecom&Passwd=gdata%2Dgdata&service=lh2&source=client%2Did
+
+< HTTP/1.1 200 OK
+< Soup-Debug-Timestamp: 1375110170
+< Soup-Debug: SoupMessage 1 (0x7fffe00148e0)
+< Content-Type: text/plain
+< Cache-control: no-cache, no-store
+< Pragma: no-cache
+< Expires: Mon, 01-Jan-1990 00:00:00 GMT
+< Date: Mon, 29 Jul 2013 15:02:50 GMT
+< X-Content-Type-Options: nosniff
+< X-XSS-Protection: 1; mode=block
+< Content-Length: 881
+< Server: GSE
+<
+<
SID=DQAAAMwAAADyQT1vzewdUG6u2-LIIy1B4wmmAdKzxhvEgHnLY4ERbKQLY6VFF1L6NfI-AsMSRFehDF_dFUfc2GlIwTLV2dbfG-zMZJJt4YDTzFPv3RQWzxiF_2dMjdKQ2xiz57vwp3L-jmJRtzYlywj6ZYTQzytUMUdT24X9bNwD9JKUyiZwq_XDQV7ZjLLrHZI8AJkex6RFZg-dGbdN0An8bkAonS6wounyQmQTrP0Wmdt_DrVAbQfv67M_7YASKg_VdB5WPkzgPKKnAe_WbZfFcxI4qYwt
+<
LSID=DQAAAM8AAADL5a5ZSpWbRw4eN3FeEt5oiS6l4JAd0Tb0KIUy9GR2OAgfwUGtzgmyyoWNrbBBy3HT8-M8edREQSp-tTS90Ma4xioQEeLr6z6W0XggZ4pX1OjAOHVfeHIAUH6XTB_bIk1ToRaYys3Gb2VJSDPWwNPpiOrDoKMfc8oTmP0OSawNxsdj7xQgNel76j2-o4SWsJD_9os78Se7MWJUqz58j9DYrabY8vFGQ1HMxYs1HJLDOXfzNPW_zSJRofnKggzWifn4BjZzXULTeIUUyBfe2fqF
+<
Auth=DQAAAM4AAADL5a5ZSpWbRw4eN3FeEt5oiS6l4JAd0Tb0KIUy9GR2OAgfwUGtzgmyyoWNrbBBy3FYlhWiZLmMfRgM7A2mohEVjPv-9nzdDjEAgE5B66UzTyQ6RxiHx-P2DSCSQ8DCwG7ivoBnEvHOIHllG9dVshK_hA9FsXEdfuRS_jKgqu7mSkeONOtZ2q_Vfu1pVZmPQpe0_1hTMoQHKUtyqKyXX2q-2V7J_nJgOes4GzrJ1IGb2AjT857LZt4HA-92fCmEtCR5Os2SEcwvFfqEIQ00cHhi
+
+> POST /accounts/ClientLogin HTTP/1.1
+> Soup-Debug-Timestamp: 1375110170
+> Soup-Debug: SoupSession 1 (0x64f4c0), SoupMessage 2 (0x7fffe0014ac0), SoupSocket 2 (0x7fffe00060b0)
+> Host: www.google.com
+> Content-Type: application/x-www-form-urlencoded
+> Accept-Encoding: gzip, deflate
+> Connection: Keep-Alive
+>
+>
accountType=HOSTED%5FOR%5FGOOGLE&Email=libgdata%2Etest%40gmail%2Ecom&Passwd=gdata%2Dgdata&service=youtube&source=client%2Did
+
+< HTTP/1.1 200 OK
+< Soup-Debug-Timestamp: 1375110170
+< Soup-Debug: SoupMessage 2 (0x7fffe0014ac0)
+< Content-Type: text/plain
+< Cache-control: no-cache, no-store
+< Pragma: no-cache
+< Expires: Mon, 01-Jan-1990 00:00:00 GMT
+< Date: Mon, 29 Jul 2013 15:02:50 GMT
+< X-Content-Type-Options: nosniff
+< X-XSS-Protection: 1; mode=block
+< Content-Length: 881
+< Server: GSE
+<
+<
SID=DQAAAMwAAADyQT1vzewdUG6u2-LIIy1B4wmmAdKzxhvEgHnLY4ERbKQLY6VFF1L6NfI-AsMSRFehDF_dFUfc2GlIwTLV2dbfG-zMZJJt4YDTzFPv3RQWzxiF_2dMjdKQ2xiz57vwp3L-jmJRtzYlywj6ZYTQzytUMUdT24X9bNwD9JKUyiZwq_XDQV7ZjLLrHZI8AJkex6RFZg-dGbdN0An8bkAonS6wYsz70of-EtqXQFzfwu63hGxwEG27auFbbVkaCZQR0KzME0YCAIuDHw1u8GmTYFZ2
+<
LSID=DQAAAM8AAADL5a5ZSpWbRw4eN3FeEt5oiS6l4JAd0Tb0KIUy9GR2OAgfwUGtzgmyyoWNrbBBy3HT8-M8edREQSp-tTS90Ma4xioQEeLr6z6W0XggZ4pX1OjAOHVfeHIAUH6XTB_bIk1ToRaYys3Gb2VJSDPWwNPpiOrDoKMfc8oTmP0OSawNxsdj7xQgNel76j2-o4SWsJD_9os78Se7MWJUqz58j9DYvkTok12MLUsqcRw7y5OSBWuYwYrQY_uhLBgNp25L7i59m-k0BNuQCE8xJ3_Ph6KA
+<
Auth=DQAAAM4AAADL5a5ZSpWbRw4eN3FeEt5oiS6l4JAd0Tb0KIUy9GR2OAgfwUGtzgmyyoWNrbBBy3HKydTEG30TtszT2DVOZz3JxWAQ5YJ9jpHolcnlOAvAhtDrJEEbQxAf454jMDe0qRVmBHKn_eXqxJ99ETf8xRLfykBETMABfSrxHrOIjBtsqkQDppF8t13tOvX_k8oiTKUIvSRxccozsGFFufSm2rudLesDmVUil0X45VNPkND-wgPtZ94cDjQWAy9OryUNX6tAt98IzHYfHuyCNMB1iHrL
+
diff --git a/gdata/tests/traces/client-login-authorizer/client-login-authorizer-authenticate-sync
b/gdata/tests/traces/client-login-authorizer/client-login-authorizer-authenticate-sync
new file mode 100644
index 0000000..371e19b
--- /dev/null
+++ b/gdata/tests/traces/client-login-authorizer/client-login-authorizer-authenticate-sync
@@ -0,0 +1,27 @@
+> POST /accounts/ClientLogin HTTP/1.1
+> Soup-Debug-Timestamp: 1375110168
+> Soup-Debug: SoupSession 1 (0x64f5d0), SoupMessage 1 (0x94f0e0), SoupSocket 1 (0x9733a0)
+> Host: www.google.com
+> Content-Type: application/x-www-form-urlencoded
+> Accept-Encoding: gzip, deflate
+> Connection: Keep-Alive
+>
+>
accountType=HOSTED%5FOR%5FGOOGLE&Email=libgdata%2Etest&Passwd=gdata%2Dgdata&service=youtube&source=client%2Did
+
+< HTTP/1.1 200 OK
+< Soup-Debug-Timestamp: 1375110168
+< Soup-Debug: SoupMessage 1 (0x94f0e0)
+< Content-Type: text/plain
+< Cache-control: no-cache, no-store
+< Pragma: no-cache
+< Expires: Mon, 01-Jan-1990 00:00:00 GMT
+< Date: Mon, 29 Jul 2013 15:02:48 GMT
+< X-Content-Type-Options: nosniff
+< X-XSS-Protection: 1; mode=block
+< Content-Length: 881
+< Server: GSE
+<
+<
SID=DQAAAM0AAADmP_tUgWHXHh6NbcApflUSoY1-8C9N1orEKV9DtPUnVb5PKcPiXPnJZsD9MyHZ2Ez-P88hJyhCkaAVPJE17JcTkklWPoKR_czKzlC9zMBmouo0XzVLsIcb1cYf1lsvJxizRKmRqrDwDi3ROuRBfLA0dNKgn4jzNIL3b6RDpJzLRJUoM6BQHYFv5iddFQig5GW1wShnmYMMAIveeJ6osZ53E8HdxKRIgSnb7z1o3U093k6QTxblJm7kYK7gCBNFzFCfgm0BvpkZYrZrqv0blOdQ
+<
LSID=DQAAAM4AAAABmiv6l-cKNjg-5_RGZGbQEkV4uJHvNXZJa3CwDdr5FddDXNMA-TBc50Gal5K0LQ7Dh0998X2Smacq1PYDb2GHAbYPfT53XnYvP12ZpYqhzU1rTAY2sYch-N5qhJn4aVbW1JJouqiz4SDRrv8E8xrrkcjiD5RwTCTH0PPii-MEOYauoDZ8KSuaSp5Ac0aZtpTtbS8_4tawRbZCy04qahKAGzpUL5W9boFSWQ4qYSFbM1dcrs2GItyT_MwHX-N9GAOWTSw1toVC7KA4zFAXMo13
+<
Auth=DQAAAM4AAAABmiv6l-cKNjg-5_RGZGbQEkV4uJHvNXZJa3CwDdr5FddDXNMA-TBc50Gal5K0LQ5yi9X9_zrGCpiq0Xl_xGhOhn8r2wXprLZAi-R9XKAY8Lh7oaZbvNSB1budL8svMXnfpAOv8utorFpOcf-Ikb-ZqtCBEt2dJSFZ5egoy370rLrOl-vQoWuZR_413FEpdd21Cza4gaE2ppkAuPwfMi28W2Hm8EXOEAk1wo8zM0Y5TvMjzfVtKz8Il3Im30vLd6GhvrIOUh4tEDGv1aiBMkFz
+
diff --git
a/gdata/tests/traces/client-login-authorizer/client-login-authorizer-authenticate-sync-bad-password
b/gdata/tests/traces/client-login-authorizer/client-login-authorizer-authenticate-sync-bad-password
new file mode 100644
index 0000000..833c2fb
--- /dev/null
+++ b/gdata/tests/traces/client-login-authorizer/client-login-authorizer-authenticate-sync-bad-password
@@ -0,0 +1,25 @@
+> POST /accounts/ClientLogin HTTP/1.1
+> Soup-Debug-Timestamp: 1375110169
+> Soup-Debug: SoupSession 1 (0x64f6e0), SoupMessage 1 (0x94f2c0), SoupSocket 1 (0x973460)
+> Host: www.google.com
+> Content-Type: application/x-www-form-urlencoded
+> Accept-Encoding: gzip, deflate
+> Connection: Keep-Alive
+>
+>
accountType=HOSTED%5FOR%5FGOOGLE&Email=libgdata%2Etest%40gmail%2Ecom&Passwd=bad%2Dpassword&service=youtube&source=client%2Did
+
+< HTTP/1.1 403 Forbidden
+< Soup-Debug-Timestamp: 1375110169
+< Soup-Debug: SoupMessage 1 (0x94f2c0)
+< Content-Type: text/plain
+< Cache-control: no-cache, no-store
+< Pragma: no-cache
+< Expires: Mon, 01-Jan-1990 00:00:00 GMT
+< Date: Mon, 29 Jul 2013 15:02:49 GMT
+< X-Content-Type-Options: nosniff
+< X-XSS-Protection: 1; mode=block
+< Content-Length: 24
+< Server: GSE
+<
+< Error=BadAuthentication
+
diff --git
a/gdata/tests/traces/client-login-authorizer/client-login-authorizer-authenticate-sync-cancellation
b/gdata/tests/traces/client-login-authorizer/client-login-authorizer-authenticate-sync-cancellation
new file mode 100644
index 0000000..e69de29
diff --git
a/gdata/tests/traces/client-login-authorizer/client-login-authorizer-authenticate-sync-multiple-domains
b/gdata/tests/traces/client-login-authorizer/client-login-authorizer-authenticate-sync-multiple-domains
new file mode 100644
index 0000000..6d24c78
--- /dev/null
+++ b/gdata/tests/traces/client-login-authorizer/client-login-authorizer-authenticate-sync-multiple-domains
@@ -0,0 +1,54 @@
+> POST /accounts/ClientLogin HTTP/1.1
+> Soup-Debug-Timestamp: 1375110169
+> Soup-Debug: SoupSession 1 (0x64f6e0), SoupMessage 1 (0x94f3b0), SoupSocket 1 (0x973520)
+> Host: www.google.com
+> Content-Type: application/x-www-form-urlencoded
+> Accept-Encoding: gzip, deflate
+> Connection: Keep-Alive
+>
+>
accountType=HOSTED%5FOR%5FGOOGLE&Email=libgdata%2Etest%40gmail%2Ecom&Passwd=gdata%2Dgdata&service=lh2&source=client%2Did
+
+< HTTP/1.1 200 OK
+< Soup-Debug-Timestamp: 1375110169
+< Soup-Debug: SoupMessage 1 (0x94f3b0)
+< Content-Type: text/plain
+< Cache-control: no-cache, no-store
+< Pragma: no-cache
+< Expires: Mon, 01-Jan-1990 00:00:00 GMT
+< Date: Mon, 29 Jul 2013 15:02:49 GMT
+< X-Content-Type-Options: nosniff
+< X-XSS-Protection: 1; mode=block
+< Content-Length: 881
+< Server: GSE
+<
+<
SID=DQAAAMwAAAD07FskgfXFNdDMtLDfUapjQKinfmMwhTtuY3V94-cAmdz9eoV6xxpCu3lUly70qLmHPBknwcg9SU91IgYCISZA0CzUcNY-YHkjbrgvJ8feP_VIFO7rttvfwazNrw0QdImUaABg0cSnzwHeOxEltwnplGoL12-fY7BRpsf7l68INZo9gb67NpUII_wz83bWb_z4KWArJOjBNGFILENsdGaju-iFGQP3ZQWkKCDq7P3mx8WisZWyvSpE1KJljzlQFiEyGfWaY5wzPru0DckejS2K
+<
LSID=DQAAAM4AAADbzphieXqjM4jfRZ9O_2EXH9S4WfujAM5nbQYQ2bf3mthINyqd71sVIp-M4YWoOUyRTgsC9F1id10obKSkOYfmKflNprDeTFzgh-Is7afsYkIvRs2mcSpFGM4-TH57iEJQVRlrn0iS4vliS4UJG1u6spbhJtm937oDYNfndhzfThpGVtYFXpq6I9Qav2GMWbzDiADm0oFiFCijO9OCjgvXbXt4ixoLkOdCHFa-kPs64fcT9W_Lq6xVoofS1tX5RmU49NnBCLE7HOnVAELiOnnY
+<
Auth=DQAAAM4AAADbzphieXqjM4jfRZ9O_2EXH9S4WfujAM5nbQYQ2bf3mthINyqd71sVIp-M4YWoOUwl116nNNvnUOJPySn77VlGJ7mkN5JuVJaCjqgpiCHIH5ZiR0Q1d8lIB2lnkpqGUpkeZ7tqmN5kkXaPEEV8_4Hhzk3DmDrevHyiKYh_NQzYXZvtD_asaOA_RhSKVV8ffnDULiV2mRvewYiGTEAT2TkZxCaOhaZcgcfaF1PWEjgf7ltthUKiSOtWQCAMiTkQPs7jbcmhue4SEZXVGDpbGuFr
+
+> POST /accounts/ClientLogin HTTP/1.1
+> Soup-Debug-Timestamp: 1375110169
+> Soup-Debug: SoupSession 1 (0x64f6e0), SoupMessage 2 (0x94f3b0), SoupSocket 2 (0x9735e0)
+> Host: www.google.com
+> Content-Type: application/x-www-form-urlencoded
+> Accept-Encoding: gzip, deflate
+> Connection: Keep-Alive
+>
+>
accountType=HOSTED%5FOR%5FGOOGLE&Email=libgdata%2Etest%40gmail%2Ecom&Passwd=gdata%2Dgdata&service=youtube&source=client%2Did
+
+< HTTP/1.1 200 OK
+< Soup-Debug-Timestamp: 1375110169
+< Soup-Debug: SoupMessage 2 (0x94f3b0)
+< Content-Type: text/plain
+< Cache-control: no-cache, no-store
+< Pragma: no-cache
+< Expires: Mon, 01-Jan-1990 00:00:00 GMT
+< Date: Mon, 29 Jul 2013 15:02:49 GMT
+< X-Content-Type-Options: nosniff
+< X-XSS-Protection: 1; mode=block
+< Content-Length: 881
+< Server: GSE
+<
+<
SID=DQAAAMwAAAD07FskgfXFNdDMtLDfUapjQKinfmMwhTtuY3V94-cAmdz9eoV6xxpCu3lUly70qLmHPBknwcg9SU91IgYCISZA0CzUcNY-YHkjbrgvJ8feP_VIFO7rttvfwazNrw0QdImUaABg0cSnzwHeOxEltwnplGoL12-fY7BRpsf7l68INZo9gb67NpUII_wz83bWb_z4KWArJOjBNGFILENsdGajV-_wXsp1yWU2wdVU3Iv5BM54QgU_2Fa1N0KiO3Hl7nP0lKLrixvPapog-cmVXL6h
+<
LSID=DQAAAM4AAADbzphieXqjM4jfRZ9O_2EXH9S4WfujAM5nbQYQ2bf3mthINyqd71sVIp-M4YWoOUyRTgsC9F1id10obKSkOYfmKflNprDeTFzgh-Is7afsYkIvRs2mcSpFGM4-TH57iEJQVRlrn0iS4vliS4UJG1u6spbhJtm937oDYNfndhzfThpGVtYFXpq6I9Qav2GMWbzDiADm0oFiFCijO9OCjgvX3Wjt2PtjkzPv_IbQssLsgHuMZrIiDY8fPh4NvDaRZUeT5_Ovk__RCqD1eVhLwhhr
+<
Auth=DQAAAM4AAADbzphieXqjM4jfRZ9O_2EXH9S4WfujAM5nbQYQ2bf3mthINyqd71sVIp-M4YWoOUyqdYB0QClm_Brz7bdTLZBY9x1fkNpIUCpjexl88vcm9VKzACCp1S8ftkpgBWlDnXLrvoc91y0rVEmhjmAsS9Rgwyr4b94oZ0StfpUNt4zh0EgRo5JxEzrqyRnhcBPMPLYsG4G9nDRbpmFvnAMxe_Hiuv5O_Ege8tmgM8EWE6IyKaXBAPuVxrVBQPTE_yxt3rbcOMKVkGHbDyPj9QqbZlFH
+
diff --git a/gdata/tests/traces/client-login-authorizer/setup-client-login-authorizer-data-authenticated
b/gdata/tests/traces/client-login-authorizer/setup-client-login-authorizer-data-authenticated
new file mode 100644
index 0000000..e1d9d53
--- /dev/null
+++ b/gdata/tests/traces/client-login-authorizer/setup-client-login-authorizer-data-authenticated
@@ -0,0 +1,27 @@
+> POST /accounts/ClientLogin HTTP/1.1
+> Soup-Debug-Timestamp: 1375110167
+> Soup-Debug: SoupSession 1 (0x64f2a0), SoupMessage 1 (0x94f590), SoupSocket 1 (0x973220)
+> Host: www.google.com
+> Content-Type: application/x-www-form-urlencoded
+> Accept-Encoding: gzip, deflate
+> Connection: Keep-Alive
+>
+>
accountType=HOSTED%5FOR%5FGOOGLE&Email=libgdata%2Etest%40gmail%2Ecom&Passwd=gdata%2Dgdata&service=youtube&source=client%2Did
+
+< HTTP/1.1 200 OK
+< Soup-Debug-Timestamp: 1375110167
+< Soup-Debug: SoupMessage 1 (0x94f590)
+< Content-Type: text/plain
+< Cache-control: no-cache, no-store
+< Pragma: no-cache
+< Expires: Mon, 01-Jan-1990 00:00:00 GMT
+< Date: Mon, 29 Jul 2013 15:02:47 GMT
+< X-Content-Type-Options: nosniff
+< X-XSS-Protection: 1; mode=block
+< Content-Length: 881
+< Server: GSE
+<
+<
SID=DQAAAM0AAACQTYSnz2Te6_o7SkZ8vWPjLzvf4aGTBxrnTulW9ykw2-PYoWl88PxNZgQmXsLCC043mMKsR2DNzjfoM7-rOrCDP609kiKrVzhcP0FobCYJLHK-aZIzq7vovAq-DJG2LjSHjqf0HYkGhYLodiGRYZKEDnOOhr03RWKWzl2DQS7acyq_F1uVXLEtc6YXRWp2n1DBmoSmmmFnp8pvC8onimc1Zcha9cnjuSLE3tbDrLBA8ps1CJHK5bWl3nELNRrwisrei_iw6LAHtq6BIpB-lnl1
+<
LSID=DQAAAM4AAACb6htOq1itKNd5LVXNJx2kfaRm7mP3FHlVMie2h7vxaylu1rqnq7v7WhNl0d-bI6jZEthh-vndHPnHkGgSDPXXht1jr52P34ze8P1ztZoD_-l1inTHr9IE0y31sBUXP7oiPPecehau_AuIJ_-PJPYskG5ibwBX42mkee7y7uzulU9Gl6J_vxrZblIMzzMb331vRfheCTnNoE9PBYDSWEPCdMk6z5I_QbO2qRa-qXbd4kJuzSn_HKvVlK3Isy96JqXfyremEc643DwdutwIwMMG
+<
Auth=DQAAAM8AAACb6htOq1itKNd5LVXNJx2kfaRm7mP3FHlVMie2h7vxaylu1rqnq7v7WhNl0d-bI6jpJUWjFYRNWcd1jrcC9Yx1DREDvZfTWHftUNcZDEciKLKBXtNd2zzYKe7-Z7hL3tYOebD8ulI1Ql_xhaeQPtARdYoSRs_G3bjfrajKcDrtZMBmpxJgB3qs2l0XRRJpV-OZtad-PMyv7CBm1j2LYQindXcTq8GVliYmZIvM9wah4XsrxPM3xXTBv_aHl-R6AHq86iD0KNvNVEl7z3oonr61
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]