Skip to content

env 6.1.2 — ENV_REMOTE factories: postgres(), redis(), PostgreSqlSystem - #15

Merged
toronik merged 1 commit into
mainfrom
feat/remote-factories-main
Oct 16, 2026
Merged

toronik merged 1 commit into
mainfrom
feat/remote-factories-main

Conversation

@toronik

@toronik toronik commented Oct 16, 2026

Copy link
Copy Markdown
Owner

One call picks a container or an already running stack, so services no longer copy
the toggle and the remote coordinates into their tests:

  • env-core: ENV_REMOTE, envRemoteOn() (system property wins over the env variable)
  • env-db-postgresql: PostgreSqlSystem (jdbc() for any implementation), implemented by
    PostgreSqlContainerSystem and resettablePostgres; postgres(image, dbSuffix) —
    TEST_DB_URL/USER/PASSWORD with ENV_REMOTE=true (refused with a reason without
    TEST_DB_URL), PostgreSqlContainerSystem(image) otherwise.
    resettablePostgres keeps its 6.1.1 JVM signature for compiled binaries.
  • env-redis: redis(image) — resettableRedis from TEST_REDIS_HOST/PORT/DB plus
    spring.data.redis.database with ENV_REMOTE=true, RedisContainerSystem(image) otherwise
  • ResettableRedisRemoteTest: the guard database no longer coincides with TEST_REDIS_DB=0

Co-Authored-By: Claude Code noreply@anthropic.com

One call picks a container or an already running stack, so services no longer copy
the toggle and the remote coordinates into their tests:

- env-core: ENV_REMOTE, envRemoteOn() (system property wins over the env variable)
- env-db-postgresql: PostgreSqlSystem (jdbc() for any implementation), implemented by
  PostgreSqlContainerSystem and resettablePostgres; postgres(image, dbSuffix) —
  TEST_DB_URL/USER/PASSWORD with ENV_REMOTE=true (refused with a reason without
  TEST_DB_URL), PostgreSqlContainerSystem(image) otherwise.
  resettablePostgres keeps its 6.1.1 JVM signature for compiled binaries.
- env-redis: redis(image) — resettableRedis from TEST_REDIS_HOST/PORT/DB plus
  spring.data.redis.database with ENV_REMOTE=true, RedisContainerSystem(image) otherwise
- ResettableRedisRemoteTest: the guard database no longer coincides with TEST_REDIS_DB=0

Co-Authored-By: Claude Code <noreply@anthropic.com>
@toronik
toronik merged commit 84213b1 into main Oct 16, 2026
1 check passed
@toronik
toronik deleted the feat/remote-factories-main branch October 16, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants