Skip to content

Commit b3629e2

Browse files
committed
chore: unbreak integration tests for removing series from a collection by modifying test data
Correction for 9172184 commit. Relate to #1621
1 parent f8717d3 commit b3629e2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/main/resources/liquibase/test-data/collections_series.xml

+8-4
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,23 @@
1515
<column name="number_of_stamps" valueNumeric="1" />
1616
<column name="added_at" valueComputed="(SELECT updated_at FROM collections WHERE slug = 'seriesowner')" />
1717
</insert>
18-
18+
19+
<!--
20+
Add incomplete instance of series #3
21+
NOTE: the order is important as this instance will be shown last (smaller id)
22+
and src/test/robotframework/collection/remove-series/logic.robot relies on that
23+
-->
1924
<insert tableName="collections_series">
2025
<column name="collection_id" valueComputed="(SELECT id FROM collections WHERE slug = 'seriesowner')" />
2126
<column name="series_id" valueComputed="(SELECT id FROM series WHERE quantity = 3 ORDER BY id LIMIT 1)" />
22-
<column name="number_of_stamps" valueNumeric="3" />
27+
<column name="number_of_stamps" valueNumeric="2" />
2328
<column name="added_at" valueComputed="(SELECT updated_at FROM collections WHERE slug = 'seriesowner')" />
2429
</insert>
2530

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

0 commit comments

Comments
 (0)