pytest provides session scoped fixtures, making it much easier to reuse resources across tests.
19 lines
618 B
Python
19 lines
618 B
Python
# Copyright 2026 Cloudbase Solutions Srl
|
|
# All Rights Reserved.
|
|
|
|
"""Exercise VDDK-compatible NFC authentication against the lab vCenter."""
|
|
|
|
from tests.integration.base import LabEnv
|
|
|
|
|
|
class TestNfcAuth:
|
|
def test_authd_handshake_completes(self, lab: LabEnv) -> None:
|
|
"""Complete VIM login and authd PROXY through ``200 Connect``."""
|
|
with lab.authenticate() as session:
|
|
ticket = session.ticket
|
|
assert ticket.host
|
|
assert ticket.port
|
|
assert ticket.sessionId
|
|
assert session.authd_sock.version()
|
|
assert session.authd_sock.cipher()
|