-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathjustfile
More file actions
128 lines (100 loc) · 4.28 KB
/
justfile
File metadata and controls
128 lines (100 loc) · 4.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
default:
just --list
[doc('Run the tests.')]
test:
cargo test
[doc('Update golden files.')]
update_goldenfiles $UPDATE_GOLDENFILES="1":
cargo test
[doc('Run clean and then the tests.')]
clean_test:
cargo clean \
&& cargo test
[doc('Run tests then build docs.')]
test_n_doc:
cargo test \
&& cargo doc --no-deps
[doc('Run this before PR. WASM32 target required.')]
pr_check:
cargo fmt --check \
&& cargo clean \
&& cargo check --target wasm32-unknown-unknown -p icann-rdap-client \
&& cargo test \
&& cargo doc --no-deps
[doc('Run an IP query smoke test.')]
smoke_ip_query:
cargo run --bin rdap -- -L debug 199.4.138.53
[doc('Run a domain query smoke test.')]
smoke_domain_query:
cargo run --bin rdap -- -L debug icann.org
[doc('Look at the rdap help.')]
smoke_rdap_help:
cargo run --bin rdap -- --help
[doc('Run an IP conformance check smoke test.')]
smoke_ip_check:
cargo run --bin rdap-test -- 199.4.138.53
[doc('Run a domain conformance check smoke test.')]
smoke_domain_check:
cargo run --bin rdap-test -- icann.org
[doc('Look at the rdap-test help.')]
smoke_rdap_test_help:
cargo run --bin rdap-test -- --help
[doc('Create a help response in the server.')]
srv_data_help:
RDAP_SRV_LOG=debug cargo run --bin rdap-srv-data -- srv-help --notice "this is a test server"
[doc('Create an entity in the server.')]
srv_data_entity:
RDAP_SRV_LOG=debug cargo run --bin rdap-srv-data -- entity --handle foo1234-oid --email joe@example.com --full-name "Joe User"
[doc('Create a domain in the server.')]
srv_data_domain:
RDAP_SRV_LOG=debug cargo run --bin rdap-srv-data -- domain --ldh example.com --registrant foo1234-oid --ns ns1.example.com
[doc('Create a nameserver in the server.')]
srv_data_nameserver:
RDAP_SRV_LOG=debug cargo run --bin rdap-srv-data -- nameserver --ldh ns1.example.com --registrant foo1234-oid --v4 10.0.2.1 --v6 2001::1
[doc('Start the server')]
srv_start:
RDAP_SRV_DOMAIN_SEARCH_BY_NAME=true \
RDAP_SRV_DOMAIN_SEARCH_BY_NS_IP=true \
RDAP_SRV_DOMAIN_SEARCH_BY_NS_LDH_NAME=true \
RDAP_SRV_NAMESERVER_SEARCH_BY_NAME=true \
RDAP_SRV_NAMESERVER_SEARCH_BY_IP=true \
RDAP_SRV_ENTITY_SEARCH_BY_HANDLE=true \
RDAP_SRV_ENTITY_SEARCH_BY_FULL_NAME=true \
RDAP_SRV_LOG=debug \
cargo run --bin rdap-srv
[doc('Update the data in the server.')]
srv_update:
RDAP_SRV_LOG=debug cargo run --bin rdap-srv-store -- --update
[doc('Get server help in localhost.')]
srv_lookup_help:
cargo run --bin rdap -- --log-level debug -N -T -B http://localhost:3000/rdap -S
[doc('Lookup the nameserver in localhost.')]
srv_lookup_nameserver:
cargo run --bin rdap -- --log-level debug -N -T -B http://localhost:3000/rdap ns1.example.com
[doc('Lookup the domain in localhost.')]
srv_lookup_domain:
cargo run --bin rdap -- --log-level debug -N -T -B http://localhost:3000/rdap example.com
[doc('Lookup the entity in localhost.')]
srv_lookup_entity:
cargo run --bin rdap -- --log-level debug -N -T -B http://localhost:3000/rdap foo1234
[doc('Lookup the non-existent domain in localhost.')]
srv_lookup_nxdomain:
cargo run --bin rdap -- --log-level debug -N -T -B http://localhost:3000/rdap nx.invalid
[doc('Search for nameservers by name in localhost.')]
srv_search_nameserver_name:
cargo run --bin rdap -- --log-level debug -N -T -B http://localhost:3000/rdap -t ns-name "ns1.*.com"
[doc('Search for nameservers by IP in localhost.')]
srv_search_nameserver_ip:
cargo run --bin rdap -- --log-level debug -N -T -B http://localhost:3000/rdap -t ns-ip 10.0.2.1
[doc('Search for domains by nameserver IP in localhost.')]
srv_search_domain_ns_ip:
cargo run --bin rdap -- --log-level debug -N -T -B http://localhost:3000/rdap -t domain-ns-ip 10.0.2.1
[doc('Search for domains by nameserver name in localhost.')]
srv_search_domain_ns_ldh:
cargo run --bin rdap -- --log-level debug -N -T -B http://localhost:3000/rdap -t domain-ns-name "ns1.*.com"
[doc('Search for entityby by handle in localhost.')]
srv_search_entity_handle:
cargo run --bin rdap -- --log-level debug -N -T -B http://localhost:3000/rdap -t entity-handle "foo1234-*"
[doc('Search for entityby by name in localhost.')]
srv_search_entity_name:
cargo run --bin rdap -- --log-level debug -N -T -B http://localhost:3000/rdap -t entity-name "Joe*"