Mark resource token tests as failing

This commit is contained in:
Ashley Stanton-Nurse 2024-09-05 11:02:38 -07:00
parent 7e95f5d8c8
commit 4facfba0c1
No known key found for this signature in database
1 changed files with 6 additions and 4 deletions

View File

@ -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");