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:
Andrew McMillan 2006-11-04 15:05:28 +13:00
parent f9a40b8207
commit dab9de848e
8 changed files with 141 additions and 7 deletions

View File

@ -2,13 +2,15 @@
#
# Run the regression tests and display differences
#
DBNAME=caldav
# Restart PGPool to ensure we can drop and recreate the database
# FIXME: We should really drop everything *from* the database and create it
# from that, so we don't need to do this.
sudo /etc/init.d/pgpool restart
dropdb caldav
../dba/create-database.sh caldav
dropdb ${DBNAME}
../dba/create-database.sh ${DBNAME}
psql -q -f "../dba/sample-data.sql" "${DBNAME}"
for T in tests/regression-suite/*.test ; do
TEST="`basename ${T} .test`"

View 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

View File

@ -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>

View 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

View File

@ -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>

View File

@ -1,8 +1,8 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
Server: Apache/2.2.3 (Debian) DAV/2
ETag: "91cfe32724dec9ab3467d9f9aa4b4a66"
Content-Length: 341
ETag: "999029ee508d00d69a8251bc727d6e52"
Content-Length: 600
Content-Type: text/xml;charset=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>
</propstat>
</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>

View File

@ -3,7 +3,7 @@ HTTP/1.1 100 Continue
HTTP/1.1 201 Created
Date: Dow, 01 Jan 2000 00:00:00 GMT
Server: Apache/2.2.3 (Debian) DAV/2
ETag: "BogusEvolutionETagOnPUT256420453"
ETag: "c3658901fd4689d4a1e1d6f08601ef4f"
Content-length: 0
Content-Type: text/html; charset=UTF-8

View File

@ -1,8 +1,8 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
Server: Apache/2.2.3 (Debian) DAV/2
ETag: "885993094fd55aca669806d0ca75fa14"
Content-Length: 582
ETag: "aec354a7e336855131053ef08ca190b8"
Content-Length: 841
Content-Type: text/xml;charset=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>
</propstat>
</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>
<href>http://mycaldav/caldav.php/user1/home/20061101T073004Z.ics</href>
<propstat>