Skip to content

Commit ca62422

Browse files
refactor: remove placeholder seed_sets from create-if-missing test specs
1 parent f279a93 commit ca62422

5 files changed

Lines changed: 3 additions & 20 deletions

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
- Removed placeholder `seed_sets` from create-if-missing integration test YAML files; phases with only `create_if_missing` no longer need empty seed sets (`seed_sets` was already optional via `#[serde(default)]`)
12+
1013
### Added
1114
- Integration tests with docker-compose for end-to-end testing against real Postgres 16, MySQL 8.0, and nginx services (`tests/integration_test.rs`): wait-for TCP/HTTP/timeout/multiple targets, render template, fetch HTTP, exec command, seed PostgreSQL and MySQL with cross-table reference verification, create database/schema, idempotency, and reset mode
1215
- Additional create-if-missing integration tests: 2 PostgreSQL and 2 MySQL tests using known non-existing database names (`initium_noexist_alpha`, `initium_noexist_beta`) to verify database creation, existence checks, and idempotent re-runs

tests/input/create-nonexistent-db-alpha-mysql.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,3 @@ phases:
88
order: 1
99
database: initium_noexist_alpha
1010
create_if_missing: true
11-
seed_sets:
12-
- name: placeholder
13-
tables:
14-
- table: products
15-
rows: []

tests/input/create-nonexistent-db-alpha-postgres.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,3 @@ phases:
88
order: 1
99
database: initium_noexist_alpha
1010
create_if_missing: true
11-
seed_sets:
12-
- name: placeholder
13-
tables:
14-
- table: departments
15-
rows: []

tests/input/create-nonexistent-db-beta-mysql.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,3 @@ phases:
88
order: 1
99
database: initium_noexist_beta
1010
create_if_missing: true
11-
seed_sets:
12-
- name: placeholder
13-
tables:
14-
- table: products
15-
rows: []

tests/input/create-nonexistent-db-beta-postgres.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,3 @@ phases:
88
order: 1
99
database: initium_noexist_beta
1010
create_if_missing: true
11-
seed_sets:
12-
- name: placeholder
13-
tables:
14-
- table: departments
15-
rows: []

0 commit comments

Comments
 (0)