[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 21 21:59:13 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #33 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
Signed off, I did nothing more than what's the test plan in the patch so I hope
I didn't missed something when I rewrote it.

== Diff of the test plan ==
=== Before ===
The test plan was in comment 23

% prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
Config entry 'database_test' does not exist at
/home/vagrant/kohaclone/t/lib/Bootstrap.pm line 18

# Edit $KOHA_CONF, add a database_test entry identical to database (then
restart_all):
% prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
Entries 'database_test' and 'database' have the same value in your config at
/home/vagrant/kohaclone/t/lib/Bootstrap.pm line 20.

# Edit $KOHA_CONF, edit database_test with koha_kohadev_test (then restart_all)
% prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
Access denied for user 'koha_kohadev'@'localhost' to database
'koha_kohadev_test'

# Login as the admin mysql user
MariaDB [(none)]> GRANT ALL PRIVILEGES ON `koha_kohadev_test`.* TO
'koha_kohadev'@'localhost';

% prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
t/db_dependent/selenium/00-installation.t .. ok 
All tests successful.
Files=1, Tests=2, 25 wallclock secs ( 0.02 usr  0.01 sys +  1.34 cusr  0.24
csys =  1.61 CPU)
Result: PASS


=== After ===
1. Apply the patches (including bug 19821)
2. restart_all
3. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
4. result: Config entry 'database_test' does not exist at
     /home/vagrant/kohaclone/t/lib/Bootstrap.pm line 18
5. Edit $KOHA_CONF, add a database_test entry identical to database
     You should have:
     <database>koha_kohadev</database>
     <database_test>koha_kohadev</database_test>
6. restart_all
7. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
8. result: Entries 'database_test' and 'database' have the same value in your
     config at /home/vagrant/kohaclone/t/lib/Bootstrap.pm line 20.
9. Edit $KOHA_CONF, edit database_test with koha_test as DB name
10. restart_all
11. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
12. result: Access denied for user 'koha_kohadev'@'localhost'
       to database 'koha_test'
13. Connect to the DBMS
14. Example for koha_testing_docker
      docker exec -it koha_db_1 bash
      mysql -u root --password=password
15. GRANT ALL PRIVILEGES ON `koha_test`.* TO 'koha_kohadev';
16. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
17. result: All tests successful.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list