Store dead element's namespaces (#1545)

This commit is contained in:
mdecimus
2025-05-25 13:04:19 +02:00
parent 1b1f85a156
commit 85bc434fbf
15 changed files with 198 additions and 86 deletions

View File

@@ -32,7 +32,7 @@ pub async fn test(test: &WebDavTest) {
.with_status(StatusCode::CREATED);
let lock_token = response
.with_value(
"D:prop.D:lockdiscovery.D:activelock.D:owner.D:href",
"D:prop.D:lockdiscovery.D:activelock.D:owner.href",
"super-owner",
)
.with_value("D:prop.D:lockdiscovery.D:activelock.D:depth", "infinity")
@@ -55,7 +55,7 @@ pub async fn test(test: &WebDavTest) {
.await
.with_status(StatusCode::OK)
.with_value(
"D:prop.D:lockdiscovery.D:activelock.D:owner.D:href",
"D:prop.D:lockdiscovery.D:activelock.D:owner.href",
"super-owner",
)
.with_any_value(
@@ -117,7 +117,7 @@ pub async fn test(test: &WebDavTest) {
props
.get(DavProperty::WebDav(WebDavProperty::LockDiscovery))
.with_some_values([
"D:activelock.D:owner.D:href:super-owner",
"D:activelock.D:owner.href:super-owner",
"D:activelock.D:depth:infinity",
format!("D:activelock.D:locktoken.D:href:{lock_token}").as_str(),
format!("D:activelock.D:lockroot.D:href:{path}").as_str(),

View File

@@ -501,8 +501,8 @@ pub async fn test(test: &WebDavTest) {
),
(
DavProperty::DeadProperty(DeadElementTag::new(
"C:my-dead-element".to_string(),
None,
"my-dead-element".to_string(),
Some("xmlns=\"http://example.com/ns/\"".to_string()),
)),
"this is a dead but exciting element",
),
@@ -514,8 +514,8 @@ pub async fn test(test: &WebDavTest) {
let mut props = vec![
(
DavProperty::DeadProperty(DeadElementTag::new(
"C:my-dead-element".to_string(),
None,
"my-dead-element".to_string(),
Some("xmlns=\"http://example.com/ns/\"".to_string()),
)),
"",
),
@@ -604,8 +604,8 @@ pub async fn test(test: &WebDavTest) {
let mut chunky_props = vec![
DavProperty::WebDav(WebDavProperty::DisplayName),
DavProperty::DeadProperty(DeadElementTag::new(
"C:my-chunky-dead-element".to_string(),
None,
"my-chunky-dead-element".to_string(),
Some("xmlns=\"http://example.com/ns/\"".to_string()),
)),
];
if !is_file {