1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 08:16:07 +00:00

rfc 2606 domain (#5320)

* rfc 2606 domain

* rfc 6761 domain
This commit is contained in:
mainboarder
2023-01-14 08:00:22 +01:00
committed by GitHub
parent 8576b101a0
commit 5dde8000f4
3 changed files with 5 additions and 5 deletions

View File

@@ -2,9 +2,9 @@ import os
import urllib.parse import urllib.parse
BASE_URL = os.getenv('SEAHUB_TEST_BASE_URL', 'http://127.0.0.1:8000') BASE_URL = os.getenv('SEAHUB_TEST_BASE_URL', 'http://127.0.0.1:8000')
USERNAME = os.getenv('SEAHUB_TEST_USERNAME', 'test@seafiletest.com') USERNAME = os.getenv('SEAHUB_TEST_USERNAME', 'test@example.com')
PASSWORD = os.getenv('SEAHUB_TEST_PASSWORD', 'testtest') PASSWORD = os.getenv('SEAHUB_TEST_PASSWORD', 'testtest')
ADMIN_USERNAME = os.getenv('SEAHUB_TEST_ADMIN_USERNAME', 'admin@seafiletest.com') ADMIN_USERNAME = os.getenv('SEAHUB_TEST_ADMIN_USERNAME', 'admin@example.com')
ADMIN_PASSWORD = os.getenv('SEAHUB_TEST_ADMIN_PASSWORD', 'adminadmin') ADMIN_PASSWORD = os.getenv('SEAHUB_TEST_ADMIN_PASSWORD', 'adminadmin')
if os.getenv('SEAHUB_TEST_IS_PRO', '') == '': if os.getenv('SEAHUB_TEST_IS_PRO', '') == '':

View File

@@ -73,7 +73,7 @@ class LoginTest(BaseTestCase):
def test_redirect_to_other_host_after_success_login(self): def test_redirect_to_other_host_after_success_login(self):
from django.utils.http import urlquote from django.utils.http import urlquote
resp = self.client.post( resp = self.client.post(
reverse('auth_login') + '?next=' + urlquote('http://foo.com'), reverse('auth_login') + '?next=' + urlquote('http://example.org'),
{'login': self.user.username, {'login': self.user.username,
'password': self.user_password} 'password': self.user_password}
) )

View File

@@ -1,9 +1,9 @@
#!/bin/bash #!/bin/bash
: ${PYTHON=python3} : ${PYTHON=python3}
: ${SEAHUB_TEST_USERNAME="test@seafiletest.com"} : ${SEAHUB_TEST_USERNAME="test@example.com"}
: ${SEAHUB_TEST_PASSWORD="testtest"} : ${SEAHUB_TEST_PASSWORD="testtest"}
: ${SEAHUB_TEST_ADMIN_USERNAME="admin@seafiletest.com"} : ${SEAHUB_TEST_ADMIN_USERNAME="admin@example.com"}
: ${SEAHUB_TEST_ADMIN_PASSWORD="adminadmin"} : ${SEAHUB_TEST_ADMIN_PASSWORD="adminadmin"}
export SEAHUB_TEST_USERNAME export SEAHUB_TEST_USERNAME