1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-05-14 02:45:44 +00:00

rfc 2606 domain ()

* 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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions
tests

View File

@ -2,9 +2,9 @@ import os
import urllib.parse
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')
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')
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):
from django.utils.http import urlquote
resp = self.client.post(
reverse('auth_login') + '?next=' + urlquote('http://foo.com'),
reverse('auth_login') + '?next=' + urlquote('http://example.org'),
{'login': self.user.username,
'password': self.user_password}
)

View File

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