MCPcopy Create free account
hub / github.com/Azure/Azurite / QueueTestServerFactory

Class QueueTestServerFactory

tests/queue/utils/QueueTestServerFactory.ts:18–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18export default class QueueTestServerFactory {
19 public createServer(params: IQueueTestServerFactoryParams): QueueServer {
20 const inMemoryPersistence = process.env.AZURITE_TEST_INMEMORYPERSISTENCE !== undefined;
21
22 const port = 11001;
23 const host = "127.0.0.1";
24
25 const cert = params.https ? "tests/server.cert" : undefined;
26 const key = params.https ? "tests/server.key" : undefined;
27
28 const config = new QueueConfiguration(
29 host,
30 port,
31 DEFAULT_QUEUE_KEEP_ALIVE_TIMEOUT,
32 params.metadataDBPath,
33 params.extentDBPath,
34 params.persistencePathArray,
35 false,
36 undefined,
37 params.enableDebugLog,
38 params.debugLogFilePath,
39 params.loose,
40 params.skipApiVersionCheck,
41 cert,
42 key,
43 undefined,
44 params.oauth,
45 undefined,
46 inMemoryPersistence
47 );
48 return new QueueServer(config);
49 }
50}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…