mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-01 04:38:12 +00:00
Fix tests
This commit is contained in:
parent
e367b3a148
commit
303cbf3642
@ -172,8 +172,8 @@ async def client(base_client: AsyncClient) -> AsyncClient:
|
|||||||
@pytest_asyncio.fixture
|
@pytest_asyncio.fixture
|
||||||
async def compute_client(base_client: AsyncClient) -> AsyncClient:
|
async def compute_client(base_client: AsyncClient) -> AsyncClient:
|
||||||
|
|
||||||
# default compute username is 'admin'
|
# default compute username is 'gns3'
|
||||||
base64_credentials = base64.b64encode(b"admin:").decode("ascii")
|
base64_credentials = base64.b64encode(b"gns3:").decode("ascii")
|
||||||
base_client.headers = {
|
base_client.headers = {
|
||||||
**base_client.headers,
|
**base_client.headers,
|
||||||
"Authorization": f"Basic {base64_credentials}",
|
"Authorization": f"Basic {base64_credentials}",
|
||||||
|
Loading…
Reference in New Issue
Block a user