| 13 | } |
| 14 | |
| 15 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…