mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-05 23:06:17 +01:00
test: configure the hosted sleep customer origin
This commit is contained in:
1 parent
55b597a341
commit
8b01f0fc17
1 file changed
+1
-1
@@ -449,7 +449,7 @@ describe.skipIf(!url||!cloudDatabaseUrl)("current normal hosted Dot OAuth/device
|
||||
const incomingWake=await idleCapabilities.createIdleIncomingWakeCapability({stackId:currentStackId,ownerId,store:connectorStore,apiEnabled:false,mcpEnabled:true,brokerEnabled:false});
|
||||
return incomingWake?{incomingWake}:undefined;
|
||||
}});
|
||||
cloudService=service.createCloudHarnessService({registry,provider,entryReadinessProbe:actualEntryReadiness,wakeReadinessProbe:actualWakeReadiness,idleSleepDrain:actualIdleDrain,baseDomain:"paperclip.app",customerAppOrigin:cloudOrigin,runtimeIdentity:signer,incomingMcpWakeEnabled:true,tenantSessionSigningKey:"principal-hop-tenant-session-".repeat(3),customerSessionSigningKey:"principal-hop-customer-session-".repeat(3),appVersion:"principal-hop",schemaVersion:"fixture",assistantMcp:{store:registry.assistantMcpStore(),encryptionKey:Buffer.alloc(32,9)},connector:{environment:"test",providers:providers.providerRegistryFromEnvironment({}),fetchImplementation:mapped,secrets:{resolve:async()=>{throw new Error("No external provider");}},store:connectorStore,stackEnrollment:{secrets:vault,secretRefPrefix:"secret://principal-hop"}}});
|
||||
cloudService=service.createCloudHarnessService({registry,provider,entryReadinessProbe:actualEntryReadiness,wakeReadinessProbe:actualWakeReadiness,idleSleepDrain:actualIdleDrain,baseDomain:"paperclip.app",customerAppOrigin:cloudOrigin,customerSessionAllowedOrigins:[cloudOrigin],runtimeIdentity:signer,incomingMcpWakeEnabled:true,tenantSessionSigningKey:"principal-hop-tenant-session-".repeat(3),customerSessionSigningKey:"principal-hop-customer-session-".repeat(3),appVersion:"principal-hop",schemaVersion:"fixture",assistantMcp:{store:registry.assistantMcpStore(),encryptionKey:Buffer.alloc(32,9)},connector:{environment:"test",providers:providers.providerRegistryFromEnvironment({}),fetchImplementation:mapped,secrets:{resolve:async()=>{throw new Error("No external provider");}},store:connectorStore,stackEnrollment:{secrets:vault,secretRefPrefix:"secret://principal-hop"}}});
|
||||
cloudServer=createServer((req,res)=>{observeInbound("cloud",req,res);const current=cloudService;if(!current)throw new Error("Missing normal Cloud handler");current.handler(req,res);});cloudLoopback=await listen(cloudServer);
|
||||
cloudOwnerGenerations++;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user