Skip to content

Commit

Permalink
replace test domain by example.com (rfc2606), correct manual link, sm…
Browse files Browse the repository at this point in the history
…all grammar mistakes
  • Loading branch information
mainboarder authored and imwhatiam committed Mar 20, 2023
1 parent 41f6979 commit 4bee6cd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@

This is the WebDAV server for seafile.

See [Seafile Server Manual](http://manual.seafile.com/extension/webdav.html) for details.
See [Seafile Server Manual](http://manual.seafile.com/extension/webdav/) for details.

# Running

There are a template for running seafdav:
- run.sh.template: This is for running seafdav on the default 8080 port with a built-in CherryPy server.
There is a template for running seafdav:
- run.sh.template: This is for running seafdav on the default port 8080 with a built-in CherryPy server.

To run on 8080 port:
To run on port 8080:

```
cp run.sh.template run.sh
```

Then change CCNET_CONF_DIR and SEAFILE_CONF_DIR to your Seafile server's settings.
Then change CCNET_CONF_DIR and SEAFILE_CONF_DIR to your Seafile server settings.

# Testing

- start local seafile server
- start local seahub server (While seafdav itself doesn't require seahub, we use seahub webapi as a driver for testing)
- start local seahub server (while seafdav itself doesn't require seahub, we use seahub webapi as a driver for testing)
- start seafdav server
- create a test user `test@seafiletest.com` with password `test`
- create a test user `test@example.com` with password `test`
- Run the tests
```
export CCNET_CONF_DIR=/path/to/ccnet
Expand Down
2 changes: 1 addition & 1 deletion ci/functests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ EOF
/tmp/seafile-server/tests/conf/seafile-data
EOF
start_server
python -c "from seaserv import ccnet_api as api;api.add_emailuser('test@seafiletest.com','test',0,1)"
python -c "from seaserv import ccnet_api as api;api.add_emailuser('test@example.com','test',0,1)"
}

function start_seafdav() {
Expand Down
2 changes: 1 addition & 1 deletion seafdav_tests/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import posixpath
from seaserv import seafile_api

USER = os.environ.get('SEAFILE_TEST_USERNAME', 'test@seafiletest.com')
USER = os.environ.get('SEAFILE_TEST_USERNAME', 'test@example.com')
PASSWORD = os.environ.get('SEAFILE_TEST_PASSWORD', 'test')

def get_webapi_client():
Expand Down

0 comments on commit 4bee6cd

Please sign in to comment.