Skip to content

Commit b05fc77

Browse files
committed
IDEV-2272: Adjust tests
1 parent 0d059d0 commit b05fc77

10 files changed

+23841
-121847
lines changed

tests/fixtures/vcr/test_domain_discovery_feed.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2977,4 +2977,62 @@ interactions:
29772977
status:
29782978
code: 200
29792979
message: OK
2980+
- request:
2981+
body: ''
2982+
headers:
2983+
accept:
2984+
- '*/*'
2985+
accept-encoding:
2986+
- gzip, deflate
2987+
connection:
2988+
- keep-alive
2989+
host:
2990+
- api.domaintools.com
2991+
user-agent:
2992+
- python-httpx/0.28.1
2993+
x-api-key:
2994+
- 4b02d-a4719-e33e7-93128-5a5ff
2995+
method: GET
2996+
uri: https://api.domaintools.com/v1/feed/domaindiscovery/?after=-60&app_name=python_wrapper&app_version=2.5.2&header_authentication=false
2997+
response:
2998+
body:
2999+
string: '{"timestamp":"2025-10-06T16:40:38Z","domain":"albrologistics.com"}
3000+
3001+
{"timestamp":"2025-10-06T16:40:39Z","domain":"datablog.co.uk"}
3002+
3003+
{"timestamp":"2025-10-06T16:40:39Z","domain":"stelapratas.com"}
3004+
3005+
{"timestamp":"2025-10-06T16:40:39Z","domain":"donasveganasymas.com"}
3006+
3007+
{"timestamp":"2025-10-06T16:40:39Z","domain":"rdstore.shop"}
3008+
3009+
{"timestamp":"2025-10-06T16:40:39Z","domain":"basopbafep.at"}
3010+
3011+
'
3012+
headers:
3013+
Cache-Control:
3014+
- no-store, no-cache, must-revalidate
3015+
Content-Security-Policy:
3016+
- 'default-src * data: blob: ''unsafe-eval'' ''unsafe-inline'''
3017+
Content-Type:
3018+
- application/x-ndjson
3019+
Date:
3020+
- Mon, 06 Oct 2025 16:41:37 GMT
3021+
Expires:
3022+
- Thu, 19 Nov 1981 08:52:00 GMT
3023+
Pragma:
3024+
- no-cache
3025+
Set-Cookie:
3026+
- dtsession=mjnphs9kpucpipg5t5mksdvmchdrtomgf49bb5mnu64c971099658j14c65q5jhrh2f9pu589th4rt89d7lj2jq96p71d9m0fd854dm;
3027+
expires=Wed, 05-Nov-2025 16:41:37 GMT; Max-Age=2592000; path=/; domain=.domaintools.com;
3028+
secure; HttpOnly
3029+
- 0566fae076d9b6615cd8f47a9e9500f2=da9b98176bbb72d0ca7886ae363d40d4; path=/;
3030+
HttpOnly
3031+
Strict-Transport-Security:
3032+
- max-age=31536000; includeSubDomains
3033+
Transfer-Encoding:
3034+
- chunked
3035+
status:
3036+
code: 200
3037+
message: OK
29803038
version: 1

tests/fixtures/vcr/test_domain_hotlist.yaml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11482,4 +11482,74 @@ interactions:
1148211482
status:
1148311483
code: 200
1148411484
message: OK
11485+
- request:
11486+
body: ''
11487+
headers:
11488+
accept:
11489+
- '*/*'
11490+
accept-encoding:
11491+
- gzip, deflate
11492+
connection:
11493+
- keep-alive
11494+
host:
11495+
- api.domaintools.com
11496+
user-agent:
11497+
- python-httpx/0.28.1
11498+
x-api-key:
11499+
- 4b02d-a4719-e33e7-93128-5a5ff
11500+
method: GET
11501+
uri: https://api.domaintools.com/v1/feed/domainhotlist/?after=-60&app_name=python_wrapper&app_version=2.5.2&header_authentication=false
11502+
response:
11503+
body:
11504+
string: '{"timestamp":"2025-10-06T16:41:00Z","domain":"cnt72.top","phishing_risk":39,"malware_risk":1,"spam_risk":42,"proximity_risk":71,"overall_risk":71,"expires":"2025-10-06T18:09:38Z"}
11505+
11506+
{"timestamp":"2025-10-06T16:41:00Z","domain":"lkzmqwf.cn","phishing_risk":88,"malware_risk":52,"spam_risk":96,"proximity_risk":65,"overall_risk":96,"expires":"2025-10-07T10:50:46Z"}
11507+
11508+
{"timestamp":"2025-10-06T16:41:00Z","domain":"f64751857.com","phishing_risk":91,"malware_risk":97,"spam_risk":99,"proximity_risk":100,"overall_risk":100,"expires":"2025-10-07T11:18:36Z"}
11509+
11510+
{"timestamp":"2025-10-06T16:41:00Z","domain":"7n6rzvnn.top","phishing_risk":98,"malware_risk":99,"spam_risk":99,"proximity_risk":100,"overall_risk":100,"expires":"2025-10-07T10:27:18Z"}
11511+
11512+
{"timestamp":"2025-10-06T16:41:00Z","domain":"renyixinxi.com","phishing_risk":null,"malware_risk":null,"spam_risk":null,"proximity_risk":82,"overall_risk":82,"expires":"2025-10-07T13:41:56Z"}
11513+
11514+
{"timestamp":"2025-10-06T16:41:00Z","domain":"446gq.top","phishing_risk":98,"malware_risk":98,"spam_risk":98,"proximity_risk":100,"overall_risk":100,"expires":"2025-10-06T20:12:15Z"}
11515+
11516+
{"timestamp":"2025-10-06T16:41:00Z","domain":"tergeo.top","phishing_risk":90,"malware_risk":49,"spam_risk":60,"proximity_risk":91,"overall_risk":91,"expires":"2025-10-07T10:38:09Z"}
11517+
11518+
{"timestamp":"2025-10-06T16:41:00Z","domain":"greenw10.store","phishing_risk":85,"malware_risk":98,"spam_risk":71,"proximity_risk":91,"overall_risk":98,"expires":"2025-10-07T09:19:14Z"}
11519+
11520+
{"timestamp":"2025-10-06T16:41:00Z","domain":"fjz524373.cn","phishing_risk":87,"malware_risk":1,"spam_risk":88,"proximity_risk":100,"overall_risk":100,"expires":"2025-10-07T16:14:10Z"}
11521+
11522+
{"timestamp":"2025-10-06T16:41:00Z","domain":"huanonglv.com","phishing_risk":60,"malware_risk":36,"spam_risk":84,"proximity_risk":82,"overall_risk":84,"expires":"2025-10-07T16:13:19Z"}
11523+
11524+
{"timestamp":"2025-10-06T16:41:00Z","domain":"antikeric.com","phishing_risk":99,"malware_risk":96,"spam_risk":72,"proximity_risk":89,"overall_risk":99,"expires":"2025-10-07T08:55:43Z"}
11525+
11526+
{"timestamp":"2025-10-06T16:41:59Z","domain":"iu03f.shop","phishing_risk":12,"malware_risk":5,"spam_risk":5,"proximity_risk":72,"overall_risk":72,"expires":"2025-10-07T08:55:56Z"}
11527+
11528+
'
11529+
headers:
11530+
Cache-Control:
11531+
- no-store, no-cache, must-revalidate
11532+
Content-Security-Policy:
11533+
- 'default-src * data: blob: ''unsafe-eval'' ''unsafe-inline'''
11534+
Content-Type:
11535+
- application/x-ndjson
11536+
Date:
11537+
- Mon, 06 Oct 2025 16:42:00 GMT
11538+
Expires:
11539+
- Thu, 19 Nov 1981 08:52:00 GMT
11540+
Pragma:
11541+
- no-cache
11542+
Set-Cookie:
11543+
- dtsession=etn9r27mg5psd4tiso4sco74m45e0skqeolu6ko6f7eg7kr5ksmk8cfi6dojhpqdqj1f5g6844vvvtpat1clnfl6qa2d7hdaqeq06l1;
11544+
expires=Wed, 05-Nov-2025 16:41:59 GMT; Max-Age=2592000; path=/; domain=.domaintools.com;
11545+
secure; HttpOnly
11546+
- 0566fae076d9b6615cd8f47a9e9500f2=297dfe9cd5e97958ae6e2e417daaac62; path=/;
11547+
HttpOnly
11548+
Strict-Transport-Security:
11549+
- max-age=31536000; includeSubDomains
11550+
Transfer-Encoding:
11551+
- chunked
11552+
status:
11553+
code: 200
11554+
message: OK
1148511555
version: 1

0 commit comments

Comments
 (0)