@firedrill-tools/linkedin 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +189 -0
  3. package/firedrill/agent.target.json +16 -0
  4. package/firedrill/baseline.scenario.json +1834 -0
  5. package/firedrill/comment-throttled.scenario.json +11 -0
  6. package/firedrill/conformance.suite.json +27 -0
  7. package/firedrill/linkedin-comment-throttled.drill.json +51 -0
  8. package/firedrill/linkedin-comments-connection.drill.json +43 -0
  9. package/firedrill/linkedin-comments.drill.json +196 -0
  10. package/firedrill/linkedin-denied.drill.json +383 -0
  11. package/firedrill/linkedin-fresh-install.drill.json +43 -0
  12. package/firedrill/linkedin-identity.drill.json +73 -0
  13. package/firedrill/linkedin-invalid-token.drill.json +393 -0
  14. package/firedrill/linkedin-limited-scopes.drill.json +88 -0
  15. package/firedrill/linkedin-openid-only.drill.json +383 -0
  16. package/firedrill/linkedin-orgs-connection.drill.json +28 -0
  17. package/firedrill/linkedin-orgs-network.drill.json +193 -0
  18. package/firedrill/linkedin-post-lost-response.drill.json +61 -0
  19. package/firedrill/linkedin-posts-lifecycle.drill.json +228 -0
  20. package/firedrill/linkedin-reactions-metadata.drill.json +196 -0
  21. package/firedrill/linkedin-reactions-outage.drill.json +66 -0
  22. package/firedrill/linkedin-tight-limits.drill.json +228 -0
  23. package/firedrill/linkedin-ugc-legacy.drill.json +43 -0
  24. package/firedrill/linkedin-visibility-connection.drill.json +73 -0
  25. package/firedrill/linkedin-visibility-stranger.drill.json +88 -0
  26. package/firedrill/linkedin-wire-errors.drill.json +353 -0
  27. package/firedrill/post-lost-response.scenario.json +11 -0
  28. package/firedrill/reactions-outage.scenario.json +11 -0
  29. package/firedrill/tight-limits.scenario.json +16 -0
  30. package/firedrill/tools/linkedin/app/assets/ATTRIBUTION.md +28 -0
  31. package/firedrill/tools/linkedin/app/assets/fonts/OFL.txt +93 -0
  32. package/firedrill/tools/linkedin/app/assets/linkedin-in.svg +1 -0
  33. package/firedrill/tools/linkedin/app/assets/linkedin-wordmark.svg +1 -0
  34. package/firedrill/tools/linkedin/app/assets/linkedin.svg +1 -0
  35. package/firedrill/tools/linkedin/app/site/app.js +80 -0
  36. package/firedrill/tools/linkedin/app/site/assets/fonts/fira-sans-latin-400-normal.woff2 +0 -0
  37. package/firedrill/tools/linkedin/app/site/assets/fonts/fira-sans-latin-600-normal.woff2 +0 -0
  38. package/firedrill/tools/linkedin/app/site/assets/fonts/fira-sans-latin-700-normal.woff2 +0 -0
  39. package/firedrill/tools/linkedin/app/site/assets/fonts/fira-sans-latin-ext-400-normal.woff2 +0 -0
  40. package/firedrill/tools/linkedin/app/site/assets/fonts/fira-sans-latin-ext-600-normal.woff2 +0 -0
  41. package/firedrill/tools/linkedin/app/site/assets/fonts/fira-sans-latin-ext-700-normal.woff2 +0 -0
  42. package/firedrill/tools/linkedin/app/site/assets/linkedin-wordmark.svg +1 -0
  43. package/firedrill/tools/linkedin/app/site/assets/linkedin.svg +1 -0
  44. package/firedrill/tools/linkedin/app/site/base.css +87 -0
  45. package/firedrill/tools/linkedin/app/site/comment-box.js +119 -0
  46. package/firedrill/tools/linkedin/app/site/comments.css +59 -0
  47. package/firedrill/tools/linkedin/app/site/comments.js +188 -0
  48. package/firedrill/tools/linkedin/app/site/company.js +115 -0
  49. package/firedrill/tools/linkedin/app/site/composer.js +112 -0
  50. package/firedrill/tools/linkedin/app/site/feed.css +105 -0
  51. package/firedrill/tools/linkedin/app/site/feed.js +134 -0
  52. package/firedrill/tools/linkedin/app/site/icons.js +70 -0
  53. package/firedrill/tools/linkedin/app/site/index.html +58 -0
  54. package/firedrill/tools/linkedin/app/site/nav.css +51 -0
  55. package/firedrill/tools/linkedin/app/site/network.js +77 -0
  56. package/firedrill/tools/linkedin/app/site/overlay.css +62 -0
  57. package/firedrill/tools/linkedin/app/site/overlay.js +108 -0
  58. package/firedrill/tools/linkedin/app/site/pages.css +78 -0
  59. package/firedrill/tools/linkedin/app/site/post-actions.js +83 -0
  60. package/firedrill/tools/linkedin/app/site/post-menu.js +72 -0
  61. package/firedrill/tools/linkedin/app/site/post.css +82 -0
  62. package/firedrill/tools/linkedin/app/site/post.js +131 -0
  63. package/firedrill/tools/linkedin/app/site/profile.js +139 -0
  64. package/firedrill/tools/linkedin/app/site/reactions.js +46 -0
  65. package/firedrill/tools/linkedin/app/site/reactors.js +71 -0
  66. package/firedrill/tools/linkedin/app/site/shell.js +107 -0
  67. package/firedrill/tools/linkedin/app/site/store.js +62 -0
  68. package/firedrill/tools/linkedin/app/site/text.js +80 -0
  69. package/firedrill/tools/linkedin/app/site/ui.js +142 -0
  70. package/firedrill/tools/linkedin/behavior.mjs +66 -0
  71. package/firedrill/tools/linkedin/lib/access.mjs +69 -0
  72. package/firedrill/tools/linkedin/lib/auth.mjs +115 -0
  73. package/firedrill/tools/linkedin/lib/cascade.mjs +28 -0
  74. package/firedrill/tools/linkedin/lib/errors.mjs +50 -0
  75. package/firedrill/tools/linkedin/lib/message.mjs +43 -0
  76. package/firedrill/tools/linkedin/lib/paging.mjs +54 -0
  77. package/firedrill/tools/linkedin/lib/postinput.mjs +47 -0
  78. package/firedrill/tools/linkedin/lib/render.mjs +95 -0
  79. package/firedrill/tools/linkedin/lib/routes.mjs +219 -0
  80. package/firedrill/tools/linkedin/lib/social.mjs +25 -0
  81. package/firedrill/tools/linkedin/lib/store.mjs +54 -0
  82. package/firedrill/tools/linkedin/lib/text.mjs +55 -0
  83. package/firedrill/tools/linkedin/lib/urn.mjs +93 -0
  84. package/firedrill/tools/linkedin/lib/wire.mjs +125 -0
  85. package/firedrill/tools/linkedin/linkedin.tool.json +8935 -0
  86. package/firedrill/tools/linkedin/ops/comments-read.mjs +57 -0
  87. package/firedrill/tools/linkedin/ops/comments-write.mjs +104 -0
  88. package/firedrill/tools/linkedin/ops/feed.mjs +74 -0
  89. package/firedrill/tools/linkedin/ops/network.mjs +46 -0
  90. package/firedrill/tools/linkedin/ops/orgs.mjs +93 -0
  91. package/firedrill/tools/linkedin/ops/posts-edit.mjs +71 -0
  92. package/firedrill/tools/linkedin/ops/posts-read.mjs +54 -0
  93. package/firedrill/tools/linkedin/ops/posts-write.mjs +74 -0
  94. package/firedrill/tools/linkedin/ops/profile.mjs +38 -0
  95. package/firedrill/tools/linkedin/ops/reactions.mjs +78 -0
  96. package/firedrill/tools/linkedin/ops/social.mjs +34 -0
  97. package/firedrill/world.json +2585 -0
  98. package/firedrill.json +5 -0
  99. package/package.json +52 -0
  100. package/starter.json +1833 -0
  101. package/test/client.mjs +71 -0
  102. package/test/conformance.mjs +20 -0
  103. package/test/fixtures.mjs +182 -0
  104. package/test/flows/comments.mjs +116 -0
  105. package/test/flows/every.mjs +38 -0
  106. package/test/flows/faults.mjs +56 -0
  107. package/test/flows/identity.mjs +70 -0
  108. package/test/flows/orgs.mjs +107 -0
  109. package/test/flows/posts.mjs +196 -0
  110. package/test/flows/reactions.mjs +101 -0
  111. package/test/flows/wire.mjs +62 -0
@@ -0,0 +1,228 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "linkedin-posts-lifecycle",
4
+ "title": "Create, read, find, edit, publish and delete posts; validation and ownership errors",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "baseline",
7
+ "actorId": "member",
8
+ "task": {
9
+ "instruction": "Run the posts-lifecycle flow against the synthetic LinkedIn Tool and fail loudly on any unexpected status, header or body."
10
+ },
11
+ "assertions": [
12
+ {
13
+ "id": "posts-create-ok",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "linkedin",
17
+ "operationId": "posts.create"
18
+ },
19
+ "outcomes": [
20
+ "ok"
21
+ ],
22
+ "comparison": {
23
+ "operator": "greater_than_or_equal",
24
+ "value": 1
25
+ }
26
+ },
27
+ {
28
+ "id": "posts-get-ok",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "linkedin",
32
+ "operationId": "posts.get"
33
+ },
34
+ "outcomes": [
35
+ "ok"
36
+ ],
37
+ "comparison": {
38
+ "operator": "greater_than_or_equal",
39
+ "value": 1
40
+ }
41
+ },
42
+ {
43
+ "id": "posts-list-by-author-ok",
44
+ "kind": "operation.count",
45
+ "operation": {
46
+ "packageId": "linkedin",
47
+ "operationId": "posts.list_by_author"
48
+ },
49
+ "outcomes": [
50
+ "ok"
51
+ ],
52
+ "comparison": {
53
+ "operator": "greater_than_or_equal",
54
+ "value": 1
55
+ }
56
+ },
57
+ {
58
+ "id": "posts-update-ok",
59
+ "kind": "operation.count",
60
+ "operation": {
61
+ "packageId": "linkedin",
62
+ "operationId": "posts.update"
63
+ },
64
+ "outcomes": [
65
+ "ok"
66
+ ],
67
+ "comparison": {
68
+ "operator": "greater_than_or_equal",
69
+ "value": 1
70
+ }
71
+ },
72
+ {
73
+ "id": "posts-delete-ok",
74
+ "kind": "operation.count",
75
+ "operation": {
76
+ "packageId": "linkedin",
77
+ "operationId": "posts.delete"
78
+ },
79
+ "outcomes": [
80
+ "ok"
81
+ ],
82
+ "comparison": {
83
+ "operator": "greater_than_or_equal",
84
+ "value": 1
85
+ }
86
+ },
87
+ {
88
+ "id": "posts-create-tool-error",
89
+ "kind": "operation.count",
90
+ "operation": {
91
+ "packageId": "linkedin",
92
+ "operationId": "posts.create"
93
+ },
94
+ "outcomes": [
95
+ "tool_error"
96
+ ],
97
+ "comparison": {
98
+ "operator": "greater_than_or_equal",
99
+ "value": 1
100
+ }
101
+ },
102
+ {
103
+ "id": "posts-get-tool-error",
104
+ "kind": "operation.count",
105
+ "operation": {
106
+ "packageId": "linkedin",
107
+ "operationId": "posts.get"
108
+ },
109
+ "outcomes": [
110
+ "tool_error"
111
+ ],
112
+ "comparison": {
113
+ "operator": "greater_than_or_equal",
114
+ "value": 1
115
+ }
116
+ },
117
+ {
118
+ "id": "posts-list-by-author-tool-error",
119
+ "kind": "operation.count",
120
+ "operation": {
121
+ "packageId": "linkedin",
122
+ "operationId": "posts.list_by_author"
123
+ },
124
+ "outcomes": [
125
+ "tool_error"
126
+ ],
127
+ "comparison": {
128
+ "operator": "greater_than_or_equal",
129
+ "value": 1
130
+ }
131
+ },
132
+ {
133
+ "id": "posts-update-tool-error",
134
+ "kind": "operation.count",
135
+ "operation": {
136
+ "packageId": "linkedin",
137
+ "operationId": "posts.update"
138
+ },
139
+ "outcomes": [
140
+ "tool_error"
141
+ ],
142
+ "comparison": {
143
+ "operator": "greater_than_or_equal",
144
+ "value": 1
145
+ }
146
+ },
147
+ {
148
+ "id": "posts-delete-tool-error",
149
+ "kind": "operation.count",
150
+ "operation": {
151
+ "packageId": "linkedin",
152
+ "operationId": "posts.delete"
153
+ },
154
+ "outcomes": [
155
+ "tool_error"
156
+ ],
157
+ "comparison": {
158
+ "operator": "greater_than_or_equal",
159
+ "value": 1
160
+ }
161
+ },
162
+ {
163
+ "id": "post-published-events",
164
+ "kind": "event.count",
165
+ "event": {
166
+ "packageId": "linkedin",
167
+ "eventId": "post.published"
168
+ },
169
+ "phase": "emitted",
170
+ "comparison": {
171
+ "operator": "equals",
172
+ "value": 5
173
+ }
174
+ },
175
+ {
176
+ "id": "create-before-delete",
177
+ "kind": "operation.order",
178
+ "sequence": [
179
+ {
180
+ "anyOf": [
181
+ {
182
+ "packageId": "linkedin",
183
+ "operationId": "posts.create"
184
+ }
185
+ ]
186
+ },
187
+ {
188
+ "anyOf": [
189
+ {
190
+ "packageId": "linkedin",
191
+ "operationId": "posts.delete"
192
+ }
193
+ ]
194
+ }
195
+ ]
196
+ },
197
+ {
198
+ "id": "posts-count",
199
+ "kind": "state.count",
200
+ "packageId": "linkedin",
201
+ "namespace": "posts",
202
+ "comparison": {
203
+ "operator": "equals",
204
+ "value": 23
205
+ }
206
+ },
207
+ {
208
+ "id": "comments-count",
209
+ "kind": "state.count",
210
+ "packageId": "linkedin",
211
+ "namespace": "comments",
212
+ "comparison": {
213
+ "operator": "equals",
214
+ "value": 7
215
+ }
216
+ },
217
+ {
218
+ "id": "reactions-count",
219
+ "kind": "state.count",
220
+ "packageId": "linkedin",
221
+ "namespace": "reactions",
222
+ "comparison": {
223
+ "operator": "equals",
224
+ "value": 6
225
+ }
226
+ }
227
+ ]
228
+ }
@@ -0,0 +1,196 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "linkedin-reactions-metadata",
4
+ "title": "React, replace, list, delete; social metadata; open and close comments",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "baseline",
7
+ "actorId": "member",
8
+ "task": {
9
+ "instruction": "Run the reactions-metadata flow against the synthetic LinkedIn Tool and fail loudly on any unexpected status, header or body."
10
+ },
11
+ "assertions": [
12
+ {
13
+ "id": "reactions-create-ok",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "linkedin",
17
+ "operationId": "reactions.create"
18
+ },
19
+ "outcomes": [
20
+ "ok"
21
+ ],
22
+ "comparison": {
23
+ "operator": "greater_than_or_equal",
24
+ "value": 1
25
+ }
26
+ },
27
+ {
28
+ "id": "reactions-list-ok",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "linkedin",
32
+ "operationId": "reactions.list"
33
+ },
34
+ "outcomes": [
35
+ "ok"
36
+ ],
37
+ "comparison": {
38
+ "operator": "greater_than_or_equal",
39
+ "value": 1
40
+ }
41
+ },
42
+ {
43
+ "id": "reactions-delete-ok",
44
+ "kind": "operation.count",
45
+ "operation": {
46
+ "packageId": "linkedin",
47
+ "operationId": "reactions.delete"
48
+ },
49
+ "outcomes": [
50
+ "ok"
51
+ ],
52
+ "comparison": {
53
+ "operator": "greater_than_or_equal",
54
+ "value": 1
55
+ }
56
+ },
57
+ {
58
+ "id": "social-metadata-get-ok",
59
+ "kind": "operation.count",
60
+ "operation": {
61
+ "packageId": "linkedin",
62
+ "operationId": "social_metadata.get"
63
+ },
64
+ "outcomes": [
65
+ "ok"
66
+ ],
67
+ "comparison": {
68
+ "operator": "greater_than_or_equal",
69
+ "value": 1
70
+ }
71
+ },
72
+ {
73
+ "id": "social-metadata-set-comments-state-ok",
74
+ "kind": "operation.count",
75
+ "operation": {
76
+ "packageId": "linkedin",
77
+ "operationId": "social_metadata.set_comments_state"
78
+ },
79
+ "outcomes": [
80
+ "ok"
81
+ ],
82
+ "comparison": {
83
+ "operator": "greater_than_or_equal",
84
+ "value": 1
85
+ }
86
+ },
87
+ {
88
+ "id": "reactions-create-tool-error",
89
+ "kind": "operation.count",
90
+ "operation": {
91
+ "packageId": "linkedin",
92
+ "operationId": "reactions.create"
93
+ },
94
+ "outcomes": [
95
+ "tool_error"
96
+ ],
97
+ "comparison": {
98
+ "operator": "greater_than_or_equal",
99
+ "value": 1
100
+ }
101
+ },
102
+ {
103
+ "id": "reactions-list-tool-error",
104
+ "kind": "operation.count",
105
+ "operation": {
106
+ "packageId": "linkedin",
107
+ "operationId": "reactions.list"
108
+ },
109
+ "outcomes": [
110
+ "tool_error"
111
+ ],
112
+ "comparison": {
113
+ "operator": "greater_than_or_equal",
114
+ "value": 1
115
+ }
116
+ },
117
+ {
118
+ "id": "reactions-delete-tool-error",
119
+ "kind": "operation.count",
120
+ "operation": {
121
+ "packageId": "linkedin",
122
+ "operationId": "reactions.delete"
123
+ },
124
+ "outcomes": [
125
+ "tool_error"
126
+ ],
127
+ "comparison": {
128
+ "operator": "greater_than_or_equal",
129
+ "value": 1
130
+ }
131
+ },
132
+ {
133
+ "id": "social-metadata-get-tool-error",
134
+ "kind": "operation.count",
135
+ "operation": {
136
+ "packageId": "linkedin",
137
+ "operationId": "social_metadata.get"
138
+ },
139
+ "outcomes": [
140
+ "tool_error"
141
+ ],
142
+ "comparison": {
143
+ "operator": "greater_than_or_equal",
144
+ "value": 1
145
+ }
146
+ },
147
+ {
148
+ "id": "social-metadata-set-comments-state-tool-error",
149
+ "kind": "operation.count",
150
+ "operation": {
151
+ "packageId": "linkedin",
152
+ "operationId": "social_metadata.set_comments_state"
153
+ },
154
+ "outcomes": [
155
+ "tool_error"
156
+ ],
157
+ "comparison": {
158
+ "operator": "greater_than_or_equal",
159
+ "value": 1
160
+ }
161
+ },
162
+ {
163
+ "id": "reaction-created-events",
164
+ "kind": "event.count",
165
+ "event": {
166
+ "packageId": "linkedin",
167
+ "eventId": "reaction.created"
168
+ },
169
+ "phase": "emitted",
170
+ "comparison": {
171
+ "operator": "equals",
172
+ "value": 8
173
+ }
174
+ },
175
+ {
176
+ "id": "reactions-count",
177
+ "kind": "state.count",
178
+ "packageId": "linkedin",
179
+ "namespace": "reactions",
180
+ "comparison": {
181
+ "operator": "equals",
182
+ "value": 13
183
+ }
184
+ },
185
+ {
186
+ "id": "comments-count",
187
+ "kind": "state.count",
188
+ "packageId": "linkedin",
189
+ "namespace": "comments",
190
+ "comparison": {
191
+ "operator": "equals",
192
+ "value": 7
193
+ }
194
+ }
195
+ ]
196
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "linkedin-reactions-outage",
4
+ "title": "Reaction create and delete answer 503 and write nothing",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "reactions-outage",
7
+ "actorId": "member",
8
+ "task": {
9
+ "instruction": "Run the reactions-outage flow against the synthetic LinkedIn Tool and fail loudly on any unexpected status, header or body."
10
+ },
11
+ "assertions": [
12
+ {
13
+ "id": "reactions-create-tool-error",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "linkedin",
17
+ "operationId": "reactions.create"
18
+ },
19
+ "outcomes": [
20
+ "tool_error"
21
+ ],
22
+ "comparison": {
23
+ "operator": "equals",
24
+ "value": 1
25
+ }
26
+ },
27
+ {
28
+ "id": "reactions-delete-tool-error",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "linkedin",
32
+ "operationId": "reactions.delete"
33
+ },
34
+ "outcomes": [
35
+ "tool_error"
36
+ ],
37
+ "comparison": {
38
+ "operator": "equals",
39
+ "value": 1
40
+ }
41
+ },
42
+ {
43
+ "id": "reactions-count",
44
+ "kind": "state.count",
45
+ "packageId": "linkedin",
46
+ "namespace": "reactions",
47
+ "comparison": {
48
+ "operator": "equals",
49
+ "value": 14
50
+ }
51
+ },
52
+ {
53
+ "id": "reaction-created-events",
54
+ "kind": "event.count",
55
+ "event": {
56
+ "packageId": "linkedin",
57
+ "eventId": "reaction.created"
58
+ },
59
+ "phase": "emitted",
60
+ "comparison": {
61
+ "operator": "equals",
62
+ "value": 0
63
+ }
64
+ }
65
+ ]
66
+ }