mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-30 04:33:36 +00:00
chore(deadcode): move gateway auth helper out of prod path
This commit is contained in:
@@ -129,7 +129,6 @@ const config = {
|
||||
"test/helpers/live-image-probe.ts",
|
||||
"src/secrets/credential-matrix.ts",
|
||||
"src/gateway/live-tool-probe-utils.ts",
|
||||
"src/gateway/server.auth.shared.ts",
|
||||
"src/shared/text/assistant-visible-text.ts",
|
||||
bundledPluginFile("telegram", "src/bot/reply-threading.ts"),
|
||||
bundledPluginFile("telegram", "src/draft-chunking.ts"),
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
} from "../infra/device-identity.js";
|
||||
import { GATEWAY_CLIENT_MODES, GATEWAY_CLIENT_NAMES } from "../utils/message-channel.js";
|
||||
import { buildDeviceAuthPayload } from "./device-auth.js";
|
||||
import { CONTROL_UI_CLIENT, TEST_OPERATOR_CLIENT } from "./server.auth.shared.js";
|
||||
import { CONTROL_UI_CLIENT, TEST_OPERATOR_CLIENT } from "./server.auth.test-helpers.js";
|
||||
import {
|
||||
connectReq,
|
||||
connectOk,
|
||||
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
startGatewayServer,
|
||||
testState,
|
||||
installGatewayTestHooks,
|
||||
} from "./server.auth.shared.js";
|
||||
} from "./server.auth.test-helpers.js";
|
||||
|
||||
installGatewayTestHooks({ scope: "suite" });
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ import {
|
||||
waitForWsClose,
|
||||
withGatewayServer,
|
||||
writeTrustedProxyControlUiConfig,
|
||||
} from "./server.auth.shared.js";
|
||||
} from "./server.auth.test-helpers.js";
|
||||
|
||||
const operatorIdentityPathByPrefix = new Map<string, string>();
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
import { describe } from "vitest";
|
||||
import { registerControlUiAndPairingSuite } from "./server.auth.control-ui.suite.js";
|
||||
import { installGatewayTestHooks } from "./server.auth.shared.js";
|
||||
import { installGatewayTestHooks } from "./server.auth.test-helpers.js";
|
||||
|
||||
installGatewayTestHooks({ scope: "suite" });
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ import {
|
||||
waitForWsClose,
|
||||
withGatewayServer,
|
||||
withRuntimeVersionEnv,
|
||||
} from "./server.auth.shared.js";
|
||||
} from "./server.auth.test-helpers.js";
|
||||
|
||||
export function registerDefaultAuthTokenSuite(): void {
|
||||
describe("default auth (token)", () => {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
import { describe } from "vitest";
|
||||
import { registerDefaultAuthTokenSuite } from "./server.auth.default-token.suite.js";
|
||||
import { installGatewayTestHooks } from "./server.auth.shared.js";
|
||||
import { installGatewayTestHooks } from "./server.auth.test-helpers.js";
|
||||
|
||||
installGatewayTestHooks({ scope: "suite" });
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
startGatewayServer,
|
||||
testState,
|
||||
testTailscaleWhois,
|
||||
} from "./server.auth.shared.js";
|
||||
} from "./server.auth.test-helpers.js";
|
||||
|
||||
export function registerAuthModesSuite(): void {
|
||||
describe("password auth", () => {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
import { describe } from "vitest";
|
||||
import { registerAuthModesSuite } from "./server.auth.modes.suite.js";
|
||||
import { installGatewayTestHooks } from "./server.auth.shared.js";
|
||||
import { installGatewayTestHooks } from "./server.auth.test-helpers.js";
|
||||
|
||||
installGatewayTestHooks({ scope: "suite" });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user