Commit Graph

35 Commits

Author SHA1 Message Date
Rudi Floren
2188df56c3 add RFC8590 implementation
Implements the Change Poll Extension for the Extensible Provisioning Protocol.
Test cases are taken from the spec.
2024-12-16 12:29:25 +01:00
gibbz00
ef1746cb85 chore!: deprecate Period::years and months constructors 2024-10-21 15:41:00 +00:00
Dirkjan Ochtman
65bf5f5595 Add support for rgp-poll extension 2024-05-27 11:38:32 +02:00
kmkaplan
976fd2c002
[secDNS] EPP <create> command (#20) 2023-04-18 15:57:57 +02:00
kmkaplan
7024bcd7a5
Frnic contact create (#16) 2023-04-14 10:10:06 +02:00
Kim Minh Kaplan
1451ffb8e5 Make contact's organization, province, postal code and voice optional.
This changes the signature for `contact::Address::new`,
`contact::ContactCreate::new` and the type of fields
`contact::InfoData::voice` and `contact::ContactCreateRequest::voice`.

Fixes issue #13.
2023-04-03 13:18:58 +02:00
kmkaplan
6551749b77
Do not emit empty svcExtension XML element (#12)
Co-authored-by: Kim Minh Kaplan <kimminh.kaplan+git@afnic.fr>
2023-03-31 15:31:01 +02:00
Dirkjan Ochtman
0c6283fbf4 Provide more precise types for poll/ack commands
Ideally we might have modeled this with an enum with one named
field in the variants, but instant-xml is not yet up to the task;
in the mean-time, this provides more robust types, and manual
ToXml implementations aren't too verbose anyway.
2023-03-02 17:19:33 +01:00
Dirkjan Ochtman
f5ea188fbb Move poll module to the top level 2023-03-02 17:19:33 +01:00
Dirkjan Ochtman
f2194c818c Use enum type to represent host::Status 2023-03-02 16:42:44 +01:00
Dirkjan Ochtman
96268d9528 Use enum type to represent contact::Status 2023-03-02 16:42:44 +01:00
Dirkjan Ochtman
cd92b45156 Use enum type to represent domain::Status 2023-03-02 16:42:44 +01:00
Dirkjan Ochtman
6b2b9d1a7f Use inline format arguments 2023-02-28 17:04:58 +01:00
Dirkjan Ochtman
c4684a526f Update Cargo metadata 2023-02-28 17:04:58 +01:00
Dirkjan Ochtman
3829ed77fa Switch from quick-xml to instant-xml 2023-02-28 17:04:58 +01:00
Dirkjan Ochtman
7e3006825f Add support for Verisign low balance mapping extension 2023-02-21 20:50:41 +01:00
Mari
e9cf8bc3f9 set new-password as argument 2022-09-07 06:03:16 +08:00
Mari
63406ef308 Update basic tests to new syntax 2022-09-07 06:03:16 +08:00
Mari
cc08819fdc Allow changing passwords 2022-09-07 06:03:16 +08:00
Dirkjan Ochtman
ace791b521 Add test for dropping request future 2022-03-14 23:41:41 +08:00
Dirkjan Ochtman
ae4c9869ab Improve robustness against dropping futures 2022-03-14 23:41:41 +08:00
Dirkjan Ochtman
36558c429c Allow the Connection to connect itself 2022-02-10 13:55:34 +08:00
Dirkjan Ochtman
dc3f10cae3 Wrap timeouts around network operations 2022-02-04 11:39:13 +08:00
Dirkjan Ochtman
5fb32978bd Improve check request API types by redirecting serialization 2022-01-31 14:04:48 +08:00
Dirkjan Ochtman
fdec3f29fc Redirect CheckResponse deserialization to improve interface 2022-01-31 14:04:48 +08:00
Dirkjan Ochtman
a5d6643d6f Share CheckResponse type with contacts 2022-01-31 14:04:48 +08:00
Dirkjan Ochtman
dd1c9c1e66 Share CheckResponse types for domain and host resources 2022-01-31 14:04:48 +08:00
Dirkjan Ochtman
0c36d8add3 Use an enum for result codes 2022-01-27 17:10:28 +08:00
Dirkjan Ochtman
630c6b06e4 Change DomainAvailable::available to be a bool
From RFC 5731:

    This element MUST contain an "avail" attribute whose value indicates
    object availability (can it be provisioned or not) at the moment the
    <check> command was completed.  A value of "1" or "true" means that
    the object can be provisioned.  A value of "0" or "false" means that
    the object can not be provisioned.
2022-01-24 16:34:33 +08:00
Dirkjan Ochtman
9acd9eac29 Take Login ext_uris values as a slice to allow caller to avoid allocation
In some cases the caller might be able to use a const slice for this.
2022-01-24 15:34:45 +08:00
Nicholas Rempel
c0ebbf6b52 Add test case for message only poll response 2022-01-06 19:22:20 +08:00
Nicholas Rempel
427db7a1eb Add test case for empty queue poll response 2022-01-06 19:22:20 +08:00
Nicholas Rempel
569bd86bae Add HostInfoResponseData to list of support message poll response types 2022-01-06 19:22:20 +08:00
Dirkjan Ochtman
e9c5db9a1c Add basic test for high-level API 2022-01-03 10:22:20 +08:00
Dirkjan Ochtman
8efb206e43 Rename test directory to tests 2022-01-03 10:22:20 +08:00