Skip to content

Commit 237dc19

Browse files
authored
Format JSON test data (#63)
1 parent fd71b72 commit 237dc19

File tree

2 files changed

+121
-107
lines changed

2 files changed

+121
-107
lines changed

testdata/get_user.json

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,36 @@
11
{
2-
"kind" : "identitytoolkit#GetAccountInfoResponse",
3-
"users" : [ {
4-
"localId" : "testuser",
5-
"email" : "testuser@example.com",
6-
"phoneNumber" : "+1234567890",
7-
"emailVerified" : true,
8-
"displayName" : "Test User",
9-
"providerUserInfo" : [ {
10-
"providerId" : "password",
11-
"displayName" : "Test User",
12-
"photoUrl" : "http://www.example.com/testuser/photo.png",
13-
"federatedId" : "testuser@example.com",
14-
"email" : "testuser@example.com",
15-
"rawId" : "testuser@example.com"
16-
}, {
17-
"providerId" : "phone",
18-
"phoneNumber" : "+1234567890",
19-
"rawId" : "+1234567890"
20-
} ],
21-
"photoUrl" : "http://www.example.com/testuser/photo.png",
22-
"passwordHash" : "passwordhash",
23-
"salt" : "salt===",
24-
"passwordUpdatedAt" : 1.494364393E+12,
25-
"validSince" : "1494364393",
26-
"disabled" : false,
27-
"createdAt" : "1234567890",
28-
"lastLoginAt" :"1233211232",
29-
"customAttributes" : "{\"admin\": true, \"package\": \"gold\"}"
30-
} ]
2+
"kind": "identitytoolkit#GetAccountInfoResponse",
3+
"users": [
4+
{
5+
"localId": "testuser",
6+
"email": "testuser@example.com",
7+
"phoneNumber": "+1234567890",
8+
"emailVerified": true,
9+
"displayName": "Test User",
10+
"providerUserInfo": [
11+
{
12+
"providerId": "password",
13+
"displayName": "Test User",
14+
"photoUrl": "http://www.example.com/testuser/photo.png",
15+
"federatedId": "testuser@example.com",
16+
"email": "testuser@example.com",
17+
"rawId": "testuser@example.com"
18+
},
19+
{
20+
"providerId": "phone",
21+
"phoneNumber": "+1234567890",
22+
"rawId": "+1234567890"
23+
}
24+
],
25+
"photoUrl": "http://www.example.com/testuser/photo.png",
26+
"passwordHash": "passwordhash",
27+
"salt": "salt===",
28+
"passwordUpdatedAt": 1.494364393E+12,
29+
"validSince": "1494364393",
30+
"disabled": false,
31+
"createdAt": "1234567890",
32+
"lastLoginAt": "1233211232",
33+
"customAttributes": "{\"admin\": true, \"package\": \"gold\"}"
34+
}
35+
]
3136
}

testdata/list_users.json

Lines changed: 87 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -2,88 +2,97 @@
22
"kind": "identitytoolkit#DownloadAccountResponse",
33
"users": [
44
{
5-
"localId" : "testuser",
6-
"email" : "testuser@example.com",
7-
"phoneNumber" : "+1234567890",
8-
"emailVerified" : true,
9-
"displayName" : "Test User",
10-
"providerUserInfo" : [ {
11-
"providerId" : "password",
12-
"displayName" : "Test User",
13-
"photoUrl" : "http://www.example.com/testuser/photo.png",
14-
"federatedId" : "testuser@example.com",
15-
"email" : "testuser@example.com",
16-
"rawId" : "testuser@example.com"
17-
}, {
18-
"providerId" : "phone",
19-
"phoneNumber" : "+1234567890",
20-
"rawId" : "+1234567890"
21-
} ],
22-
"photoUrl" : "http://www.example.com/testuser/photo.png",
23-
"passwordHash" : "passwordhash1",
24-
"salt" : "salt1",
25-
"passwordUpdatedAt" : 1.494364393E+12,
26-
"validSince" : "1494364393",
27-
"disabled" : false,
28-
"createdAt" : "1234567890",
29-
"lastLoginAt" :"1233211232",
30-
"customAttributes" : "{\"admin\": true, \"package\": \"gold\"}"
5+
"localId": "testuser",
6+
"email": "testuser@example.com",
7+
"phoneNumber": "+1234567890",
8+
"emailVerified": true,
9+
"displayName": "Test User",
10+
"providerUserInfo": [
11+
{
12+
"providerId": "password",
13+
"displayName": "Test User",
14+
"photoUrl": "http://www.example.com/testuser/photo.png",
15+
"federatedId": "testuser@example.com",
16+
"email": "testuser@example.com",
17+
"rawId": "testuser@example.com"
18+
},
19+
{
20+
"providerId": "phone",
21+
"phoneNumber": "+1234567890",
22+
"rawId": "+1234567890"
23+
}
24+
],
25+
"photoUrl": "http://www.example.com/testuser/photo.png",
26+
"passwordHash": "passwordhash1",
27+
"salt": "salt1",
28+
"passwordUpdatedAt": 1.494364393E+12,
29+
"validSince": "1494364393",
30+
"disabled": false,
31+
"createdAt": "1234567890",
32+
"lastLoginAt": "1233211232",
33+
"customAttributes": "{\"admin\": true, \"package\": \"gold\"}"
3134
},
3235
{
33-
"localId" : "testuser",
34-
"email" : "testuser@example.com",
35-
"phoneNumber" : "+1234567890",
36-
"emailVerified" : true,
37-
"displayName" : "Test User",
38-
"providerUserInfo" : [ {
39-
"providerId" : "password",
40-
"displayName" : "Test User",
41-
"photoUrl" : "http://www.example.com/testuser/photo.png",
42-
"federatedId" : "testuser@example.com",
43-
"email" : "testuser@example.com",
44-
"rawId" : "testuser@example.com"
45-
}, {
46-
"providerId" : "phone",
47-
"phoneNumber" : "+1234567890",
48-
"rawId" : "+1234567890"
49-
} ],
50-
"photoUrl" : "http://www.example.com/testuser/photo.png",
51-
"passwordHash" : "passwordhash2",
52-
"salt" : "salt2",
53-
"passwordUpdatedAt" : 1.494364393E+12,
54-
"validSince" : "1494364393",
55-
"disabled" : false,
56-
"createdAt" : "1234567890",
57-
"lastLoginAt" :"1233211232",
58-
"customAttributes" : "{\"admin\": true, \"package\": \"gold\"}"
36+
"localId": "testuser",
37+
"email": "testuser@example.com",
38+
"phoneNumber": "+1234567890",
39+
"emailVerified": true,
40+
"displayName": "Test User",
41+
"providerUserInfo": [
42+
{
43+
"providerId": "password",
44+
"displayName": "Test User",
45+
"photoUrl": "http://www.example.com/testuser/photo.png",
46+
"federatedId": "testuser@example.com",
47+
"email": "testuser@example.com",
48+
"rawId": "testuser@example.com"
49+
},
50+
{
51+
"providerId": "phone",
52+
"phoneNumber": "+1234567890",
53+
"rawId": "+1234567890"
54+
}
55+
],
56+
"photoUrl": "http://www.example.com/testuser/photo.png",
57+
"passwordHash": "passwordhash2",
58+
"salt": "salt2",
59+
"passwordUpdatedAt": 1.494364393E+12,
60+
"validSince": "1494364393",
61+
"disabled": false,
62+
"createdAt": "1234567890",
63+
"lastLoginAt": "1233211232",
64+
"customAttributes": "{\"admin\": true, \"package\": \"gold\"}"
5965
},
6066
{
61-
"localId" : "testuser",
62-
"email" : "testuser@example.com",
63-
"phoneNumber" : "+1234567890",
64-
"emailVerified" : true,
65-
"displayName" : "Test User",
66-
"providerUserInfo" : [ {
67-
"providerId" : "password",
68-
"displayName" : "Test User",
69-
"photoUrl" : "http://www.example.com/testuser/photo.png",
70-
"federatedId" : "testuser@example.com",
71-
"email" : "testuser@example.com",
72-
"rawId" : "testuser@example.com"
73-
}, {
74-
"providerId" : "phone",
75-
"phoneNumber" : "+1234567890",
76-
"rawId" : "+1234567890"
77-
} ],
78-
"photoUrl" : "http://www.example.com/testuser/photo.png",
79-
"passwordHash" : "passwordhash3",
80-
"salt" : "salt3",
81-
"passwordUpdatedAt" : 1.494364393E+12,
82-
"validSince" : "1494364393",
83-
"disabled" : false,
84-
"createdAt" : "1234567890",
85-
"lastLoginAt" :"1233211232",
86-
"customAttributes" : "{\"admin\": true, \"package\": \"gold\"}"
67+
"localId": "testuser",
68+
"email": "testuser@example.com",
69+
"phoneNumber": "+1234567890",
70+
"emailVerified": true,
71+
"displayName": "Test User",
72+
"providerUserInfo": [
73+
{
74+
"providerId": "password",
75+
"displayName": "Test User",
76+
"photoUrl": "http://www.example.com/testuser/photo.png",
77+
"federatedId": "testuser@example.com",
78+
"email": "testuser@example.com",
79+
"rawId": "testuser@example.com"
80+
},
81+
{
82+
"providerId": "phone",
83+
"phoneNumber": "+1234567890",
84+
"rawId": "+1234567890"
85+
}
86+
],
87+
"photoUrl": "http://www.example.com/testuser/photo.png",
88+
"passwordHash": "passwordhash3",
89+
"salt": "salt3",
90+
"passwordUpdatedAt": 1.494364393E+12,
91+
"validSince": "1494364393",
92+
"disabled": false,
93+
"createdAt": "1234567890",
94+
"lastLoginAt": "1233211232",
95+
"customAttributes": "{\"admin\": true, \"package\": \"gold\"}"
8796
}
8897
],
8998
"nextPageToken": ""

0 commit comments

Comments
 (0)