mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-07-20 20:37:18 +01:00
Fix rbac token detection for table and resource token tests.
This commit is contained in:
@@ -11,10 +11,9 @@ import {
|
||||
resourceGroupName,
|
||||
subscriptionId,
|
||||
} from "../fx";
|
||||
import { getNoSqlRbacToken } from "../NoSqlTestSetup";
|
||||
|
||||
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.");
|
||||
|
||||
const credentials = getAzureCLICredentials();
|
||||
|
||||
@@ -51,7 +51,7 @@ const initTestExplorer = async (): Promise<void> => {
|
||||
case "gremlin":
|
||||
rbacToken = gremlinRbacToken;
|
||||
break;
|
||||
case "tables":
|
||||
case "table":
|
||||
rbacToken = tableRbacToken;
|
||||
break;
|
||||
case "cassandra":
|
||||
|
||||
Reference in New Issue
Block a user