Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add test case for user cert #638

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 25 additions & 6 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
TEST_UID: str = '123456789'
TEST_CLOUD_SERVER: str = 'cn'

DOMAIN_OAUTH2: str = 'oauth2_info'
DOMAIN_USER_INFO: str = 'user_info'
DOMAIN_CLOUD_CACHE: str = 'cloud_cache'

_LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -139,8 +138,18 @@ def test_cloud_server() -> str:


@pytest.fixture(scope='session')
def test_domain_oauth2() -> str:
return DOMAIN_OAUTH2
def test_domain_cloud_cache() -> str:
return DOMAIN_CLOUD_CACHE


@pytest.fixture(scope='session')
def test_name_oauth2_info() -> str:
return f'{TEST_CLOUD_SERVER}_oauth2_info'


@pytest.fixture(scope='session')
def test_name_uid() -> str:
return f'{TEST_CLOUD_SERVER}_uid'


@pytest.fixture(scope='session')
Expand All @@ -149,5 +158,15 @@ def test_name_uuid() -> str:


@pytest.fixture(scope='session')
def test_domain_user_info() -> str:
return DOMAIN_USER_INFO
def test_name_rd_did() -> str:
return f'{TEST_CLOUD_SERVER}_rd_did'


@pytest.fixture(scope='session')
def test_name_homes() -> str:
return f'{TEST_CLOUD_SERVER}_homes'


@pytest.fixture(scope='session')
def test_name_devices() -> str:
return f'{TEST_CLOUD_SERVER}_devices'
Loading
Loading