Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenzing committed Mar 27, 2024
1 parent 9ac9bb6 commit bea7cf5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ VALUES
(18, '[3937005,)', '0x0d086030cbd65bc7815cf758e586439ad1ea9d0b6fee3b3d757fde1f9a514b49', 'bloomberg.eth', 'bloomberg', '\xdeb000fbbe0f3de1f86bcaf4f433c09bacbaa44bdc4b26bc13244743fd277804', '0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae', 0, NULL, NULL, NULL, false, 1498554162, '0x00f2aaa26fa8a6aada2afa7f545b141c8aca983f', NULL, NULL, NULL),
(19, '[3793505,)', '0x2f0af22f275fd8ad35453e8601964f8b9b492e52567a4ec93418381ae1e721f7', 'booking.eth', 'booking', '\x5c404fe0d68b7f2cbf78d2796785dfbc224cc281de624ac154aa97e8b83810e1', '0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae', 0, NULL, NULL, NULL, false, 1496160511, '0x2014e01eefe653901a7721fa908b0055f2eb84dc', NULL, NULL, NULL),
(20, '[3870845,)', '0x7e1d0d7c24e1d7f82fb85f66a0c47b7c9dcaa290803b81e0f7bb7a76dcdbaf3f', 'brandbucket.eth', 'brandbucket', '\x942dd1cc8e267c4992feb18791fbfa374b39cd9843c5a915f8c27a49c527ee39', '0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae', 0, NULL, NULL, NULL, false, 1497433469, '0x4c759813ad1386bed27ffae9e4815e3630cca312', NULL, NULL, NULL),
(21,'[13294741,)','0xeb4f647bea6caa36333c816d7b46fdcb05f9466ecacc140ea8c66faf15b3d9f1','test.eth','test','\x9C22FF5F21F0B81B113E63F7DB6DA94FEDEF11B2119B4088B89664FB9A3CB658','0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae',0,'0xeefb13c7d42efcc655e528da6d6f7bbcf9a2251d','0x226159d592e2b063810a10ebf6dcbada94ed68b8-0xeb4f647bea6caa36333c816d7b46fdcb05f9466ecacc140ea8c66faf15b3d9f1',NULL,true,1571902007,'0xbd6bbe64bf841b81fc5a6e2b760029e316f2783b','0xbd6bbe64bf841b81fc5a6e2b760029e316f2783b',NULL,1737441815),
(22,'[10498481,13294741)','0xeb4f647bea6caa36333c816d7b46fdcb05f9466ecacc140ea8c66faf15b3d9f1','test.eth','test','\x9C22FF5F21F0B81B113E63F7DB6DA94FEDEF11B2119B4088B89664FB9A3CB658','0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae',0,NULL,'0x226159d592e2b063810a10ebf6dcbada94ed68b8-0xeb4f647bea6caa36333c816d7b46fdcb05f9466ecacc140ea8c66faf15b3d9f1',NULL,true,1571902007,'0xbd6bbe64bf841b81fc5a6e2b760029e316f2783b','0xbd6bbe64bf841b81fc5a6e2b760029e316f2783b',NULL,1737441815),
(23,'[13695732,)','0xee6c4522aab0003e8d14cd40a6af439055fd2577951148c14b6cea9a53475835','vitalik.eth','vitalik','\xAF2CAA1C2CA1D027F1AC823B529D0A67CD144264B2789FA2EA4D63A67C7103CC','0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae',0,'0xd8da6bf26964af9d7eed9e03e53415d37aa96045','0x4976fb03c32e5b8cfe2b6ccb31c09ba78ebaba41-0xee6c4522aab0003e8d14cd40a6af439055fd2577951148c14b6cea9a53475835',NULL,true,1497775154,'0xd8da6bf26964af9d7eed9e03e53415d37aa96045','0x220866b1a2219f40e72f5c628b65d54268ca3a9d',NULL,1975009824),
(24,'[13942919,)','0x68b620f61c87062cf680144f898582a631c90e39dd1badb35c241be0a7284fff','sashaxyz.eth','sashaxyz','\x5F5E95F7A849C60A514EB073C6FAFE97E835C0EE7B6DC15FC9D7DAA9E86F1A25','0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae',0,'0xd8da6bf26964af9d7eed9e03e53415d37aa96045','0x4976fb03c32e5b8cfe2b6ccb31c09ba78ebaba41-0x68b620f61c87062cf680144f898582a631c90e39dd1badb35c241be0a7284fff',NULL,true,1640341437,'0x66a6f7744ce4dea450910b81a7168588f992eafb','0x66a6f7744ce4dea450910b81a7168588f992eafb',NULL,1711231341),
(21,'[13294741,)','0xeb4f647bea6caa36333c816d7b46fdcb05f9466ecacc140ea8c66faf15b3d9f1','test.eth','test','\x9C22FF5F21F0B81B113E63F7DB6DA94FEDEF11B2119B4088B89664FB9A3CB658','0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae',0,'0xeefb13c7d42efcc655e528da6d6f7bbcf9a2251d','0x226159d592e2b063810a10ebf6dcbada94ed68b8-0xeb4f647bea6caa36333c816d7b46fdcb05f9466ecacc140ea8c66faf15b3d9f1',NULL,true,1571902007,'0xbd6bbe64bf841b81fc5a6e2b760029e316f2783b','0xbd6bbe64bf841b81fc5a6e2b760029e316f2783b',NULL,2147483647),
(22,'[10498481,13294741)','0xeb4f647bea6caa36333c816d7b46fdcb05f9466ecacc140ea8c66faf15b3d9f1','test.eth','test','\x9C22FF5F21F0B81B113E63F7DB6DA94FEDEF11B2119B4088B89664FB9A3CB658','0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae',0,NULL,'0x226159d592e2b063810a10ebf6dcbada94ed68b8-0xeb4f647bea6caa36333c816d7b46fdcb05f9466ecacc140ea8c66faf15b3d9f1',NULL,true,1571902007,'0xbd6bbe64bf841b81fc5a6e2b760029e316f2783b','0xbd6bbe64bf841b81fc5a6e2b760029e316f2783b',NULL,2147483647),
(23,'[13695732,)','0xee6c4522aab0003e8d14cd40a6af439055fd2577951148c14b6cea9a53475835','vitalik.eth','vitalik','\xAF2CAA1C2CA1D027F1AC823B529D0A67CD144264B2789FA2EA4D63A67C7103CC','0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae',0,'0xd8da6bf26964af9d7eed9e03e53415d37aa96045','0x4976fb03c32e5b8cfe2b6ccb31c09ba78ebaba41-0xee6c4522aab0003e8d14cd40a6af439055fd2577951148c14b6cea9a53475835',NULL,true,1497775154,'0xd8da6bf26964af9d7eed9e03e53415d37aa96045','0x220866b1a2219f40e72f5c628b65d54268ca3a9d',NULL,2147483647),
(24,'[13942919,)','0x68b620f61c87062cf680144f898582a631c90e39dd1badb35c241be0a7284fff','sashaxyz.eth','sashaxyz','\x5F5E95F7A849C60A514EB073C6FAFE97E835C0EE7B6DC15FC9D7DAA9E86F1A25','0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae',0,'0xd8da6bf26964af9d7eed9e03e53415d37aa96045','0x4976fb03c32e5b8cfe2b6ccb31c09ba78ebaba41-0x68b620f61c87062cf680144f898582a631c90e39dd1badb35c241be0a7284fff',NULL,true,1640341437,'0x66a6f7744ce4dea450910b81a7168588f992eafb','0x66a6f7744ce4dea450910b81a7168588f992eafb',NULL,2147483647),
(25,'[12439863,)','0x86f0774249ae1b7dcb5873ac0ada288d09ec4b3bf8bbf672b67726793797142e','expired.eth','expired','\x64CA1AE50619F7F4AB23F4C22C6B85B70CFC49C072D731BE4F91487F95764C93','0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae',0,'0x9f7f7ddbfb8e14d1756580ba8037530da0880b99','0x4976fb03c32e5b8cfe2b6ccb31c09ba78ebaba41-0x86f0774249ae1b7dcb5873ac0ada288d09ec4b3bf8bbf672b67726793797142e',NULL,true,1496998132,'0x9f7f7ddbfb8e14d1756580ba8037530da0880b99','0x9f7f7ddbfb8e14d1756580ba8037530da0880b99',NULL,1688547600),
(26,'[13601083,)','0x5d438d292de31e08576d5bcd8a93aa41b401b9d9aeaba57da1a32c003e5fd5f5','wa🇬🇲i.eth','wa🇬🇲i','\x66F484A3530B784F2347DE3459625585DA2B38B429596364B98186B1C5E30180','0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae',0,'0x9c996076a85b46061d9a70ff81f013853a86b619','0x4976fb03c32e5b8cfe2b6ccb31c09ba78ebaba41-0x5d438d292de31e08576d5bcd8a93aa41b401b9d9aeaba57da1a32c003e5fd5f5',NULL,true,1636717006,'0xd4416b13d2b3a9abae7acd5d6c2bbdbe25686401','0x9c996076a85b46061d9a70ff81f013853a86b619','0x9c996076a85b46061d9a70ff81f013853a86b619',1802277766),
(26,'[13601083,)','0x5d438d292de31e08576d5bcd8a93aa41b401b9d9aeaba57da1a32c003e5fd5f5','wa🇬🇲i.eth','wa🇬🇲i','\x66F484A3530B784F2347DE3459625585DA2B38B429596364B98186B1C5E30180','0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae',0,'0x9c996076a85b46061d9a70ff81f013853a86b619','0x4976fb03c32e5b8cfe2b6ccb31c09ba78ebaba41-0x5d438d292de31e08576d5bcd8a93aa41b401b9d9aeaba57da1a32c003e5fd5f5',NULL,true,1636717006,'0xd4416b13d2b3a9abae7acd5d6c2bbdbe25686401','0x9c996076a85b46061d9a70ff81f013853a86b619','0x9c996076a85b46061d9a70ff81f013853a86b619',2147483647),
-- this is unresolved domain `you-dont-know-this-label.eth`
(27,'[13601083,)','0xbbe8c4a4631586c84c5b07cdfcbe27f5131ae9dc0176f8ecd324f9b6c5db777b','[0b0e081f36b3970ff8e337f0ff7bdfad321a702fa00916b6ccfc47877144f7ad].eth',NULL,'\x0b0e081f36b3970ff8e337f0ff7bdfad321a702fa00916b6ccfc47877144f7ad','0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae',0,'0x0101010101010101010101010101010101010101','0x4976fb03c32e5b8cfe2b6ccb31c09ba78ebaba41-0xbbe8c4a4631586c84c5b07cdfcbe27f5131ae9dc0176f8ecd324f9b6c5db777b',NULL,true,1636717006,'0x9c996076a85b46061d9a70ff81f013853a86b619','0x9c996076a85b46061d9a70ff81f013853a86b619',NULL,1802277766),
(27,'[13601083,)','0xbbe8c4a4631586c84c5b07cdfcbe27f5131ae9dc0176f8ecd324f9b6c5db777b','[0b0e081f36b3970ff8e337f0ff7bdfad321a702fa00916b6ccfc47877144f7ad].eth',NULL,'\x0b0e081f36b3970ff8e337f0ff7bdfad321a702fa00916b6ccfc47877144f7ad','0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae',0,'0x0101010101010101010101010101010101010101','0x4976fb03c32e5b8cfe2b6ccb31c09ba78ebaba41-0xbbe8c4a4631586c84c5b07cdfcbe27f5131ae9dc0176f8ecd324f9b6c5db777b',NULL,true,1636717006,'0x9c996076a85b46061d9a70ff81f013853a86b619','0x9c996076a85b46061d9a70ff81f013853a86b619',NULL,2147483647),
-- REVERSE RECORDS
-- d8da6bf26964af9d7eed9e03e53415d37aa96045.addr.reverse
(28,'[8835278,)','0x7aef81fbd30c83431369026d62ee533af8b69f246b63d75b40fe223346e6fa9a','[cafecafe].addr.reverse',NULL,'\x535BDAE9BB214B3CC583B53384464999F2F7F48625F160728C63E73E766FF71E','0x91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e2',0,NULL,'0xa2c122be93b0074270ebee7f6b7292c7deb45047-0x7aef81fbd30c83431369026d62ee533af8b69f246b63d75b40fe223346e6fa9a',NULL,false,1572369800,'0x9062c0a6dbd6108336bcbe4593a3d1ce05512069',NULL,NULL,NULL),
Expand Down
16 changes: 8 additions & 8 deletions blockscout-ens/bens-server/tests/domains.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async fn check_basic_scenario_eth(settings: Settings, base: Url) {
// get detailed domain
let request: Value = send_get_request(&base, "/api/v1/1/domains/vitalik.eth").await;
let vitalik_detailed_json = json!({
"expiry_date": "2032-08-01T21:50:24.000Z",
"expiry_date": "2038-01-19T03:14:07.000Z",
"id": "0xee6c4522aab0003e8d14cd40a6af439055fd2577951148c14b6cea9a53475835",
"name": "vitalik.eth",
"other_addresses": {
Expand Down Expand Up @@ -91,7 +91,7 @@ async fn check_basic_scenario_eth(settings: Settings, base: Url) {
assert_eq!(
request,
json!({
"expiry_date": "2027-02-10T16:42:46.000Z",
"expiry_date": "2038-01-19T03:14:07.000Z",
"id": "0x5d438d292de31e08576d5bcd8a93aa41b401b9d9aeaba57da1a32c003e5fd5f5",
"name": "wa🇬🇲i.eth",
"other_addresses": {},
Expand Down Expand Up @@ -193,9 +193,9 @@ async fn check_basic_scenario_eth(settings: Settings, base: Url) {
.await;

// all domains lookup + check pagination
let expected_domains = vec![
let expected_domains = [
json!({
"expiry_date": "2024-03-23T22:02:21.000Z",
"expiry_date": "2038-01-19T03:14:07.000Z",
"id": "0x68b620f61c87062cf680144f898582a631c90e39dd1badb35c241be0a7284fff",
"name": "sashaxyz.eth",
"owner": {
Expand All @@ -208,7 +208,7 @@ async fn check_basic_scenario_eth(settings: Settings, base: Url) {
},
}),
json!({
"expiry_date": "2027-02-10T16:42:46.000Z",
"expiry_date": "2038-01-19T03:14:07.000Z",
"id": "0x5d438d292de31e08576d5bcd8a93aa41b401b9d9aeaba57da1a32c003e5fd5f5",
"name": "wa🇬🇲i.eth",
"owner": {
Expand All @@ -223,7 +223,7 @@ async fn check_basic_scenario_eth(settings: Settings, base: Url) {
},
}),
json!({
"expiry_date": "2025-01-21T06:43:35.000Z",
"expiry_date": "2038-01-19T03:14:07.000Z",
"id": "0xeb4f647bea6caa36333c816d7b46fdcb05f9466ecacc140ea8c66faf15b3d9f1",
"name": "test.eth",
"owner": {
Expand Down Expand Up @@ -281,7 +281,7 @@ async fn check_basic_scenario_eth(settings: Settings, base: Url) {
},
"wrapped_owner": null,
"registration_date": "2021-12-24T10:23:57.000Z",
"expiry_date": "2024-03-23T22:02:21.000Z"
"expiry_date": "2038-01-19T03:14:07.000Z"
}
)];
expect_list_results(
Expand All @@ -306,7 +306,7 @@ async fn check_basic_scenario_eth(settings: Settings, base: Url) {
},
"wrapped_owner": null,
"registration_date": "2017-06-18T08:39:14.000Z",
"expiry_date": "2032-08-01T21:50:24.000Z"
"expiry_date": "2038-01-19T03:14:07.000Z"
}
)]
.into_iter()
Expand Down

0 comments on commit bea7cf5

Please sign in to comment.