Testing
Some of Sibyl's tests connect to the database and expect certain objects to exist in it and certain privileges granted:
- At least the HR demo schema should be installed.
- While there is no need to install other demo schemas at least
MEDIA_DIR
should be created (see$ORACLE_HOME/demo/schema/mk_dir.sql
) and point to the directory with demo files. The latter can be found inproduct_media
in the db-sample-schemas.zip. - Some of the LOB tests need text files with the the expected content. Those can be found in
etc/media
and copied intoMEDIA_DIR
. - A test user should be created. That user needs access to the
HR
schema and to theMEDIA_DIR
directory. Seeetc/create_sandbox.sql
for an example of how it can be accomplished. - The test user needs
SELECT
access toV$SESSION
as some tests use it for validation.
GRANT SELECT ON V_$SESSION TO sibyl;
- Tests that connect to the database use environment variables -
DBNAME
,DBUSER
andDBPASS
- to identify the database, user and password respectively. These variables should be set before executingcargo test
.