MCPcopy Create free account
hub / github.com/temporalio/temporal / loadSQLiteConfig

Function loadSQLiteConfig

temporal/server_test.go:168–179  ·  view source on GitHub ↗

loadSQLiteConfig loads the config for the sqlite persistence store. We use sqlite because it doesn't require any external dependencies, so it's easy to run this test in isolation.

(t *testing.T)

Source from the content-addressed store, hash-verified

166// loadSQLiteConfig loads the config for the sqlite persistence store. We use sqlite because it doesn't require any
167// external dependencies, so it's easy to run this test in isolation.
168func loadSQLiteConfig(t *testing.T) *config.Config {
169 configDir := path.Join(testutils.GetRepoRootDirectory(), "config")
170 cfg, err := config.Load(
171 config.WithEnv("development-sqlite"),
172 config.WithConfigDir(configDir),
173 )
174 require.NoError(t, err)
175
176 cfg.DynamicConfigClient.Filepath = path.Join(configDir, "dynamicconfig", "development-sql.yaml")
177
178 return cfg
179}
180
181func setSQLiteDatabaseName(cfg *config.Config, databaseName string) {
182 for _, storeName := range []string{cfg.Persistence.DefaultStore, cfg.Persistence.VisibilityStore} {

Callers 1

loadConfigFunction · 0.85

Calls 5

GetRepoRootDirectoryFunction · 0.92
LoadFunction · 0.92
WithEnvFunction · 0.92
WithConfigDirFunction · 0.92
NoErrorMethod · 0.80

Tested by

no test coverage detected