Creates a new in-memory DevLake server with default settings and returns a client to it
(t *testing.T, loadedGoPlugins []plugin.PluginMeta)
| 25 | |
| 26 | // Creates a new in-memory DevLake server with default settings and returns a client to it |
| 27 | func StartDevLakeServer(t *testing.T, loadedGoPlugins []plugin.PluginMeta) *DevlakeClient { |
| 28 | client := ConnectLocalServer(t, &LocalClientConfig{ |
| 29 | ServerPort: 8089, |
| 30 | DbURL: config.GetConfig().GetString("E2E_DB_URL"), |
| 31 | CreateServer: true, |
| 32 | DropDb: false, |
| 33 | TruncateDb: true, |
| 34 | Plugins: loadedGoPlugins, |
| 35 | }) |
| 36 | return client |
| 37 | } |
| 38 | |
| 39 | // Connect to an existing DevLake server with default config. Tables are truncated. Useful for troubleshooting outside the IDE. |
| 40 | func ConnectDevLakeServer(t *testing.T) *DevlakeClient { |
nothing calls this directly
no test coverage detected