Roxen.git / server / etc / test / tests / http / RoxenTest_webdav.pike

version» Context lines:

Roxen.git/server/etc/test/tests/http/RoxenTest_webdav.pike:29:    "host": base_uri->host,    "user-agent": "Roxen WebDAV Tester",    ]);    WebdavTest testsuite =    WebdavTest(webdav_mount_point, base_uri, base_headers, "testdir"+count++);    testsuite->run();    // Hack for counting number of tests.    ::current_test += testsuite->current_test;    ::tests_failed += testsuite->tests_failed;    } +  +  // Some low-level tests. +  RequestID fake_id = RequestID(0, 0, 0); +  +  fake_id->request_headers = ([ +  "if":"<path(>([W/\"etag)\"] <key(> not <no)key>)", +  ]); +  +  test_equal(([ +  "path(": ({ +  ({ +  ({ "etag", "W/\"etag)\"" }), +  ({ "key", "key(" }), +  ({ "not", 0 }), +  ({ "key", "no)key" }), +  }), +  }), +  0: ({ +  ({ +  ({ "key", "key(" }), +  }), +  }), +  ]), fake_id->get_if_data);   }         private class WebdavTest {       inherit TestBase;       private string real_dir = roxen_path(filesystem_dir);       protected void create(string webdav_mount_point,