mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-07-21 04:47:17 +01:00
Fix rbac token detection for table and resource token tests.
This commit is contained in:
@@ -11,10 +11,9 @@ import {
|
|||||||
resourceGroupName,
|
resourceGroupName,
|
||||||
subscriptionId,
|
subscriptionId,
|
||||||
} from "../fx";
|
} from "../fx";
|
||||||
import { getNoSqlRbacToken } from "../NoSqlTestSetup";
|
|
||||||
|
|
||||||
test("SQL account using Resource token", async ({ page }) => {
|
test("SQL account using Resource token", async ({ page }) => {
|
||||||
const nosqlAccountRbacToken = getNoSqlRbacToken() ?? "";
|
const nosqlAccountRbacToken = process.env.NOSQL_TESTACCOUNT_TOKEN ?? "";
|
||||||
test.skip(nosqlAccountRbacToken.length > 0, "Resource tokens not supported when using data plane RBAC.");
|
test.skip(nosqlAccountRbacToken.length > 0, "Resource tokens not supported when using data plane RBAC.");
|
||||||
|
|
||||||
const credentials = getAzureCLICredentials();
|
const credentials = getAzureCLICredentials();
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ const initTestExplorer = async (): Promise<void> => {
|
|||||||
case "gremlin":
|
case "gremlin":
|
||||||
rbacToken = gremlinRbacToken;
|
rbacToken = gremlinRbacToken;
|
||||||
break;
|
break;
|
||||||
case "tables":
|
case "table":
|
||||||
rbacToken = tableRbacToken;
|
rbacToken = tableRbacToken;
|
||||||
break;
|
break;
|
||||||
case "cassandra":
|
case "cassandra":
|
||||||
|
|||||||
Reference in New Issue
Block a user