VirtualBox

Changeset 82630 in vbox for trunk/src


Ignore:
Timestamp:
Dec 21, 2019 2:48:53 PM (5 years ago)
Author:
vboxsync
Message:

testmanager/readme.txt: Added some words about how to set up a test manager instance locally.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/readme.txt

    r52776 r82630  
    1212                        do model-view-controller stuff, though. Time will show.)
    1313
     14
     15Steps for setting up a local Test Manager instance for development:
     16
     17  - Install apache, postgresql, python, psycopg2 (python) and pylint.
     18
     19  - Create the database by executing 'kmk load-testmanager-db' in
     20    the './db/' subdirectory.   The default psql parameters there
     21    requies pg_hba.conf to specify 'trust' instead of 'peer' as the
     22    authentication method for local connections.
     23
     24  - Use ./db/partial-db-dump.py on the production system to extract a
     25    partial database dump (last 14 days).
     26
     27  - Use ./db/partial-db-dump.py with the --load-dump-into-database
     28    parameter on the development box to load the dump.
     29
     30  - Configure apache using the ./apache-template-2.4.conf (see top of
     31    file for details), for example:
     32
     33        Define TestManagerRootDir "/mnt/scratch/vbox/svn/trunk/src/VBox/ValidationKit/testmanager"
     34        Define VBoxBuildOutputDir "/tmp"
     35        Include "${TestManagerRootDir}/apache-template-2.4.conf"
     36
     37    Make sure to enable cgi (a2enmod cgi && systemctl restart apache2).
     38
     39  - Default htpasswd file has users a user 'admin' with password 'admin' and a
     40    'test' user with password 'test'.  This isn't going to get you far if
     41    you've  loaded something from the production server as there is typically
     42    no 'admin' user in the 'Users' table there.  So, you will need to add your
     43    user and a throwaway password to 'misc/htpasswd-sample' using the htpasswd
     44    utility.
     45
     46  - Try http://localhost/testmanager/ in a browser and see if it works.
     47
     48
     49
     50N.B. For developing tests (../tests/), setting up a local test manager will be
     51     a complete waste of time.  Just run the test drivers locally.
     52
     53
     54
     55
     56
     57
     58
     59
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette