Branch: Tag:

2018-02-22

2018-02-22 14:05:43 by Karl Gustav Sterneberg <kg@roxen.com>

Adding support for copy and move between different mount points. [WS-168]

(Is to be used by RoxenTest_rep_webdav.pike in Print repo.)

1:   inherit "etc/test/tests/http/WebdavTestBase.pike";    - string filesystem_dir = "$VARDIR/testsuite/webdav/testdir"; + private string testdir = "/testdir/"; + private string filesystem_dir = "$VARDIR/testsuite/webdav";   // Expanded filesystem_dir. - string real_dir; + private string real_dir;    -  + string get_testdir() { +  return testdir; + } +    int filesystem_check_exists(string path)   {    string real_path = Stdio.append_path(real_dir, path);
18:      void setup()   { +  webdav_mount_point = "webdav/"; +  basic_auth = "test:test";    real_dir = roxen_path(filesystem_dir); -  +     report_debug("Webdav real_dir: %O\n", real_dir); -  +     Stdio.mkdirhier(real_dir);   }