mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-11-27 16:07:01 +00:00
Mark resource token tests as failing
This commit is contained in:
parent
7e95f5d8c8
commit
4facfba0c1
@ -12,7 +12,11 @@ import {
|
|||||||
subscriptionId,
|
subscriptionId,
|
||||||
} from "../fx";
|
} from "../fx";
|
||||||
|
|
||||||
test("SQL account using Resource token", async ({ page }) => {
|
// This test is currently failing because of issues with resource token auth in the backend.
|
||||||
|
// Marking it as 'fail' means that it will still be run, but Playwright's reporting will be inverted (failing tests will be marked as passing and vice versa).
|
||||||
|
// This allows us to detect when it starts working again, as the test will fail again.
|
||||||
|
// At that point, we can remove the 'fail' marker and continue running the test as normal.
|
||||||
|
test.fail("SQL account using Resource token", async ({ page }) => {
|
||||||
const credentials = await getAzureCLICredentials();
|
const credentials = await getAzureCLICredentials();
|
||||||
const armClient = new CosmosDBManagementClient(credentials, subscriptionId);
|
const armClient = new CosmosDBManagementClient(credentials, subscriptionId);
|
||||||
const accountName = getAccountName(TestAccount.SQL);
|
const accountName = getAccountName(TestAccount.SQL);
|
||||||
@ -34,9 +38,7 @@ test("SQL account using Resource token", async ({ page }) => {
|
|||||||
});
|
});
|
||||||
await expect(containerPermission).toBeDefined();
|
await expect(containerPermission).toBeDefined();
|
||||||
|
|
||||||
const resourceTokenConnectionString = `AccountEndpoint=${account.documentEndpoint};DatabaseId=${
|
const resourceTokenConnectionString = `AccountEndpoint=${account.documentEndpoint};DatabaseId=${database.id};CollectionId=${container.id};${containerPermission!._token}`;
|
||||||
database.id
|
|
||||||
};CollectionId=${container.id};${containerPermission!._token}`;
|
|
||||||
|
|
||||||
await page.goto("https://localhost:1234/hostedExplorer.html");
|
await page.goto("https://localhost:1234/hostedExplorer.html");
|
||||||
const switchConnectionLink = page.getByTestId("Link:SwitchConnectionType");
|
const switchConnectionLink = page.getByTestId("Link:SwitchConnectionType");
|
||||||
|
Loading…
Reference in New Issue
Block a user