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]
|
||||
|
|
|
@ -35,6 +35,20 @@
|
|||
<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