mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-30 03:24:47 +00:00
Need to load the sample data in the regression test now that it isn't always
there. And here are a bunch of updated regression results.
This commit is contained in:
parent
f9a40b8207
commit
dab9de848e
@ -2,13 +2,15 @@
|
|||||||
#
|
#
|
||||||
# Run the regression tests and display differences
|
# Run the regression tests and display differences
|
||||||
#
|
#
|
||||||
|
DBNAME=caldav
|
||||||
|
|
||||||
# Restart PGPool to ensure we can drop and recreate the database
|
# Restart PGPool to ensure we can drop and recreate the database
|
||||||
# FIXME: We should really drop everything *from* the database and create it
|
# FIXME: We should really drop everything *from* the database and create it
|
||||||
# from that, so we don't need to do this.
|
# from that, so we don't need to do this.
|
||||||
sudo /etc/init.d/pgpool restart
|
sudo /etc/init.d/pgpool restart
|
||||||
dropdb caldav
|
dropdb ${DBNAME}
|
||||||
../dba/create-database.sh caldav
|
../dba/create-database.sh ${DBNAME}
|
||||||
|
psql -q -f "../dba/sample-data.sql" "${DBNAME}"
|
||||||
|
|
||||||
for T in tests/regression-suite/*.test ; do
|
for T in tests/regression-suite/*.test ; do
|
||||||
TEST="`basename ${T} .test`"
|
TEST="`basename ${T} .test`"
|
||||||
|
|||||||
7
testing/tests/regression-suite/012-Mulberry-PUT-2.result
Normal file
7
testing/tests/regression-suite/012-Mulberry-PUT-2.result
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
HTTP/1.1 201 Created
|
||||||
|
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||||
|
Server: Apache/2.2.3 (Debian) DAV/2
|
||||||
|
ETag: "22158fc45876987b2b00749a3a1684d8"
|
||||||
|
Content-length: 0
|
||||||
|
Content-Type: text/html; charset=UTF-8
|
||||||
|
|
||||||
@ -0,0 +1,50 @@
|
|||||||
|
HTTP/1.1 207 Multi-Status
|
||||||
|
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||||
|
Server: Apache/2.2.3 (Debian) DAV/2
|
||||||
|
ETag: "38ba0832b5ab1fd7147b102ceba0becc"
|
||||||
|
Content-Length: 1199
|
||||||
|
Content-Type: text/xml;charset=UTF-8
|
||||||
|
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<multistatus xmlns="DAV:">
|
||||||
|
<response>
|
||||||
|
<href>/caldav.php/user1/home/</href>
|
||||||
|
<propstat>
|
||||||
|
<prop>
|
||||||
|
<getcontentlength>1425</getcontentlength>
|
||||||
|
<getcontenttype>httpd/unix-directory</getcontenttype>
|
||||||
|
<resourcetype>
|
||||||
|
<collection/>
|
||||||
|
<calendar xmlns="urn:ietf:params:xml:ns:caldav"/>
|
||||||
|
</resourcetype>
|
||||||
|
</prop>
|
||||||
|
<status>HTTP/1.1 200 OK</status>
|
||||||
|
</propstat>
|
||||||
|
</response>
|
||||||
|
<response>
|
||||||
|
<href>/caldav.php/user1/home/3F4CF6227300FD062D9EF3CDFB30D32D-0.ics</href>
|
||||||
|
<propstat>
|
||||||
|
<prop>
|
||||||
|
<getcontentlength>705</getcontentlength>
|
||||||
|
<getcontenttype>text/calendar</getcontenttype>
|
||||||
|
<resourcetype>
|
||||||
|
<calendar xmlns="urn:ietf:params:xml:ns:caldav"/>
|
||||||
|
</resourcetype>
|
||||||
|
</prop>
|
||||||
|
<status>HTTP/1.1 200 OK</status>
|
||||||
|
</propstat>
|
||||||
|
</response>
|
||||||
|
<response>
|
||||||
|
<href>/caldav.php/user1/home/F56B49B10FC923D20FE2DC92D6580340-0.ics</href>
|
||||||
|
<propstat>
|
||||||
|
<prop>
|
||||||
|
<getcontentlength>720</getcontentlength>
|
||||||
|
<getcontenttype>text/calendar</getcontenttype>
|
||||||
|
<resourcetype>
|
||||||
|
<calendar xmlns="urn:ietf:params:xml:ns:caldav"/>
|
||||||
|
</resourcetype>
|
||||||
|
</prop>
|
||||||
|
<status>HTTP/1.1 200 OK</status>
|
||||||
|
</propstat>
|
||||||
|
</response>
|
||||||
|
</multistatus>
|
||||||
7
testing/tests/regression-suite/014-Mulberry-PUT-3.result
Normal file
7
testing/tests/regression-suite/014-Mulberry-PUT-3.result
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
HTTP/1.1 201 Replaced
|
||||||
|
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||||
|
Server: Apache/2.2.3 (Debian) DAV/2
|
||||||
|
ETag: "2c32a2f8aba853654eb17fe037a4db4d"
|
||||||
|
Content-length: 0
|
||||||
|
Content-Type: text/html; charset=UTF-8
|
||||||
|
|
||||||
@ -0,0 +1,50 @@
|
|||||||
|
HTTP/1.1 207 Multi-Status
|
||||||
|
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||||
|
Server: Apache/2.2.3 (Debian) DAV/2
|
||||||
|
ETag: "38ba0832b5ab1fd7147b102ceba0becc"
|
||||||
|
Content-Length: 1199
|
||||||
|
Content-Type: text/xml;charset=UTF-8
|
||||||
|
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<multistatus xmlns="DAV:">
|
||||||
|
<response>
|
||||||
|
<href>/caldav.php/user1/home/</href>
|
||||||
|
<propstat>
|
||||||
|
<prop>
|
||||||
|
<getcontentlength>1425</getcontentlength>
|
||||||
|
<getcontenttype>httpd/unix-directory</getcontenttype>
|
||||||
|
<resourcetype>
|
||||||
|
<collection/>
|
||||||
|
<calendar xmlns="urn:ietf:params:xml:ns:caldav"/>
|
||||||
|
</resourcetype>
|
||||||
|
</prop>
|
||||||
|
<status>HTTP/1.1 200 OK</status>
|
||||||
|
</propstat>
|
||||||
|
</response>
|
||||||
|
<response>
|
||||||
|
<href>/caldav.php/user1/home/3F4CF6227300FD062D9EF3CDFB30D32D-0.ics</href>
|
||||||
|
<propstat>
|
||||||
|
<prop>
|
||||||
|
<getcontentlength>705</getcontentlength>
|
||||||
|
<getcontenttype>text/calendar</getcontenttype>
|
||||||
|
<resourcetype>
|
||||||
|
<calendar xmlns="urn:ietf:params:xml:ns:caldav"/>
|
||||||
|
</resourcetype>
|
||||||
|
</prop>
|
||||||
|
<status>HTTP/1.1 200 OK</status>
|
||||||
|
</propstat>
|
||||||
|
</response>
|
||||||
|
<response>
|
||||||
|
<href>/caldav.php/user1/home/F56B49B10FC923D20FE2DC92D6580340-0.ics</href>
|
||||||
|
<propstat>
|
||||||
|
<prop>
|
||||||
|
<getcontentlength>720</getcontentlength>
|
||||||
|
<getcontenttype>text/calendar</getcontenttype>
|
||||||
|
<resourcetype>
|
||||||
|
<calendar xmlns="urn:ietf:params:xml:ns:caldav"/>
|
||||||
|
</resourcetype>
|
||||||
|
</prop>
|
||||||
|
<status>HTTP/1.1 200 OK</status>
|
||||||
|
</propstat>
|
||||||
|
</response>
|
||||||
|
</multistatus>
|
||||||
@ -1,8 +1,8 @@
|
|||||||
HTTP/1.1 207 Multi-Status
|
HTTP/1.1 207 Multi-Status
|
||||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||||
Server: Apache/2.2.3 (Debian) DAV/2
|
Server: Apache/2.2.3 (Debian) DAV/2
|
||||||
ETag: "91cfe32724dec9ab3467d9f9aa4b4a66"
|
ETag: "999029ee508d00d69a8251bc727d6e52"
|
||||||
Content-Length: 341
|
Content-Length: 600
|
||||||
Content-Type: text/xml;charset=UTF-8
|
Content-Type: text/xml;charset=UTF-8
|
||||||
|
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
@ -16,4 +16,13 @@ Content-Type: text/xml;charset=UTF-8
|
|||||||
<status>HTTP/1.1 200 OK</status>
|
<status>HTTP/1.1 200 OK</status>
|
||||||
</propstat>
|
</propstat>
|
||||||
</response>
|
</response>
|
||||||
|
<response>
|
||||||
|
<href>http://mycaldav/caldav.php/user1/home/3F4CF6227300FD062D9EF3CDFB30D32D-0.ics</href>
|
||||||
|
<propstat>
|
||||||
|
<prop>
|
||||||
|
<getetag>"2c32a2f8aba853654eb17fe037a4db4d"</getetag>
|
||||||
|
</prop>
|
||||||
|
<status>HTTP/1.1 200 OK</status>
|
||||||
|
</propstat>
|
||||||
|
</response>
|
||||||
</multistatus>
|
</multistatus>
|
||||||
|
|||||||
@ -3,7 +3,7 @@ HTTP/1.1 100 Continue
|
|||||||
HTTP/1.1 201 Created
|
HTTP/1.1 201 Created
|
||||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||||
Server: Apache/2.2.3 (Debian) DAV/2
|
Server: Apache/2.2.3 (Debian) DAV/2
|
||||||
ETag: "BogusEvolutionETagOnPUT256420453"
|
ETag: "c3658901fd4689d4a1e1d6f08601ef4f"
|
||||||
Content-length: 0
|
Content-length: 0
|
||||||
Content-Type: text/html; charset=UTF-8
|
Content-Type: text/html; charset=UTF-8
|
||||||
|
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
HTTP/1.1 207 Multi-Status
|
HTTP/1.1 207 Multi-Status
|
||||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||||
Server: Apache/2.2.3 (Debian) DAV/2
|
Server: Apache/2.2.3 (Debian) DAV/2
|
||||||
ETag: "885993094fd55aca669806d0ca75fa14"
|
ETag: "aec354a7e336855131053ef08ca190b8"
|
||||||
Content-Length: 582
|
Content-Length: 841
|
||||||
Content-Type: text/xml;charset=UTF-8
|
Content-Type: text/xml;charset=UTF-8
|
||||||
|
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
@ -16,6 +16,15 @@ Content-Type: text/xml;charset=UTF-8
|
|||||||
<status>HTTP/1.1 200 OK</status>
|
<status>HTTP/1.1 200 OK</status>
|
||||||
</propstat>
|
</propstat>
|
||||||
</response>
|
</response>
|
||||||
|
<response>
|
||||||
|
<href>http://mycaldav/caldav.php/user1/home/3F4CF6227300FD062D9EF3CDFB30D32D-0.ics</href>
|
||||||
|
<propstat>
|
||||||
|
<prop>
|
||||||
|
<getetag>"2c32a2f8aba853654eb17fe037a4db4d"</getetag>
|
||||||
|
</prop>
|
||||||
|
<status>HTTP/1.1 200 OK</status>
|
||||||
|
</propstat>
|
||||||
|
</response>
|
||||||
<response>
|
<response>
|
||||||
<href>http://mycaldav/caldav.php/user1/home/20061101T073004Z.ics</href>
|
<href>http://mycaldav/caldav.php/user1/home/20061101T073004Z.ics</href>
|
||||||
<propstat>
|
<propstat>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user