Add tests for .well-known/timezone redirect

This commit is contained in:
Andrew Ruthven 2023-10-23 23:16:10 +13:00
parent cc80db89ad
commit 5984c6b251
6 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,6 @@
HTTP/1.1 301 Moved Permanently
Date: Dow, 01 Jan 2000 00:00:00 GMT
Location: http://mycaldav/tz.php
Content-Length: 0
Content-Type: text/plain; charset="utf-8"

View File

@ -0,0 +1,9 @@
#
# Do an OPTIONS request on a /.well-known URL for timezone
TYPE=OPTIONS
URL=http://regression.host/caldav.php/.well-known/timezone
HEADER=User-Agent: DataAccess/1.0 (8A293)
AUTH=user1:user1
HEAD

View File

@ -0,0 +1,6 @@
HTTP/1.1 301 Moved Permanently
Date: Dow, 01 Jan 2000 00:00:00 GMT
Location: http://mycaldav/tz.php
Content-Length: 0
Content-Type: text/plain; charset="utf-8"

View File

@ -0,0 +1,9 @@
#
# Do an OPTIONS request on a /.well-known URL for timezone
TYPE=OPTIONS
URL=http://regression.host/caldav.php/.well-known/timezone
HEADER=User-Agent: DataAccess/1.0 (8A293)
NOAUTH
HEAD

View File

@ -0,0 +1,5 @@
-- Some sample data to prime the database...
-- base-data.sql should be processed before this
INSERT INTO usr ( user_no, active, email_ok, updated, username, password, fullname, email )
VALUES( 10, TRUE, current_date, current_date, 'user1', '**user1', 'User 1', 'user1@example.net' );