Merged in feature/remove-mocks (pull request #202)

Feature/remove mocks

* remove mocks

* cleanup db migrations
This commit is contained in:
Jay Brown
2026-01-15 20:39:32 +00:00
parent 0ddae4f91e
commit 35d72fccbe
244 changed files with 2573 additions and 50860 deletions
+21 -23
View File
@@ -34,7 +34,6 @@ type containerConfig struct {
Env map[string]string
WaitForMsg string
ExposedPorts []nat.Port
MockHTTP string
}
const (
@@ -49,28 +48,27 @@ func createContainer(t testing.TB, ctx context.Context, network string, cfg *con
}
env := map[string]string{
"BUCKET": bucket,
"PGUSER": cfg.Cfg.GetDBUser(),
"PGPASSWORD": cfg.Cfg.GetDBSecret(),
"PGHOST": dbAlias,
"PGDATABASE": cfg.Cfg.GetDBName(),
"PGPORT": strconv.Itoa(dbPort),
"DB_NOSSL": strconv.FormatBool(cfg.Cfg.IsDBNoSSL()),
"AWS_ACCESS_KEY_ID": cfg.Cfg.GetAWSKeyID(),
"AWS_SECRET_ACCESS_KEY": cfg.Cfg.GetAWSSecretKey(),
"AWS_REGION": cfg.Cfg.GetAWSRegion(),
"AWS_DEFAULT_REGION": cfg.Cfg.GetAWSRegion(),
"AWS_ENDPOINT_URL": cfg.Cfg.GetAWSEndpoint(),
"AWS_ENDPOINT_URL_SQS": cfg.Cfg.GetAWSEndpoint(),
"AWS_ENDPOINT_URL_S3": cfg.Cfg.GetAWSEndpoint(),
"AWS_ENDPOINT_URL_TEXTRACT": cfg.MockHTTP,
"AWS_S3_USE_PATH_STYLE": strconv.FormatBool(true),
"DISABLE_AUTH": "true",
"LOG_LEVEL": "DEBUG",
"COGNITO_USER_POOL_ID": "coguserpoolid",
"COGNITO_CLIENT_SECRET": "cogsecret",
"COGNITO_DOMAIN": "cogdomain",
"COGNITO_CLIENT_ID": "clientid",
"BUCKET": bucket,
"PGUSER": cfg.Cfg.GetDBUser(),
"PGPASSWORD": cfg.Cfg.GetDBSecret(),
"PGHOST": dbAlias,
"PGDATABASE": cfg.Cfg.GetDBName(),
"PGPORT": strconv.Itoa(dbPort),
"DB_NOSSL": strconv.FormatBool(cfg.Cfg.IsDBNoSSL()),
"AWS_ACCESS_KEY_ID": cfg.Cfg.GetAWSKeyID(),
"AWS_SECRET_ACCESS_KEY": cfg.Cfg.GetAWSSecretKey(),
"AWS_REGION": cfg.Cfg.GetAWSRegion(),
"AWS_DEFAULT_REGION": cfg.Cfg.GetAWSRegion(),
"AWS_ENDPOINT_URL": cfg.Cfg.GetAWSEndpoint(),
"AWS_ENDPOINT_URL_SQS": cfg.Cfg.GetAWSEndpoint(),
"AWS_ENDPOINT_URL_S3": cfg.Cfg.GetAWSEndpoint(),
"AWS_S3_USE_PATH_STYLE": strconv.FormatBool(true),
"DISABLE_AUTH": "true",
"LOG_LEVEL": "DEBUG",
"COGNITO_USER_POOL_ID": "coguserpoolid",
"COGNITO_CLIENT_SECRET": "cogsecret",
"COGNITO_DOMAIN": "cogdomain",
"COGNITO_CLIENT_ID": "clientid",
// Rate limiting config - very high limits for testing to avoid interference
"RATE_LIMIT_GLOBAL_RATE": "10000", // 10k req/s global (vs 500 in prod)
"RATE_LIMIT_GLOBAL_BURST": "20000", // 20k burst global (vs 1000 in prod)