From c0230cedd54799e2d9859a679756d586401ea5a5 Mon Sep 17 00:00:00 2001 From: Avishalom Shalit Date: Thu, 4 Jan 2018 10:48:16 -0500 Subject: [PATCH] format json test data --- testdata/get_user.json | 63 ++++++++------- testdata/list_users.json | 165 +++++++++++++++++++++------------------ 2 files changed, 121 insertions(+), 107 deletions(-) diff --git a/testdata/get_user.json b/testdata/get_user.json index dc992a64..d57857af 100644 --- a/testdata/get_user.json +++ b/testdata/get_user.json @@ -1,31 +1,36 @@ { - "kind" : "identitytoolkit#GetAccountInfoResponse", - "users" : [ { - "localId" : "testuser", - "email" : "testuser@example.com", - "phoneNumber" : "+1234567890", - "emailVerified" : true, - "displayName" : "Test User", - "providerUserInfo" : [ { - "providerId" : "password", - "displayName" : "Test User", - "photoUrl" : "http://www.example.com/testuser/photo.png", - "federatedId" : "testuser@example.com", - "email" : "testuser@example.com", - "rawId" : "testuser@example.com" - }, { - "providerId" : "phone", - "phoneNumber" : "+1234567890", - "rawId" : "+1234567890" - } ], - "photoUrl" : "http://www.example.com/testuser/photo.png", - "passwordHash" : "passwordhash", - "salt" : "salt===", - "passwordUpdatedAt" : 1.494364393E+12, - "validSince" : "1494364393", - "disabled" : false, - "createdAt" : "1234567890", - "lastLoginAt" :"1233211232", - "customAttributes" : "{\"admin\": true, \"package\": \"gold\"}" - } ] + "kind": "identitytoolkit#GetAccountInfoResponse", + "users": [ + { + "localId": "testuser", + "email": "testuser@example.com", + "phoneNumber": "+1234567890", + "emailVerified": true, + "displayName": "Test User", + "providerUserInfo": [ + { + "providerId": "password", + "displayName": "Test User", + "photoUrl": "http://www.example.com/testuser/photo.png", + "federatedId": "testuser@example.com", + "email": "testuser@example.com", + "rawId": "testuser@example.com" + }, + { + "providerId": "phone", + "phoneNumber": "+1234567890", + "rawId": "+1234567890" + } + ], + "photoUrl": "http://www.example.com/testuser/photo.png", + "passwordHash": "passwordhash", + "salt": "salt===", + "passwordUpdatedAt": 1.494364393E+12, + "validSince": "1494364393", + "disabled": false, + "createdAt": "1234567890", + "lastLoginAt": "1233211232", + "customAttributes": "{\"admin\": true, \"package\": \"gold\"}" + } + ] } diff --git a/testdata/list_users.json b/testdata/list_users.json index e4749ab3..fda3f3c3 100644 --- a/testdata/list_users.json +++ b/testdata/list_users.json @@ -2,88 +2,97 @@ "kind": "identitytoolkit#DownloadAccountResponse", "users": [ { - "localId" : "testuser", - "email" : "testuser@example.com", - "phoneNumber" : "+1234567890", - "emailVerified" : true, - "displayName" : "Test User", - "providerUserInfo" : [ { - "providerId" : "password", - "displayName" : "Test User", - "photoUrl" : "http://www.example.com/testuser/photo.png", - "federatedId" : "testuser@example.com", - "email" : "testuser@example.com", - "rawId" : "testuser@example.com" - }, { - "providerId" : "phone", - "phoneNumber" : "+1234567890", - "rawId" : "+1234567890" - } ], - "photoUrl" : "http://www.example.com/testuser/photo.png", - "passwordHash" : "passwordhash1", - "salt" : "salt1", - "passwordUpdatedAt" : 1.494364393E+12, - "validSince" : "1494364393", - "disabled" : false, - "createdAt" : "1234567890", - "lastLoginAt" :"1233211232", - "customAttributes" : "{\"admin\": true, \"package\": \"gold\"}" + "localId": "testuser", + "email": "testuser@example.com", + "phoneNumber": "+1234567890", + "emailVerified": true, + "displayName": "Test User", + "providerUserInfo": [ + { + "providerId": "password", + "displayName": "Test User", + "photoUrl": "http://www.example.com/testuser/photo.png", + "federatedId": "testuser@example.com", + "email": "testuser@example.com", + "rawId": "testuser@example.com" + }, + { + "providerId": "phone", + "phoneNumber": "+1234567890", + "rawId": "+1234567890" + } + ], + "photoUrl": "http://www.example.com/testuser/photo.png", + "passwordHash": "passwordhash1", + "salt": "salt1", + "passwordUpdatedAt": 1.494364393E+12, + "validSince": "1494364393", + "disabled": false, + "createdAt": "1234567890", + "lastLoginAt": "1233211232", + "customAttributes": "{\"admin\": true, \"package\": \"gold\"}" }, { - "localId" : "testuser", - "email" : "testuser@example.com", - "phoneNumber" : "+1234567890", - "emailVerified" : true, - "displayName" : "Test User", - "providerUserInfo" : [ { - "providerId" : "password", - "displayName" : "Test User", - "photoUrl" : "http://www.example.com/testuser/photo.png", - "federatedId" : "testuser@example.com", - "email" : "testuser@example.com", - "rawId" : "testuser@example.com" - }, { - "providerId" : "phone", - "phoneNumber" : "+1234567890", - "rawId" : "+1234567890" - } ], - "photoUrl" : "http://www.example.com/testuser/photo.png", - "passwordHash" : "passwordhash2", - "salt" : "salt2", - "passwordUpdatedAt" : 1.494364393E+12, - "validSince" : "1494364393", - "disabled" : false, - "createdAt" : "1234567890", - "lastLoginAt" :"1233211232", - "customAttributes" : "{\"admin\": true, \"package\": \"gold\"}" + "localId": "testuser", + "email": "testuser@example.com", + "phoneNumber": "+1234567890", + "emailVerified": true, + "displayName": "Test User", + "providerUserInfo": [ + { + "providerId": "password", + "displayName": "Test User", + "photoUrl": "http://www.example.com/testuser/photo.png", + "federatedId": "testuser@example.com", + "email": "testuser@example.com", + "rawId": "testuser@example.com" + }, + { + "providerId": "phone", + "phoneNumber": "+1234567890", + "rawId": "+1234567890" + } + ], + "photoUrl": "http://www.example.com/testuser/photo.png", + "passwordHash": "passwordhash2", + "salt": "salt2", + "passwordUpdatedAt": 1.494364393E+12, + "validSince": "1494364393", + "disabled": false, + "createdAt": "1234567890", + "lastLoginAt": "1233211232", + "customAttributes": "{\"admin\": true, \"package\": \"gold\"}" }, { - "localId" : "testuser", - "email" : "testuser@example.com", - "phoneNumber" : "+1234567890", - "emailVerified" : true, - "displayName" : "Test User", - "providerUserInfo" : [ { - "providerId" : "password", - "displayName" : "Test User", - "photoUrl" : "http://www.example.com/testuser/photo.png", - "federatedId" : "testuser@example.com", - "email" : "testuser@example.com", - "rawId" : "testuser@example.com" - }, { - "providerId" : "phone", - "phoneNumber" : "+1234567890", - "rawId" : "+1234567890" - } ], - "photoUrl" : "http://www.example.com/testuser/photo.png", - "passwordHash" : "passwordhash3", - "salt" : "salt3", - "passwordUpdatedAt" : 1.494364393E+12, - "validSince" : "1494364393", - "disabled" : false, - "createdAt" : "1234567890", - "lastLoginAt" :"1233211232", - "customAttributes" : "{\"admin\": true, \"package\": \"gold\"}" + "localId": "testuser", + "email": "testuser@example.com", + "phoneNumber": "+1234567890", + "emailVerified": true, + "displayName": "Test User", + "providerUserInfo": [ + { + "providerId": "password", + "displayName": "Test User", + "photoUrl": "http://www.example.com/testuser/photo.png", + "federatedId": "testuser@example.com", + "email": "testuser@example.com", + "rawId": "testuser@example.com" + }, + { + "providerId": "phone", + "phoneNumber": "+1234567890", + "rawId": "+1234567890" + } + ], + "photoUrl": "http://www.example.com/testuser/photo.png", + "passwordHash": "passwordhash3", + "salt": "salt3", + "passwordUpdatedAt": 1.494364393E+12, + "validSince": "1494364393", + "disabled": false, + "createdAt": "1234567890", + "lastLoginAt": "1233211232", + "customAttributes": "{\"admin\": true, \"package\": \"gold\"}" } ], "nextPageToken": ""