-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser.hurl
More file actions
129 lines (114 loc) · 4.49 KB
/
user.hurl
File metadata and controls
129 lines (114 loc) · 4.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# /user -----------------
GET {{BASE_URL}}/user?instagramQuota=true
Content-Type: application/json
Authorization: Bearer {{API_KEY}}
HTTP 200
[Asserts]
header "Content-Type" == "application/json; charset=utf-8"
jsonpath "$.activeSocialAccounts" count == 13
jsonpath "$.ayrlinkUrl" exists
jsonpath "$.created" exists
# Bluesky
jsonpath "$.displayNames[0].created" exists
jsonpath "$.displayNames[0].displayName" exists
jsonpath "$.displayNames[0].id" exists
jsonpath "$.displayNames[0].platform" == "bluesky"
jsonpath "$.displayNames[0].profileUrl" exists
jsonpath "$.displayNames[0].userImage" exists
jsonpath "$.displayNames[0].username" exists
# Facebook
jsonpath "$.displayNames[1].created" exists
jsonpath "$.displayNames[1].displayName" exists
jsonpath "$.displayNames[1].id" exists
jsonpath "$.displayNames[1].platform" == "facebook"
jsonpath "$.displayNames[1].profileUrl" exists
jsonpath "$.displayNames[1].userImage" exists
# GMB
jsonpath "$.displayNames[2].created" exists
jsonpath "$.displayNames[2].displayName" exists
jsonpath "$.displayNames[2].platform" == "gmb"
# Instagram
jsonpath "$.displayNames[3].created" exists
jsonpath "$.displayNames[3].displayName" exists
jsonpath "$.displayNames[3].id" exists
jsonpath "$.displayNames[3].platform" == "instagram"
jsonpath "$.displayNames[3].profileUrl" exists
jsonpath "$.displayNames[3].usedQuota" exists
jsonpath "$.displayNames[3].userImage" exists
jsonpath "$.displayNames[3].username" exists
# LinkedIn
jsonpath "$.displayNames[4].created" exists
jsonpath "$.displayNames[4].displayName" exists
jsonpath "$.displayNames[4].id" exists
jsonpath "$.displayNames[4].platform" == "linkedin"
jsonpath "$.displayNames[4].profileUrl" exists
jsonpath "$.displayNames[4].refreshDaysRemaining" exists
jsonpath "$.displayNames[4].type" exists
jsonpath "$.displayNames[4].userImage" exists
# Pinterest
jsonpath "$.displayNames[5].created" exists
jsonpath "$.displayNames[5].displayName" exists
jsonpath "$.displayNames[5].id" exists
jsonpath "$.displayNames[5].platform" == "pinterest"
jsonpath "$.displayNames[5].profileUrl" exists
jsonpath "$.displayNames[5].userImage" exists
jsonpath "$.displayNames[5].username" exists
# Reddit
jsonpath "$.displayNames[6].created" exists
jsonpath "$.displayNames[6].displayName" exists
jsonpath "$.displayNames[6].platform" == "reddit"
jsonpath "$.displayNames[6].profileUrl" exists
jsonpath "$.displayNames[6].userImage" exists
jsonpath "$.displayNames[6].username" exists
# Snapchat
jsonpath "$.displayNames[7].created" exists
jsonpath "$.displayNames[7].displayName" exists
jsonpath "$.displayNames[7].id" exists
jsonpath "$.displayNames[7].platform" == "snapchat"
jsonpath "$.displayNames[7].profileUrl" exists
jsonpath "$.displayNames[7].userImage" exists
# Telegram
jsonpath "$.displayNames[8].created" exists
jsonpath "$.displayNames[8].displayName" exists
jsonpath "$.displayNames[8].id" exists
jsonpath "$.displayNames[8].platform" == "telegram"
jsonpath "$.displayNames[8].profileUrl" exists
jsonpath "$.displayNames[8].type" exists
# jsonpath "$.displayNames[8].userImage" exists
# Threads
jsonpath "$.displayNames[9].created" exists
jsonpath "$.displayNames[9].displayName" exists
jsonpath "$.displayNames[9].id" exists
jsonpath "$.displayNames[9].platform" == "threads"
jsonpath "$.displayNames[9].profileUrl" exists
jsonpath "$.displayNames[9].userImage" exists
jsonpath "$.displayNames[9].username" exists
# TikTok
jsonpath "$.displayNames[10].created" exists
jsonpath "$.displayNames[10].displayName" exists
jsonpath "$.displayNames[10].id" exists
jsonpath "$.displayNames[10].platform" == "tiktok"
jsonpath "$.displayNames[10].profileUrl" exists
jsonpath "$.displayNames[10].userImage" exists
jsonpath "$.displayNames[10].username" exists
# Twitter
jsonpath "$.displayNames[11].created" exists
jsonpath "$.displayNames[11].displayName" exists
jsonpath "$.displayNames[11].id" exists
jsonpath "$.displayNames[11].platform" == "twitter"
jsonpath "$.displayNames[11].profileUrl" exists
jsonpath "$.displayNames[11].userImage" exists
jsonpath "$.displayNames[11].username" exists
# YouTube
jsonpath "$.displayNames[12].created" exists
jsonpath "$.displayNames[12].displayName" exists
jsonpath "$.displayNames[12].id" exists
jsonpath "$.displayNames[12].platform" == "youtube"
jsonpath "$.displayNames[12].profileUrl" exists
jsonpath "$.displayNames[12].userImage" exists
jsonpath "$.displayNames[12].username" exists
jsonpath "$.email" == {{EMAIL}}
jsonpath "$.monthlyApiCalls" >= 0
jsonpath "$.refId" == {{REFID}}
jsonpath "$.title" == "Primary Profile"
# -----------------------