restless-sdk 0.1.0
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.
- checksums.yaml +7 -0
- data/CONFORMANCE.md +112 -0
- data/README.md +148 -0
- data/exe/restless-conformance +108 -0
- data/install.md +299 -0
- data/lib/restless/caches.rb +147 -0
- data/lib/restless/capture.rb +289 -0
- data/lib/restless/client.rb +111 -0
- data/lib/restless/conformance.rb +164 -0
- data/lib/restless/env.rb +82 -0
- data/lib/restless/fingerprint.rb +287 -0
- data/lib/restless/har.rb +113 -0
- data/lib/restless/injection.rb +99 -0
- data/lib/restless/mask.rb +57 -0
- data/lib/restless/rack.rb +374 -0
- data/lib/restless/redact.rb +342 -0
- data/lib/restless/request_id.rb +63 -0
- data/lib/restless/settings.rb +101 -0
- data/lib/restless/stack_frames.rb +146 -0
- data/lib/restless/text.rb +171 -0
- data/lib/restless/uploader.rb +319 -0
- data/lib/restless/version.rb +25 -0
- data/lib/restless.rb +57 -0
- data/spec/VECTORS_VERSION +1 -0
- data/spec/vectors/fingerprint.json +1119 -0
- data/spec/vectors/har.json +500 -0
- data/spec/vectors/mask.json +175 -0
- data/spec/vectors/recovery-slug.json +102 -0
- data/spec/vectors/redact.json +775 -0
- data/spec/vectors/request-id.json +120 -0
- metadata +82 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$generated": "GENERATED FILE - do not edit by hand. Inputs live in spec/cases.ts; run `npm run spec:vectors` to regenerate.",
|
|
3
|
+
"$contract": "spec/CONTRACT.md",
|
|
4
|
+
"specVersion": "1.0.0",
|
|
5
|
+
"cases": [
|
|
6
|
+
{
|
|
7
|
+
"id": "slug/basic",
|
|
8
|
+
"requirement": "INJECT-005",
|
|
9
|
+
"op": "recoverySlug",
|
|
10
|
+
"input": {
|
|
11
|
+
"method": "GET",
|
|
12
|
+
"path": "/car/{id}"
|
|
13
|
+
},
|
|
14
|
+
"expected": "get-car-id"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "slug/colon-style",
|
|
18
|
+
"requirement": "INJECT-005",
|
|
19
|
+
"op": "recoverySlug",
|
|
20
|
+
"input": {
|
|
21
|
+
"method": "GET",
|
|
22
|
+
"path": "/car/:id"
|
|
23
|
+
},
|
|
24
|
+
"expected": "get-car-id"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "slug/nested",
|
|
28
|
+
"requirement": "INJECT-005",
|
|
29
|
+
"op": "recoverySlug",
|
|
30
|
+
"input": {
|
|
31
|
+
"method": "DELETE",
|
|
32
|
+
"path": "/user/{id}/posts/{postId}"
|
|
33
|
+
},
|
|
34
|
+
"expected": "delete-user-id-posts-postId"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "slug/root",
|
|
38
|
+
"requirement": "INJECT-005",
|
|
39
|
+
"op": "recoverySlug",
|
|
40
|
+
"input": {
|
|
41
|
+
"method": "GET",
|
|
42
|
+
"path": "/"
|
|
43
|
+
},
|
|
44
|
+
"expected": "get"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "slug/no-path",
|
|
48
|
+
"requirement": "INJECT-005",
|
|
49
|
+
"op": "recoverySlug",
|
|
50
|
+
"input": {
|
|
51
|
+
"method": "GET"
|
|
52
|
+
},
|
|
53
|
+
"expected": "unknown"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "slug/no-method",
|
|
57
|
+
"requirement": "INJECT-005",
|
|
58
|
+
"op": "recoverySlug",
|
|
59
|
+
"input": {
|
|
60
|
+
"path": "/car/{id}"
|
|
61
|
+
},
|
|
62
|
+
"expected": "unknown"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "slug/neither",
|
|
66
|
+
"requirement": "INJECT-005",
|
|
67
|
+
"op": "recoverySlug",
|
|
68
|
+
"input": {},
|
|
69
|
+
"expected": "unknown"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"id": "slug/strips-exotic-chars",
|
|
73
|
+
"requirement": "INJECT-005",
|
|
74
|
+
"op": "recoverySlug",
|
|
75
|
+
"input": {
|
|
76
|
+
"method": "POST",
|
|
77
|
+
"path": "/café/{id}.json"
|
|
78
|
+
},
|
|
79
|
+
"expected": "post-caf-id-json"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id": "slug/collapses-dashes",
|
|
83
|
+
"requirement": "INJECT-005",
|
|
84
|
+
"op": "recoverySlug",
|
|
85
|
+
"input": {
|
|
86
|
+
"method": "GET",
|
|
87
|
+
"path": "///a///b///"
|
|
88
|
+
},
|
|
89
|
+
"expected": "get-a-b"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"id": "slug/uppercase-method",
|
|
93
|
+
"requirement": "INJECT-005",
|
|
94
|
+
"op": "recoverySlug",
|
|
95
|
+
"input": {
|
|
96
|
+
"method": "PATCH",
|
|
97
|
+
"path": "/x"
|
|
98
|
+
},
|
|
99
|
+
"expected": "patch-x"
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|