mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-06-11 05:20:17 +00:00
Some regression testing for MOVE action.
This commit is contained in:
parent
e957d07927
commit
c67bfeb7ad
16
testing/tests/regression-suite/924-MOVE.result
Normal file
16
testing/tests/regression-suite/924-MOVE.result
Normal file
@ -0,0 +1,16 @@
|
||||
HTTP/1.1 200 OK
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol
|
||||
Allow: OPTIONS, PROPFIND, REPORT, DELETE, LOCK, UNLOCK, MOVE, GET, HEAD, PUT
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
cd_collection: >2695<
|
||||
cd_user_no: >10<
|
||||
ci_collection: >2695<
|
||||
ci_user_no: >10<
|
||||
data_name: >/user1/entire/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics<
|
||||
item_name: >/user1/entire/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics<
|
||||
modified: >2009-11-08 20:28:50.893924+13<
|
||||
|
||||
19
testing/tests/regression-suite/924-MOVE.test
Normal file
19
testing/tests/regression-suite/924-MOVE.test
Normal file
@ -0,0 +1,19 @@
|
||||
#
|
||||
# MOVE an event from one location to another
|
||||
#
|
||||
TYPE=MOVE
|
||||
URL=http://regression.host/caldav.php/user1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics
|
||||
HEADER=User-Agent: RFC4918 Spec Tests
|
||||
HEADER=Destination: http://regression.host/caldav.php/user1/entire/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics
|
||||
HEAD
|
||||
|
||||
QUERY
|
||||
SELECT caldav_data.dav_name AS data_name, calendar_item.dav_name AS item_name, modified,
|
||||
caldav_data.user_no AS cd_user_no,
|
||||
calendar_item.user_no AS ci_user_no,
|
||||
caldav_data.collection_id AS cd_collection,
|
||||
calendar_item.collection_id AS ci_collection
|
||||
FROM caldav_data JOIN calendar_item USING(dav_id)
|
||||
WHERE caldav_data.dav_name ~ 'DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics';
|
||||
ENDQUERY
|
||||
|
||||
16
testing/tests/regression-suite/925-MOVE.result
Normal file
16
testing/tests/regression-suite/925-MOVE.result
Normal file
@ -0,0 +1,16 @@
|
||||
HTTP/1.1 200 OK
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol
|
||||
Allow: OPTIONS, PROPFIND, REPORT, DELETE, LOCK, UNLOCK, MOVE, GET, HEAD, PUT
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
cd_collection: >10<
|
||||
cd_user_no: >10<
|
||||
ci_collection: >10<
|
||||
ci_user_no: >10<
|
||||
data_name: >/user1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics<
|
||||
item_name: >/user1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics<
|
||||
modified: >2009-11-08 20:28:50.893924+13<
|
||||
|
||||
19
testing/tests/regression-suite/925-MOVE.test
Normal file
19
testing/tests/regression-suite/925-MOVE.test
Normal file
@ -0,0 +1,19 @@
|
||||
#
|
||||
# MOVE an event from one location to another
|
||||
#
|
||||
TYPE=MOVE
|
||||
URL=http://regression.host/caldav.php/user1/entire/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics
|
||||
HEADER=User-Agent: RFC4918 Spec Tests
|
||||
HEADER=Destination: /caldav.php/user1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics
|
||||
HEAD
|
||||
|
||||
QUERY
|
||||
SELECT caldav_data.dav_name AS data_name, calendar_item.dav_name AS item_name, modified,
|
||||
caldav_data.user_no AS cd_user_no,
|
||||
calendar_item.user_no AS ci_user_no,
|
||||
caldav_data.collection_id AS cd_collection,
|
||||
calendar_item.collection_id AS ci_collection
|
||||
FROM caldav_data JOIN calendar_item USING(dav_id)
|
||||
WHERE caldav_data.dav_name ~ 'DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics';
|
||||
ENDQUERY
|
||||
|
||||
16
testing/tests/regression-suite/926-MOVE.result
Normal file
16
testing/tests/regression-suite/926-MOVE.result
Normal file
@ -0,0 +1,16 @@
|
||||
HTTP/1.1 200 OK
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol
|
||||
Allow: OPTIONS, PROPFIND, REPORT, DELETE, LOCK, UNLOCK, MOVE, GET, HEAD, PUT
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
cd_collection: >100<
|
||||
cd_user_no: >100<
|
||||
ci_collection: >100<
|
||||
ci_user_no: >100<
|
||||
data_name: >/resource1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics<
|
||||
item_name: >/resource1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics<
|
||||
modified: >2009-11-08 20:28:50.893924+13<
|
||||
|
||||
21
testing/tests/regression-suite/926-MOVE.test
Normal file
21
testing/tests/regression-suite/926-MOVE.test
Normal file
@ -0,0 +1,21 @@
|
||||
#
|
||||
# MOVE an event from one location to another
|
||||
#
|
||||
TYPE=MOVE
|
||||
URL=http://regression.host/caldav.php/user1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics
|
||||
HEADER=User-Agent: RFC4918 Spec Tests
|
||||
HEADER=Destination: /caldav.php/resource1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics
|
||||
HEAD
|
||||
|
||||
QUERY
|
||||
SELECT caldav_data.dav_name AS data_name,
|
||||
calendar_item.dav_name AS item_name,
|
||||
modified,
|
||||
caldav_data.user_no AS cd_user_no,
|
||||
calendar_item.user_no AS ci_user_no,
|
||||
caldav_data.collection_id AS cd_collection,
|
||||
calendar_item.collection_id AS ci_collection
|
||||
FROM caldav_data JOIN calendar_item USING(dav_id)
|
||||
WHERE caldav_data.dav_name ~ 'DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics';
|
||||
ENDQUERY
|
||||
|
||||
16
testing/tests/regression-suite/927-MOVE.result
Normal file
16
testing/tests/regression-suite/927-MOVE.result
Normal file
@ -0,0 +1,16 @@
|
||||
HTTP/1.1 200 OK
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol
|
||||
Allow: OPTIONS, PROPFIND, REPORT, DELETE, LOCK, UNLOCK, MOVE, GET, HEAD, PUT
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
cd_collection: >10<
|
||||
cd_user_no: >10<
|
||||
ci_collection: >10<
|
||||
ci_user_no: >10<
|
||||
data_name: >/user1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics<
|
||||
item_name: >/user1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics<
|
||||
modified: >2009-11-08 20:28:50.893924+13<
|
||||
|
||||
21
testing/tests/regression-suite/927-MOVE.test
Normal file
21
testing/tests/regression-suite/927-MOVE.test
Normal file
@ -0,0 +1,21 @@
|
||||
#
|
||||
# MOVE an event from one location to another
|
||||
#
|
||||
TYPE=MOVE
|
||||
URL=http://regression.host/caldav.php/resource1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics
|
||||
HEADER=User-Agent: RFC4918 Spec Tests
|
||||
HEADER=Destination: /caldav.php/user1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics
|
||||
HEAD
|
||||
|
||||
QUERY
|
||||
SELECT caldav_data.dav_name AS data_name,
|
||||
calendar_item.dav_name AS item_name,
|
||||
modified,
|
||||
caldav_data.user_no AS cd_user_no,
|
||||
calendar_item.user_no AS ci_user_no,
|
||||
caldav_data.collection_id AS cd_collection,
|
||||
calendar_item.collection_id AS ci_collection
|
||||
FROM caldav_data JOIN calendar_item USING(dav_id)
|
||||
WHERE caldav_data.dav_name ~ 'DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics';
|
||||
ENDQUERY
|
||||
|
||||
13
testing/tests/regression-suite/928-MOVE.result
Normal file
13
testing/tests/regression-suite/928-MOVE.result
Normal file
@ -0,0 +1,13 @@
|
||||
HTTP/1.1 200 OK
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol
|
||||
Allow: OPTIONS, PROPFIND, REPORT, DELETE, LOCK, UNLOCK, MOVE, GET, PUT, HEAD
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
dav_etag: >3cd2d347bfe806857ef14bce9eafd599<
|
||||
dav_name: >/user1/movedcalendar/<
|
||||
modified: >2009-11-08 20:29:06.230085+13<
|
||||
user_no: >10<
|
||||
|
||||
18
testing/tests/regression-suite/928-MOVE.test
Normal file
18
testing/tests/regression-suite/928-MOVE.test
Normal file
@ -0,0 +1,18 @@
|
||||
#
|
||||
# MOVE an event from one location to another
|
||||
#
|
||||
TYPE=MOVE
|
||||
URL=http://regression.host/caldav.php/user1/entire/
|
||||
HEADER=User-Agent: RFC4918 Spec Tests
|
||||
HEADER=Destination: /caldav.php/user1/movedcalendar/
|
||||
HEAD
|
||||
|
||||
QUERY
|
||||
SELECT dav_name,
|
||||
user_no,
|
||||
modified,
|
||||
dav_etag
|
||||
FROM collection
|
||||
WHERE collection.dav_name ~ '(entire|movedcalendar)';
|
||||
ENDQUERY
|
||||
|
||||
13
testing/tests/regression-suite/929-MOVE.result
Normal file
13
testing/tests/regression-suite/929-MOVE.result
Normal file
@ -0,0 +1,13 @@
|
||||
HTTP/1.1 200 OK
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol
|
||||
Allow: OPTIONS, PROPFIND, REPORT, DELETE, LOCK, UNLOCK, MOVE, GET, PUT, HEAD
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
dav_etag: >3cd2d347bfe806857ef14bce9eafd599<
|
||||
dav_name: >/user1/entire/<
|
||||
modified: >2009-11-08 20:29:06.230085+13<
|
||||
user_no: >10<
|
||||
|
||||
18
testing/tests/regression-suite/929-MOVE.test
Normal file
18
testing/tests/regression-suite/929-MOVE.test
Normal file
@ -0,0 +1,18 @@
|
||||
#
|
||||
# MOVE an event from one location to another
|
||||
#
|
||||
TYPE=MOVE
|
||||
URL=http://regression.host/caldav.php/user1/movedcalendar/
|
||||
HEADER=User-Agent: RFC4918 Spec Tests
|
||||
HEADER=Destination: /caldav.php/user1/entire/
|
||||
HEAD
|
||||
|
||||
QUERY
|
||||
SELECT dav_name,
|
||||
user_no,
|
||||
modified,
|
||||
dav_etag
|
||||
FROM collection
|
||||
WHERE collection.dav_name ~ '(entire|movedcalendar)';
|
||||
ENDQUERY
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user