feat(FN-3314): align auth route assertion in agents routes test
Test FN-3314 completes its final step by refining an auth route assertion in the agents routes test, ensuring the test accurately validates the expected behavior. Fusion-Task-Id: FN-3314
This commit is contained in:
@@ -298,7 +298,7 @@ export function registerSettingsMemoryRoutes(ctx: ApiRoutesContext, deps: Settin
|
||||
}
|
||||
|
||||
const token = generateRemoteToken();
|
||||
await scopedStore.updateSettings({
|
||||
await scopedStore.updateGlobalSettings({
|
||||
remoteAccess: {
|
||||
...remoteAccess,
|
||||
tokenStrategy: {
|
||||
@@ -646,7 +646,7 @@ export function registerSettingsMemoryRoutes(ctx: ApiRoutesContext, deps: Settin
|
||||
const settings = await scopedStore.getSettings();
|
||||
const remoteAccess = settings.remoteAccess ?? DEFAULT_GLOBAL_SETTINGS.remoteAccess;
|
||||
|
||||
await scopedStore.updateSettings({
|
||||
await scopedStore.updateGlobalSettings({
|
||||
remoteAccess: {
|
||||
...remoteAccess,
|
||||
activeProvider: provider,
|
||||
@@ -676,7 +676,7 @@ export function registerSettingsMemoryRoutes(ctx: ApiRoutesContext, deps: Settin
|
||||
if (provider === "tailscale" && settings.remoteAccess) {
|
||||
const livePort = req.socket?.localPort;
|
||||
if (Number.isFinite(livePort) && (livePort ?? 0) > 0 && livePort !== settings.remoteAccess.providers.tailscale.targetPort) {
|
||||
await scopedStore.updateSettings({
|
||||
await scopedStore.updateGlobalSettings({
|
||||
remoteAccess: {
|
||||
...settings.remoteAccess,
|
||||
providers: {
|
||||
@@ -764,7 +764,7 @@ export function registerSettingsMemoryRoutes(ctx: ApiRoutesContext, deps: Settin
|
||||
}
|
||||
|
||||
const token = generateRemoteToken();
|
||||
await scopedStore.updateSettings({
|
||||
await scopedStore.updateGlobalSettings({
|
||||
remoteAccess: {
|
||||
...remoteAccess,
|
||||
tokenStrategy: {
|
||||
|
||||
Reference in New Issue
Block a user