| 16 | } |
| 17 | |
| 18 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…