Skip to content

Commit a3bd0b1

Browse files
committed
Fix failing tests
1 parent 385f301 commit a3bd0b1

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

src/asynch/nextcloud.rs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,8 +1286,8 @@ mod nextcloud_tests {
12861286
<d:href>/nextcloud/remote.php/dav/files/user/.rust-keylock/{}</d:href>
12871287
<d:propstat>
12881288
<d:prop>
1289-
<rkl:rklsavedat>1234567</rkl:rklsavedat>
1290-
<rkl:rklversion>1</rkl:rklversion>
1289+
<x1:rklsavedat xmlns:x1="http://rust-keylock.github.io">1234567</x1:rklsavedat>
1290+
<x1:rklversion xmlns:x1="http://rust-keylock.github.io">1</x1:rklversion>
12911291
</d:prop>
12921292
<d:status>HTTP/1.1 200 OK</d:status>
12931293
</d:propstat>
@@ -1437,13 +1437,16 @@ mod nextcloud_tests {
14371437
if req.method() == &hyper::Method::from_bytes("PROPFIND".as_ref()).unwrap() {
14381438
let _ = tx_assert.send(true);
14391439
let xml = r#"<?xml version="1.0"?>
1440-
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/" xmlns:card="urn:ietf:params:xml:ns:carddav" xmlns:rkl="http://rust-keylock.github.io" xmlns:nc="http://nextcloud.org/ns">
1440+
<d:multistatus xmlns:d="DAV:" xmlns:d="DAV:"
1441+
xmlns:s="http://sabredav.org/ns"
1442+
xmlns:oc="http://owncloud.org/ns"
1443+
xmlns:nc="http://nextcloud.org/ns">
14411444
<d:response>
14421445
<d:href>/nextcloud/remote.php/dav/files/user/.rust-keylock/download_a_file_from_the_server</d:href>
14431446
<d:propstat>
14441447
<d:prop>
1445-
<rkl:rklsavedat>4667760000</rkl:rklsavedat>
1446-
<rkl:rklversion>1</rkl:rklversion>
1448+
<x1:rklsavedat xmlns:x1="http://rust-keylock.github.io">4667760000</x1:rklsavedat>
1449+
<x1:rklversion xmlns:x1="http://rust-keylock.github.io">1000000</x1:rklversion>
14471450
</d:prop>
14481451
<d:status>HTTP/1.1 200 OK</d:status>
14491452
</d:propstat>
@@ -1558,8 +1561,8 @@ mod nextcloud_tests {
15581561
<d:href>/nextcloud/remote.php/dav/files/user/.rust-keylock/http_error_response_on_get</d:href>
15591562
<d:propstat>
15601563
<d:prop>
1561-
<rkl:rklsavedat>4667760000</rkl:rklsavedat>
1562-
<rkl:rklversion>1</rkl:rklversion>
1564+
<x1:rklsavedat xmlns:x1="http://rust-keylock.github.io">4667760000</x1:rklsavedat>
1565+
<x1:rklversion xmlns:x1="http://rust-keylock.github.io">1</x1:rklversion>
15631566
</d:prop>
15641567
<d:status>HTTP/1.1 200 OK</d:status>
15651568
</d:propstat>

0 commit comments

Comments
 (0)