Skip to content

Commit b17a6b8

Browse files
committed
fix(tests): refresh all cassettes
1 parent c8fde60 commit b17a6b8

10 files changed

+246
-578
lines changed

tests/cassettes/document_with_0_bytes.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"document": "Hello World"}'
3+
body: '{"document": "Hello\ufffdWorld"}'
44
headers:
55
Accept:
66
- '*/*'
@@ -9,7 +9,7 @@ interactions:
99
Connection:
1010
- keep-alive
1111
Content-Length:
12-
- '27'
12+
- '32'
1313
Content-Type:
1414
- application/json
1515
User-Agent:
@@ -33,30 +33,30 @@ interactions:
3333
Content-Type:
3434
- application/json
3535
Date:
36-
- Fri, 24 Jun 2022 16:08:40 GMT
36+
- Thu, 30 Jun 2022 10:29:40 GMT
3737
Referrer-Policy:
3838
- strict-origin-when-cross-origin
3939
Server:
4040
- nginx
4141
Set-Cookie:
42-
- AWSALB=jzG+lNYQFwVa/HLEk17W6yiGRSKg6NTA2/1+uOmn+n5jG7J03MudYdFdbtJdN7+y9jwsoul66j7dHclQD7B8ZRa4FWTZJO3AeCHhfcZQxhwEb5uko4OvEhi9jD2o;
43-
Expires=Fri, 01 Jul 2022 16:08:40 GMT; Path=/
44-
- AWSALBCORS=jzG+lNYQFwVa/HLEk17W6yiGRSKg6NTA2/1+uOmn+n5jG7J03MudYdFdbtJdN7+y9jwsoul66j7dHclQD7B8ZRa4FWTZJO3AeCHhfcZQxhwEb5uko4OvEhi9jD2o;
45-
Expires=Fri, 01 Jul 2022 16:08:40 GMT; Path=/; SameSite=None; Secure
42+
- AWSALB=WA3Tk6K80taEJdzPSjtKcTNQolkPt3iwPang+9+v8yEs4lAq8ra2jag95ypynFTbLRIMcIVlrRREnu/ZeTjqt7uNt1y0jk2b1cx2TAG7MY7MmuLL9T+NLJzSN6DD;
43+
Expires=Thu, 07 Jul 2022 10:29:40 GMT; Path=/
44+
- AWSALBCORS=WA3Tk6K80taEJdzPSjtKcTNQolkPt3iwPang+9+v8yEs4lAq8ra2jag95ypynFTbLRIMcIVlrRREnu/ZeTjqt7uNt1y0jk2b1cx2TAG7MY7MmuLL9T+NLJzSN6DD;
45+
Expires=Thu, 07 Jul 2022 10:29:40 GMT; Path=/; SameSite=None; Secure
4646
Strict-Transport-Security:
4747
- max-age=31536000; includeSubDomains
4848
Vary:
4949
- Cookie
5050
X-App-Version:
51-
- v2.7.5
51+
- v2.8.1
5252
X-Content-Type-Options:
5353
- nosniff
5454
- nosniff
5555
X-Frame-Options:
5656
- DENY
5757
- SAMEORIGIN
5858
X-Secrets-Engine-Version:
59-
- 2.69.0
59+
- 2.70.0
6060
X-XSS-Protection:
6161
- 1; mode=block
6262
status:

tests/cassettes/filename.yaml

Lines changed: 24 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"document": "normal", "filename": ".env"}'
3+
body: '{"filename": ".env", "document": "normal"}'
44
headers:
55
Accept:
66
- '*/*'
@@ -13,81 +13,52 @@ interactions:
1313
Content-Type:
1414
- application/json
1515
User-Agent:
16-
- pygitguardian/1.1.0 (Linux;py3.8.3)
16+
- pygitguardian/1.3.4 (Linux;py3.8.10)
1717
method: POST
1818
uri: https://api.gitguardian.com/v1/scan
1919
response:
2020
body:
21-
string: '{"policy_break_count":1,"policies":["Secrets detection","File extensions","Filenames"],"policy_breaks":[{"type":".env","policy":"Filenames","matches":[{"type":"filename","match":".env"}]}]}'
21+
string:
22+
'{"policy_break_count":1,"policies":["File extensions","Filenames","Secrets
23+
detection"],"policy_breaks":[{"type":".env","policy":"Filenames","matches":[{"type":"filename","match":".env"}]}]}'
2224
headers:
25+
Access-Control-Expose-Headers:
26+
- X-App-Version
2327
Allow:
24-
- OPTIONS, POST
28+
- POST, OPTIONS
2529
Connection:
2630
- keep-alive
2731
Content-Length:
2832
- '189'
2933
Content-Type:
3034
- application/json
3135
Date:
32-
- Fri, 19 Jun 2020 13:32:52 GMT
36+
- Thu, 30 Jun 2022 10:29:41 GMT
37+
Referrer-Policy:
38+
- strict-origin-when-cross-origin
3339
Server:
3440
- nginx
41+
Set-Cookie:
42+
- AWSALB=r/wiM/hKFEVK3tOj50oZhdhLH4pIuw/f+Q1PflUFnIyr9Z2L7nO9iaTmh6kYkaZ4s/G2i2BwoABBfYqLSAJZkv3RblCGnOVtxGA46Rjj0tnvn5RjartnScrhop+T;
43+
Expires=Thu, 07 Jul 2022 10:29:41 GMT; Path=/
44+
- AWSALBCORS=r/wiM/hKFEVK3tOj50oZhdhLH4pIuw/f+Q1PflUFnIyr9Z2L7nO9iaTmh6kYkaZ4s/G2i2BwoABBfYqLSAJZkv3RblCGnOVtxGA46Rjj0tnvn5RjartnScrhop+T;
45+
Expires=Thu, 07 Jul 2022 10:29:41 GMT; Path=/; SameSite=None; Secure
46+
Strict-Transport-Security:
47+
- max-age=31536000; includeSubDomains
3548
Vary:
3649
- Cookie
37-
X-Content-Type-Options:
38-
- nosniff
39-
X-Frame-Options:
40-
- DENY
4150
X-App-Version:
42-
- 1.26.0-rc.4
43-
X-Secrets-Engine-Version:
44-
- 2.43.0
45-
status:
46-
code: 200
47-
message: OK
48-
- request:
49-
body: '{"document": "normal", "filename": ".env"}'
50-
headers:
51-
Accept:
52-
- '*/*'
53-
Accept-Encoding:
54-
- gzip, deflate
55-
Connection:
56-
- keep-alive
57-
Content-Length:
58-
- '42'
59-
Content-Type:
60-
- application/json
61-
User-Agent:
62-
- pygitguardian/1.1.0 (Linux;py3.8.3)
63-
method: POST
64-
uri: https://api.gitguardian.com/v1/scan
65-
response:
66-
body:
67-
string: '{"policy_break_count":1,"policies":["Secrets detection","File extensions","Filenames"],"policy_breaks":[{"type":".env","policy":"Filenames","matches":[{"type":"filename","match":".env"}]}]}'
68-
headers:
69-
Allow:
70-
- OPTIONS, POST
71-
Connection:
72-
- keep-alive
73-
Content-Length:
74-
- '189'
75-
Content-Type:
76-
- application/json
77-
Date:
78-
- Fri, 19 Jun 2020 14:58:41 GMT
79-
Server:
80-
- nginx
81-
Vary:
82-
- Cookie
51+
- v2.8.1
8352
X-Content-Type-Options:
8453
- nosniff
54+
- nosniff
8555
X-Frame-Options:
8656
- DENY
87-
X-App-Version:
88-
- 1.26.0-rc.4
57+
- SAMEORIGIN
8958
X-Secrets-Engine-Version:
90-
- 2.43.0
59+
- 2.70.0
60+
X-XSS-Protection:
61+
- 1; mode=block
9162
status:
9263
code: 200
9364
message: OK

tests/cassettes/filename_secret.yaml

Lines changed: 27 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
interactions:
22
- request:
3-
body:
4-
'{"document": "\n import urllib.request\n url = ''http://jen_barber:[email protected]/isreal.json''\n response
5-
= urllib.request.urlopen(url)\n consume(response.read())\"\n", "filename":
6-
".env"}'
3+
body: '{"filename": ".env", "document": "\n import urllib.request\n url
4+
= ''http://jen_barber:[email protected]/isreal.json''\n response
5+
= urllib.request.urlopen(url)\n consume(response.read())\"\n"}'
76
headers:
87
Accept:
98
- '*/*'
@@ -16,88 +15,53 @@ interactions:
1615
Content-Type:
1716
- application/json
1817
User-Agent:
19-
- pygitguardian/1.1.0 (Linux;py3.8.3)
18+
- pygitguardian/1.3.4 (Linux;py3.8.10)
2019
method: POST
2120
uri: https://api.gitguardian.com/v1/scan
2221
response:
2322
body:
2423
string:
25-
'{"policy_break_count":2,"policies":["Secrets detection","File extensions","Filenames"],"policy_breaks":[{"type":"Basic
26-
Auth String","policy":"Secrets detection","matches":[{"type":"username","match":"jen_barber","index_start":40,"index_end":49,"line_start":2,"line_end":2},{"type":"password","match":"correcthorsebatterystaple","index_start":51,"index_end":75,"line_start":2,"line_end":2},{"type":"host","match":"cake.gitguardian.com","index_start":77,"index_end":96,"line_start":2,"line_end":2}]},{"type":".env","policy":"Filenames","matches":[{"type":"filename","match":".env"}]}]}'
24+
'{"policy_break_count":2,"policies":["File extensions","Filenames","Secrets
25+
detection"],"policy_breaks":[{"type":".env","policy":"Filenames","matches":[{"type":"filename","match":".env"}]},{"type":"Basic
26+
Auth String","policy":"Secrets detection","matches":[{"type":"username","match":"jen_barber","index_start":40,"index_end":49,"line_start":2,"line_end":2},{"type":"password","match":"correcthorsebatterystaple","index_start":51,"index_end":75,"line_start":2,"line_end":2},{"type":"host","match":"cake.gitguardian.com","index_start":77,"index_end":96,"line_start":2,"line_end":2}],"validity":"no_checker"}]}'
2727
headers:
28+
Access-Control-Expose-Headers:
29+
- X-App-Version
2830
Allow:
29-
- OPTIONS, POST
31+
- POST, OPTIONS
3032
Connection:
3133
- keep-alive
3234
Content-Length:
33-
- '583'
35+
- '607'
3436
Content-Type:
3537
- application/json
3638
Date:
37-
- Fri, 19 Jun 2020 13:32:50 GMT
39+
- Thu, 30 Jun 2022 10:29:36 GMT
40+
Referrer-Policy:
41+
- strict-origin-when-cross-origin
3842
Server:
3943
- nginx
44+
Set-Cookie:
45+
- AWSALB=jTRYMFmj073Osi11/9ey7j0QTb8zbBWbCaMGtyNxlrLzX+TeCdGhFSRFu5ulj9Z+jzovENbwssqCxQdxUx4/r/JMJ0ZPr05AybUNvX8qVIvtGfv3vfhsO9Ry0SZy;
46+
Expires=Thu, 07 Jul 2022 10:29:36 GMT; Path=/
47+
- AWSALBCORS=jTRYMFmj073Osi11/9ey7j0QTb8zbBWbCaMGtyNxlrLzX+TeCdGhFSRFu5ulj9Z+jzovENbwssqCxQdxUx4/r/JMJ0ZPr05AybUNvX8qVIvtGfv3vfhsO9Ry0SZy;
48+
Expires=Thu, 07 Jul 2022 10:29:36 GMT; Path=/; SameSite=None; Secure
49+
Strict-Transport-Security:
50+
- max-age=31536000; includeSubDomains
4051
Vary:
4152
- Cookie
42-
X-Content-Type-Options:
43-
- nosniff
44-
X-Frame-Options:
45-
- DENY
4653
X-App-Version:
47-
- 1.26.0-rc.4
48-
X-Secrets-Engine-Version:
49-
- 2.43.0
50-
status:
51-
code: 200
52-
message: OK
53-
- request:
54-
body:
55-
'{"document": "\n import urllib.request\n url = ''http://jen_barber:[email protected]/isreal.json''\n response
56-
= urllib.request.urlopen(url)\n consume(response.read())\"\n", "filename":
57-
".env"}'
58-
headers:
59-
Accept:
60-
- '*/*'
61-
Accept-Encoding:
62-
- gzip, deflate
63-
Connection:
64-
- keep-alive
65-
Content-Length:
66-
- '231'
67-
Content-Type:
68-
- application/json
69-
User-Agent:
70-
- pygitguardian/1.1.0 (Linux;py3.8.3)
71-
method: POST
72-
uri: https://api.gitguardian.com/v1/scan
73-
response:
74-
body:
75-
string:
76-
'{"policy_break_count":2,"policies":["Secrets detection","File extensions","Filenames"],"policy_breaks":[{"type":"Basic
77-
Auth String","policy":"Secrets detection","matches":[{"type":"username","match":"jen_barber","index_start":40,"index_end":49,"line_start":2,"line_end":2},{"type":"password","match":"correcthorsebatterystaple","index_start":51,"index_end":75,"line_start":2,"line_end":2},{"type":"host","match":"cake.gitguardian.com","index_start":77,"index_end":96,"line_start":2,"line_end":2}]},{"type":".env","policy":"Filenames","matches":[{"type":"filename","match":".env"}]}]}'
78-
headers:
79-
Allow:
80-
- OPTIONS, POST
81-
Connection:
82-
- keep-alive
83-
Content-Length:
84-
- '583'
85-
Content-Type:
86-
- application/json
87-
Date:
88-
- Fri, 19 Jun 2020 14:58:40 GMT
89-
Server:
90-
- nginx
91-
Vary:
92-
- Cookie
54+
- v2.8.1
9355
X-Content-Type-Options:
9456
- nosniff
57+
- nosniff
9558
X-Frame-Options:
9659
- DENY
97-
X-App-Version:
98-
- 1.26.0-rc.4
60+
- SAMEORIGIN
9961
X-Secrets-Engine-Version:
100-
- 2.43.0
62+
- 2.70.0
63+
X-XSS-Protection:
64+
- 1; mode=block
10165
status:
10266
code: 200
10367
message: OK

0 commit comments

Comments
 (0)