Skip to content

Commit

Permalink
chore: unbreak integration tests for removing series from a collectio…
Browse files Browse the repository at this point in the history
…n by modifying test data

Correction for 9172184 commit.

Relate to #1621
  • Loading branch information
php-coder committed Jul 28, 2023
1 parent f8717d3 commit b3629e2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main/resources/liquibase/test-data/collections_series.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,23 @@
<column name="number_of_stamps" valueNumeric="1" />
<column name="added_at" valueComputed="(SELECT updated_at FROM collections WHERE slug = 'seriesowner')" />
</insert>


<!--
Add incomplete instance of series #3
NOTE: the order is important as this instance will be shown last (smaller id)
and src/test/robotframework/collection/remove-series/logic.robot relies on that
-->
<insert tableName="collections_series">
<column name="collection_id" valueComputed="(SELECT id FROM collections WHERE slug = 'seriesowner')" />
<column name="series_id" valueComputed="(SELECT id FROM series WHERE quantity = 3 ORDER BY id LIMIT 1)" />
<column name="number_of_stamps" valueNumeric="3" />
<column name="number_of_stamps" valueNumeric="2" />
<column name="added_at" valueComputed="(SELECT updated_at FROM collections WHERE slug = 'seriesowner')" />
</insert>

<!-- Add another instance (incomplete) of series #3 -->
<insert tableName="collections_series">
<column name="collection_id" valueComputed="(SELECT id FROM collections WHERE slug = 'seriesowner')" />
<column name="series_id" valueComputed="(SELECT id FROM series WHERE quantity = 3 ORDER BY id LIMIT 1)" />
<column name="number_of_stamps" valueNumeric="2" />
<column name="number_of_stamps" valueNumeric="3" />
<column name="added_at" valueComputed="(SELECT updated_at FROM collections WHERE slug = 'seriesowner')" />
</insert>

Expand Down

0 comments on commit b3629e2

Please sign in to comment.