Skip to content

Commit 5f4e5e2

Browse files
committed
added tests
1 parent d71fd5d commit 5f4e5e2

27 files changed

+1553
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
interactions:
2+
- request:
3+
body: null
4+
headers:
5+
Accept:
6+
- application/json
7+
Accept-Encoding:
8+
- gzip, deflate
9+
Connection:
10+
- keep-alive
11+
User-Agent:
12+
- azsdk-python-defender-easm/1.0.0b1 Python/3.10.6 (macOS-12.6.2-arm64-arm-64bit)
13+
method: GET
14+
uri: https://eastus.easm.defender.microsoft.com/subscriptions/59af3bf1-d118-4916-808e-923509b34a94/resourceGroups/nate-test-rg/workspaces/testSdkWorkspace9271133/assets/domain%24%24hellointernet.fm?api-version=2022-11-01-preview
15+
response:
16+
body:
17+
string: '{"id":"domain$$hellointernet.fm","name":"hellointernet.fm","displayName":"hellointernet.fm","kind":"domain","uuid":"0489a9d1-2a7b-a689-128c-691b448b0332","asset":{"domain":"hellointernet.fm","whoisId":6957299239761205064,"registrarIanaIds":[{"value":81,"firstSeen":"2018-03-24T05:51:32.421+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","sources":[{"source":"whois","firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":1}],"recent":true}],"registrantContacts":[{"value":"[email protected]","firstSeen":"2020-08-04T11:56:05.760+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","sources":[{"source":"whois","firstSeen":"2021-04-28T08:28:22.372+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":244}],"recent":true},{"value":"[email protected]","firstSeen":"2018-03-24T05:51:32.421+00:00","lastSeen":"2018-03-24T05:51:32.449+00:00","sources":[]}],"registrantOrgs":[{"value":"","firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","sources":[{"source":"whois","firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":2}],"recent":true}],"adminContacts":[{"value":"","firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","sources":[{"source":"whois","firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":2}],"recent":true},{"value":"[email protected]","firstSeen":"2018-03-24T05:51:32.421+00:00","lastSeen":"2018-03-24T05:51:32.449+00:00","sources":[]}],"technicalContacts":[{"value":"","firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","sources":[{"source":"whois","firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":2}],"recent":true},{"value":"[email protected]","firstSeen":"2018-03-24T05:51:32.421+00:00","lastSeen":"2018-03-24T05:51:32.449+00:00","sources":[]}],"alexaInfos":[{"alexaRank":637764,"firstSeen":"2023-01-05T04:25:55.331+00:00","lastSeen":"2023-01-05T13:16:18.884+00:00","recent":true},{"alexaRank":635763,"firstSeen":"2023-01-04T04:25:17.873+00:00","lastSeen":"2023-01-05T01:16:37.512+00:00"},{"alexaRank":641968,"firstSeen":"2023-01-03T04:24:22.638+00:00","lastSeen":"2023-01-04T01:15:13.702+00:00"},{"alexaRank":648747,"firstSeen":"2023-01-02T04:27:10.513+00:00","lastSeen":"2023-01-03T01:14:19.479+00:00"},{"alexaRank":650578,"firstSeen":"2023-01-01T04:24:30.105+00:00","lastSeen":"2023-01-02T01:14:27.629+00:00"},{"alexaRank":645610,"firstSeen":"2022-12-31T04:23:23.315+00:00","lastSeen":"2023-01-01T01:16:06.675+00:00"},{"alexaRank":645728,"firstSeen":"2022-12-30T04:25:23.470+00:00","lastSeen":"2022-12-31T01:13:29.294+00:00"},{"alexaRank":647064,"firstSeen":"2022-12-29T04:24:08.407+00:00","lastSeen":"2022-12-30T01:14:17.997+00:00"},{"alexaRank":640528,"firstSeen":"2022-12-28T04:31:22.551+00:00","lastSeen":"2022-12-29T01:16:03.217+00:00"},{"alexaRank":645793,"firstSeen":"2022-12-27T04:25:33.177+00:00","lastSeen":"2022-12-28T01:20:15.454+00:00"}],"nameServers":[{"value":"a.dns.gandi.net","firstSeen":"2013-09-23T21:16:23.000+00:00","lastSeen":"2023-01-05T09:08:16.000+00:00","sources":[{"source":"pdns.NS","firstSeen":"2021-07-19T02:52:43.000+00:00","lastSeen":"2023-01-05T09:08:16.000+00:00","count":45065},{"source":"whois","firstSeen":"2021-04-28T08:28:22.372+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":211}],"recent":true},{"value":"b.dns.gandi.net","firstSeen":"2013-09-23T21:16:23.000+00:00","lastSeen":"2023-01-05T09:08:16.000+00:00","sources":[{"source":"pdns.NS","firstSeen":"2021-07-19T02:52:43.000+00:00","lastSeen":"2023-01-05T09:08:16.000+00:00","count":45070},{"source":"whois","firstSeen":"2021-04-28T08:28:22.372+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":211}],"recent":true},{"value":"c.dns.gandi.net","firstSeen":"2013-09-23T21:16:23.000+00:00","lastSeen":"2023-01-05T09:08:16.000+00:00","sources":[{"source":"pdns.NS","firstSeen":"2021-07-19T02:52:43.000+00:00","lastSeen":"2023-01-05T09:08:16.000+00:00","count":45066},{"source":"whois","firstSeen":"2021-04-28T08:28:22.372+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":211}],"recent":true}],"mailServers":[{"value":"fb.mail.gandi.net","firstSeen":"2014-02-26T06:00:49.000+00:00","lastSeen":"2022-12-31T02:24:12.000+00:00","sources":[{"source":"pdns.MX","firstSeen":"2021-07-18T22:45:50.000+00:00","lastSeen":"2022-12-31T02:24:12.000+00:00","count":5607}],"recent":true},{"value":"spool.mail.gandi.net","firstSeen":"2014-02-26T06:00:49.000+00:00","lastSeen":"2022-12-31T02:24:12.000+00:00","sources":[{"source":"pdns.MX","firstSeen":"2021-07-18T22:45:50.000+00:00","lastSeen":"2022-12-31T02:24:12.000+00:00","count":5607}],"recent":true}],"whoisServers":[{"value":"whois.gandi.net","firstSeen":"2018-03-24T05:51:32.421+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","sources":[{"source":"whois","firstSeen":"2021-04-28T08:28:22.372+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":244}],"recent":true}],"domainStatuses":[{"value":"clientTransferProhibited","firstSeen":"2018-03-24T05:51:32.421+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","sources":[{"source":"whois","firstSeen":"2021-04-28T08:28:22.372+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":244}],"recent":true}],"registrarCreatedAt":[{"value":1371340799000,"firstSeen":"2018-03-24T05:51:32.421+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","sources":[{"source":"whois","firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":1}],"recent":true}],"registrarUpdatedAt":[{"value":1657806642000,"firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","sources":[{"source":"whois","firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":1}],"recent":true},{"value":1654861322000,"firstSeen":"2022-06-24T01:04:41.212+00:00","lastSeen":"2022-07-25T11:43:19.128+00:00","sources":[{"source":"whois","firstSeen":"2022-06-24T01:04:41.212+00:00","lastSeen":"2022-07-25T11:43:19.128+00:00","count":1}]},{"value":1652648979000,"firstSeen":"2022-05-23T14:27:08.747+00:00","lastSeen":"2022-06-24T01:04:41.211+00:00","sources":[{"source":"whois","firstSeen":"2022-05-23T14:27:08.747+00:00","lastSeen":"2022-06-24T01:04:41.211+00:00","count":1}]},{"value":1627727869000,"firstSeen":"2021-08-06T17:36:18.524+00:00","lastSeen":"2022-05-23T14:27:08.438+00:00","sources":[{"source":"whois","firstSeen":"2021-08-06T17:36:18.524+00:00","lastSeen":"2022-05-23T14:27:08.438+00:00","count":1}]},{"value":1615564744000,"firstSeen":"2021-04-28T08:28:22.372+00:00","lastSeen":"2021-08-06T17:36:18.523+00:00","sources":[{"source":"whois","firstSeen":"2021-04-28T08:28:22.372+00:00","lastSeen":"2021-08-06T17:36:18.523+00:00","count":1}]},{"value":1586259577000,"firstSeen":"2020-06-03T19:04:37.067+00:00","lastSeen":"2021-04-28T08:28:22.372+00:00","sources":[{"source":"whois","firstSeen":"2020-08-04T11:56:05.760+00:00","lastSeen":"2021-04-28T08:28:22.372+00:00","count":1}]},{"value":1559810167000,"firstSeen":"2019-07-15T09:18:14.272+00:00","lastSeen":"2020-08-04T11:56:05.754+00:00","sources":[]},{"value":1526850600000,"firstSeen":"2018-10-27T09:05:01.258+00:00","lastSeen":"2018-10-27T09:05:01.273+00:00","sources":[]},{"value":1508339496000,"firstSeen":"2018-03-24T05:51:32.421+00:00","lastSeen":"2018-03-24T05:51:32.449+00:00","sources":[]}],"registrarExpiresAt":[{"value":1718495999000,"firstSeen":"2022-06-24T01:04:41.212+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","sources":[{"source":"whois","firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":1}],"recent":true},{"value":1686873599000,"firstSeen":"2022-05-23T14:27:08.747+00:00","lastSeen":"2022-06-24T01:04:41.211+00:00","sources":[{"source":"whois","firstSeen":"2022-05-23T14:27:08.747+00:00","lastSeen":"2022-06-24T01:04:41.211+00:00","count":1}]},{"value":1655337599000,"firstSeen":"2021-08-06T17:36:18.524+00:00","lastSeen":"2022-05-23T14:27:08.438+00:00","sources":[{"source":"whois","firstSeen":"2021-08-06T17:36:18.524+00:00","lastSeen":"2022-05-23T14:27:08.438+00:00","count":1}]},{"value":1623801599000,"firstSeen":"2020-06-03T19:04:37.067+00:00","lastSeen":"2021-08-06T17:36:18.523+00:00","sources":[{"source":"whois","firstSeen":"2021-04-28T08:28:22.372+00:00","lastSeen":"2021-08-06T17:36:18.523+00:00","count":1}]},{"value":1592265599000,"firstSeen":"2019-07-15T09:18:14.272+00:00","lastSeen":"2020-08-04T11:56:05.754+00:00","sources":[]},{"value":1560643199000,"firstSeen":"2018-10-27T09:05:01.258+00:00","lastSeen":"2018-10-27T09:05:01.273+00:00","sources":[]},{"value":1529107199000,"firstSeen":"2018-03-24T05:51:32.421+00:00","lastSeen":"2018-03-24T05:51:32.449+00:00","sources":[]}],"soaRecords":[{"nameServer":"a.dns.gandi.net","email":"[email protected]","firstSeen":"2014-10-09T23:15:08.000+00:00","lastSeen":"2022-12-31T02:24:11.000+00:00","serialNumber":1391010106,"recent":true}],"detailedFromWhoisAt":"2022-12-09T04:16:33.174+00:00","registrarNames":[{"value":"Gandi
18+
SAS","firstSeen":"2018-03-24T05:51:32.421+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","sources":[{"source":"whois","firstSeen":"2021-04-28T08:28:22.372+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":244}],"recent":true}],"sources":[{"source":"alexa","firstSeen":"2018-10-08T17:00:28.538+00:00","lastSeen":"2023-01-05T13:16:18.884+00:00","count":13118},{"source":"pdns","firstSeen":"2013-09-23T21:16:23.000+00:00","lastSeen":"2023-01-05T09:08:16.000+00:00","count":404998},{"source":"whois","firstSeen":"2018-03-24T05:51:32.421+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":521},{"source":"minicrawl","firstSeen":"2019-07-04T18:32:59.468+00:00","lastSeen":"2022-11-08T20:56:53.354+00:00","count":4552}],"firstSeen":"2013-09-23T21:16:23.000+00:00","lastSeen":"2023-01-05T13:16:18.884+00:00","count":423189,"parkedDomain":[{"value":false,"firstSeen":"2019-07-04T18:32:59.468+00:00","lastSeen":"2022-11-08T20:56:53.354+00:00","sources":[],"recent":true}],"registrantNames":[{"value":"Admin
19+
Email: https://whois.nic.fm/contact/hellointernet.fm/admin","firstSeen":"2020-08-04T11:56:05.760+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","sources":[{"source":"whois","firstSeen":"2021-04-28T08:28:22.372+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":244}],"recent":true}],"adminNames":[{"value":"Admin
20+
Email: https://whois.nic.fm/contact/hellointernet.fm/admin","firstSeen":"2020-08-04T11:56:05.760+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","sources":[{"source":"whois","firstSeen":"2021-04-28T08:28:22.372+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":244}],"recent":true}],"technicalNames":[{"value":"Tech
21+
Email: https://whois.nic.fm/contact/hellointernet.fm/tech","firstSeen":"2020-08-04T11:56:05.760+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","sources":[{"source":"whois","firstSeen":"2021-04-28T08:28:22.372+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":244}],"recent":true}],"adminOrgs":[{"value":"","firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","sources":[{"source":"whois","firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":2}],"recent":true}],"technicalOrgs":[{"value":"","firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","sources":[{"source":"whois","firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":2}],"recent":true}],"registrantPhones":[{"value":"","firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","sources":[{"source":"whois","firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":2}],"recent":true}],"adminPhones":[{"value":"","firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","sources":[{"source":"whois","firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":2}],"recent":true}],"technicalPhones":[{"value":"","firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","sources":[{"source":"whois","firstSeen":"2022-07-25T11:43:19.128+00:00","lastSeen":"2022-12-09T04:16:33.174+00:00","count":2}],"recent":true}]},"createdDate":null,"updatedDate":null,"state":null,"externalId":null,"labels":null,"wildcard":false,"discoGroupName":null,"auditTrail":null,"reason":null}'
22+
headers:
23+
cache-control:
24+
- no-cache, no-store, max-age=0, must-revalidate
25+
connection:
26+
- keep-alive
27+
content-disposition:
28+
- inline;filename=f.txt
29+
content-length:
30+
- '12638'
31+
content-type:
32+
- application/json
33+
date:
34+
- Thu, 05 Jan 2023 16:24:38 GMT
35+
expires:
36+
- '0'
37+
pragma:
38+
- no-cache
39+
server:
40+
- digitalfootprint-web
41+
set-cookie:
42+
- df=Y2FlOGMwZGItZjlhNS00NDRmLTkzMzMtMTZiNGI2Nzg5Mjdm; Path=/; Secure; HttpOnly;
43+
SameSite=Lax
44+
strict-transport-security:
45+
- max-age=31536000 ; includeSubDomains
46+
transfer-encoding:
47+
- chunked
48+
vary:
49+
- origin,access-control-request-method,access-control-request-headers,accept-encoding
50+
x-content-type-options:
51+
- nosniff
52+
x-frame-options:
53+
- DENY
54+
x-ms-ui-version:
55+
- sdk
56+
x-xss-protection:
57+
- 1; mode=block
58+
status:
59+
code: 200
60+
message: ''
61+
version: 1

0 commit comments

Comments
 (0)