Update greetings test
This commit is contained in:
parent
7edb2402a2
commit
356194af08
|
@ -4,6 +4,8 @@ mod response {
|
|||
use super::super::get_xml;
|
||||
use super::super::CLTRID;
|
||||
use crate::epp::object::StringValueTrait;
|
||||
use crate::epp::response::ExpiryType;
|
||||
use crate::epp::response::Relative;
|
||||
use crate::epp::response::{
|
||||
EppCommandResponseError, EppGreeting, EppLoginResponse, EppLogoutResponse,
|
||||
};
|
||||
|
@ -38,6 +40,13 @@ mod response {
|
|||
.len(),
|
||||
5
|
||||
);
|
||||
assert_eq!(object.data.dcp.statement.len(), 2);
|
||||
assert_eq!(
|
||||
object.data.dcp.expiry.unwrap().ty,
|
||||
ExpiryType::Relative(Relative {
|
||||
relative: "P1M".to_string_value()
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -1,40 +1,54 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd">
|
||||
<greeting>
|
||||
<svID>ISPAPI EPP Server</svID>
|
||||
<svDate>2021-07-25T14:51:17.0Z</svDate>
|
||||
<svcMenu>
|
||||
<version>1.0</version>
|
||||
<lang>en</lang>
|
||||
<objURI>urn:ietf:params:xml:ns:host-1.0</objURI>
|
||||
<objURI>urn:ietf:params:xml:ns:domain-1.0</objURI>
|
||||
<objURI>urn:ietf:params:xml:ns:contact-1.0</objURI>
|
||||
<objURI>http://schema.ispapi.net/epp/xml/keyvalue-1.0</objURI>
|
||||
<svcExtension>
|
||||
<extURI>urn:ietf:params:xml:ns:secDNS-1.1</extURI>
|
||||
<extURI>urn:ietf:params:xml:ns:secDNS-1.0</extURI>
|
||||
<extURI>urn:ietf:params:xml:ns:rgp-1.0</extURI>
|
||||
<extURI>urn:ietf:params:xml:ns:fee-0.7</extURI>
|
||||
<extURI>http://schema.ispapi.net/epp/xml/keyvalue-1.0</extURI>
|
||||
</svcExtension>
|
||||
</svcMenu>
|
||||
<dcp>
|
||||
<access>
|
||||
<all/>
|
||||
</access>
|
||||
<statement>
|
||||
<purpose>
|
||||
<admin/>
|
||||
<prov/>
|
||||
</purpose>
|
||||
<recipient>
|
||||
<ours/>
|
||||
<public/>
|
||||
</recipient>
|
||||
<retention>
|
||||
<stated/>
|
||||
</retention>
|
||||
</statement>
|
||||
</dcp>
|
||||
</greeting>
|
||||
<greeting>
|
||||
<svID>ISPAPI EPP Server</svID>
|
||||
<svDate>2021-07-25T14:51:17.0Z</svDate>
|
||||
<svcMenu>
|
||||
<version>1.0</version>
|
||||
<lang>en</lang>
|
||||
<objURI>urn:ietf:params:xml:ns:host-1.0</objURI>
|
||||
<objURI>urn:ietf:params:xml:ns:domain-1.0</objURI>
|
||||
<objURI>urn:ietf:params:xml:ns:contact-1.0</objURI>
|
||||
<objURI>http://schema.ispapi.net/epp/xml/keyvalue-1.0</objURI>
|
||||
<svcExtension>
|
||||
<extURI>urn:ietf:params:xml:ns:secDNS-1.1</extURI>
|
||||
<extURI>urn:ietf:params:xml:ns:secDNS-1.0</extURI>
|
||||
<extURI>urn:ietf:params:xml:ns:rgp-1.0</extURI>
|
||||
<extURI>urn:ietf:params:xml:ns:fee-0.7</extURI>
|
||||
<extURI>http://schema.ispapi.net/epp/xml/keyvalue-1.0</extURI>
|
||||
</svcExtension>
|
||||
</svcMenu>
|
||||
<dcp>
|
||||
<access>
|
||||
<all/>
|
||||
</access>
|
||||
<statement>
|
||||
<purpose>
|
||||
<admin/>
|
||||
<prov/>
|
||||
</purpose>
|
||||
<recipient>
|
||||
<ours/>
|
||||
<public/>
|
||||
</recipient>
|
||||
<retention>
|
||||
<stated/>
|
||||
</retention>
|
||||
</statement>
|
||||
<statement>
|
||||
<purpose>
|
||||
<other/>
|
||||
</purpose>
|
||||
<recipient>
|
||||
<unrelated/>
|
||||
</recipient>
|
||||
<retention>
|
||||
<none/>
|
||||
</retention>
|
||||
</statement>
|
||||
<expiry>
|
||||
<relative>P1M</relative>
|
||||
</expiry>
|
||||
</dcp>
|
||||
</greeting>
|
||||
</epp>
|
Loading…
Reference in New Issue