Summary: | 22.05.07 failing t/AuthoritiesMarc_MARC21.t | ||
---|---|---|---|
Product: | Koha | Reporter: | Wainui Witika-Park <wainuiwitikapark> |
Component: | Test Suite | Assignee: | Chris Cormack <chris> |
Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P2 | CC: | arthur.suzuki, danyonsewell, david, lucas, victor, wainuiwitikapark |
Version: | 22.05 | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
22.05.11, 21.11.19
|
|
Circulation function: | |||
Attachments: |
bug 32375: moving t/AuthoritiesMarc_MARC21.t to t/db_dependent
Bug 32375: Move t/AuthoritiesMarc_MARC21.t to t/db_dependent Bug 32375: Move t/AuthoritiesMarc_MARC21.t to t/db_dependent |
Description
Wainui Witika-Park
2022-11-30 03:57:20 UTC
It appears the tests added in bug 31023 have made this test db dependent now so it looks like it needs to be moved to t/db_dependent I dont think the tests can be written to work without a db, (and still test something) so shifting this file to t/db_dependent seems the only way forward. We will send a patch Created attachment 144370 [details] [review] bug 32375: moving t/AuthoritiesMarc_MARC21.t to t/db_dependent t/AuthoritiesMarc_MARC21.t is now db dependent so it needs to be in t/db_dependent to pass the tests Sponsored-by: Catalyst IT Hey all, I am having trouble making t/AuthoritiesMarc_MARC21.t fail on my 22.05.x branch. Maybe I missing a specific configuration that will make this fail? (In reply to Lucas Gass from comment #4) > Hey all, > > I am having trouble making t/AuthoritiesMarc_MARC21.t fail on my 22.05.x > branch. > > Maybe I missing a specific configuration that will make this fail? Hi Lucas, Can you start mysql and see if it fails then? Thanks Thats right you have to have no db, so if you stop mariadb, or mysqlserver and run it will fail. Created attachment 145780 [details] [review] Bug 32375: Move t/AuthoritiesMarc_MARC21.t to t/db_dependent t/AuthoritiesMarc_MARC21.t is now database dependent so it needs to be in t/db_dependent to pass the tests. Test plan (using koha-testing-docker): 1. If you run prove t/AuthoritiesMarc_MARC21.t without stopping the database, the tests will pass. To get the tests to fail: 1.1 Stop the database - from a new terminal window run: docker stop koha-db-1 1.2 In your Koha container run: prove t/AuthoritiesMarc_MARC21.t ==> The tests fail 8-( 2. Restart the database container from the terminal window you stopped it in: docker start koha-db-1 3. Apply the patch in the Koha container as normal. 4. Run: prove t/db_dependent/AuthoritiesMarc_MARC21.t ==> The test pass! 5. Sign off D: Sponsored-by: Catalyst IT Signed-off-by: David Nind <david@davidnind.com> I tested with koha-testing-docker (KTD) and updated the commit message to format the bug title as expected by the QA Team and added the test plan I used. I hope what I've done is sufficient/correct! Created attachment 147811 [details] [review] Bug 32375: Move t/AuthoritiesMarc_MARC21.t to t/db_dependent t/AuthoritiesMarc_MARC21.t is now database dependent so it needs to be in t/db_dependent to pass the tests. Test plan (using koha-testing-docker): 1. If you run prove t/AuthoritiesMarc_MARC21.t without stopping the database, the tests will pass. To get the tests to fail: 1.1 Stop the database - from a new terminal window run: docker stop koha-db-1 1.2 In your Koha container run: prove t/AuthoritiesMarc_MARC21.t ==> The tests fail 8-( 2. Restart the database container from the terminal window you stopped it in: docker start koha-db-1 3. Apply the patch in the Koha container as normal. 4. Run: prove t/db_dependent/AuthoritiesMarc_MARC21.t ==> The test pass! 5. Sign off D: Sponsored-by: Catalyst IT Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Works, QA script happy, change looks good, passing QA :) Backported to 22.05.x for upcoming 22.05.11 applied to 21.11 for 21.11.19 Not backported to 21.05.x |