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

Class TableTestServerFactory

tests/table/utils/TableTestServerFactory.ts:15–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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…