Skip to content

Release/v3.1.3 #792

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 146 commits into from
Nov 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
e2535f7
Merge pull request #725 from utPLSQL/master
jgebal Jul 22, 2018
922630f
Update VERSION
jgebal Jul 22, 2018
d4ff93d
Updated project version after build [skip ci]
Jul 22, 2018
d568b1f
Update annotations.md
jgebal Jul 23, 2018
56abea0
Update annotations.md
jgebal Jul 23, 2018
0124435
Merge pull request #728 from utPLSQL/jgebal-patch-1
jgebal Jul 23, 2018
392a949
Updated project version after build [skip ci]
Jul 23, 2018
89a2839
Introduced tests on Oracle database 18c
Pazus Jul 24, 2018
7e78473
Disabling tests that cant execute on 18c.
jgebal Jul 24, 2018
952c9a8
Permanently disabling tests that cant execute on 18c.
jgebal Jul 25, 2018
55ecb5c
Updated sqlcl version used for tests to version 18.2
Pazus Jul 27, 2018
105f324
updated documentation.
Pazus Jul 27, 2018
870b04d
change link to direct to the DB life support page
Pazus Jul 27, 2018
fef260b
Resolved issue with running package state invalidation test on 18c.
jgebal Jul 27, 2018
c15f4c2
Improved performance of tests by changing runtime plsql_optimize_level=0
jgebal Jul 27, 2018
51df37e
Merge pull request #735 from utPLSQL/feature/database-18.3
jgebal Jul 27, 2018
b339013
Merge pull request #738 from utPLSQL/feature/update-sqlcl
jgebal Jul 27, 2018
88a3559
Updated project version after build [skip ci]
Jul 27, 2018
3d2b483
Merge branch 'develop' into feature/test_performance
jgebal Jul 27, 2018
b28c568
Resolves #737
jgebal Jul 27, 2018
4888784
Update check_sys_grants.sql
jgebal Jul 27, 2018
ac3a31c
Merge pull request #739 from utPLSQL/feature/test_performance
jgebal Jul 27, 2018
d309c90
Updated Copyright notice to 2018
jgebal Jul 27, 2018
4380b81
Merge pull request #740 from utPLSQL/feature/support_any_grants
jgebal Jul 27, 2018
1a334b8
Merge branch 'develop' into feature/update_copyright
jgebal Jul 27, 2018
3aa4477
Updated project version after build [skip ci]
Jul 27, 2018
024094d
Merge pull request #741 from utPLSQL/feature/update_copyright
jgebal Jul 27, 2018
37d27b9
Updated project version after build [skip ci]
Jul 27, 2018
8feae1c
Adding timing to docker operations.
jgebal Jul 29, 2018
81694a5
Moved filesystem stats into `start_db.sh`
jgebal Jul 29, 2018
110bfa7
Disabling maven wagon-http
jgebal Jul 29, 2018
3021a69
Removing unneeded (duplicate) warnings on install.
jgebal Jul 29, 2018
a9db3a3
Adding `plsql_optimize_level=0` to improve install performance.
jgebal Jul 29, 2018
8a23068
Adding `plsql_optimize_level=0` to further improve install performanc…
jgebal Jul 29, 2018
c40f837
Revert "Disabling maven wagon-http"
jgebal Jul 29, 2018
3854502
Adding `plsql_optimize_level=0` to tests installation.
jgebal Jul 29, 2018
69d504f
Reworking install script to run some actions only on the first JOB (1…
jgebal Jul 29, 2018
591c14b
Reworking install script to run some actions only on the first JOB (1…
jgebal Jul 29, 2018
95bc7d2
Merge pull request #743 from utPLSQL/feature/build_performance
jgebal Jul 29, 2018
f590d77
Updated project version after build [skip ci]
Jul 29, 2018
c850b38
Resolves issues with teamcity reporter:
jgebal Aug 11, 2018
9ae7d55
Ficing build issue with mkdocs
jgebal Aug 11, 2018
cd742e7
Fixed issue with context generating a separate tag in sonar test-resu…
jgebal Aug 11, 2018
3c5cd62
Fixed regression with nested suites reporting for sonar test execution.
jgebal Aug 11, 2018
fff402f
Added explicit tests for trimmed output on teamcity report
jgebal Aug 13, 2018
2c3df8b
Removing suitepath committed by accident.
jgebal Aug 13, 2018
eaa02e0
Merge pull request #750 from utPLSQL/bugfix/teamcity_reporter_escape_…
jgebal Aug 16, 2018
8b509c7
Updated project version after build [skip ci]
Aug 16, 2018
9c8ddcc
Merge branch 'develop' into bugfix/sonar_test_reporter
jgebal Aug 16, 2018
97b83fa
Fixed failing unit test after merging.
jgebal Aug 16, 2018
74b4db2
Merge pull request #751 from utPLSQL/bugfix/sonar_test_reporter
jgebal Aug 16, 2018
b21704f
Updated project version after build [skip ci]
Aug 18, 2018
28ed15c
Switching to small Oracle Docker Images.
jgebal Sep 18, 2018
7e15d70
Fixing test performance issue found - implicit data-type conversion t…
jgebal Sep 20, 2018
4ec7f13
Trying sonar exclusions from command-line
jgebal Sep 21, 2018
a24c9aa
Trying to cache sonar scanner plugins
jgebal Sep 21, 2018
4cb3aca
Switching to non-PDB images.
jgebal Sep 21, 2018
f77c987
Merge pull request #754 from utPLSQL/feature/small_db_images
jgebal Sep 24, 2018
df6bd42
Updated project version after build [skip ci]
Sep 24, 2018
af52499
Extended the proftab column size for 12.2 long names
jgebal Sep 24, 2018
a966451
Added cardinality to SQL on xmltable to avoid excessive estimates.
jgebal Sep 24, 2018
eb0dab7
Additional cardinality hint.
jgebal Sep 25, 2018
e648ea5
Merge pull request #755 from utPLSQL/bugfix/profiler_tables_above12.1
jgebal Sep 25, 2018
ad6059f
Updated project version after build [skip ci]
Sep 25, 2018
a8bac08
Merge branch 'develop' into feature/ut_cursor_compare_cardinality
jgebal Sep 25, 2018
0f592e6
Cleanup of cardinality hints.
jgebal Sep 25, 2018
0a95836
Merge pull request #756 from utPLSQL/feature/ut_cursor_compare_cardin…
jgebal Sep 26, 2018
a6e4e6a
Updated project version after build [skip ci]
Sep 26, 2018
ab64302
Change CLI version to 3.1.0.
PhilippSalvisberg Oct 19, 2018
9c3b1ff
ignore temporary files created by actions described in CONTRIBUTING.md
PhilippSalvisberg Oct 19, 2018
766837e
Fixing test dependency on NLS settings.
jgebal Oct 19, 2018
aa4e3d5
Adding fix to avoid running sonar-scanner on external pull-requests.
jgebal Oct 19, 2018
3d5b526
Merge pull request #767 from utPLSQL/feature/fixing_minor_issues
jgebal Oct 19, 2018
92d92aa
Merge branch 'develop' into update-env
jgebal Oct 19, 2018
f818af4
Updated project version after build [skip ci]
Oct 19, 2018
2c73200
Merge pull request #766 from PhilippSalvisberg/update-env
jgebal Oct 19, 2018
db19e30
Updated project version after build [skip ci]
Oct 19, 2018
e5df0e2
fix to unordered.
lwasylow Oct 20, 2018
44713a5
Moving uninstall tests to child job no 2 - (12.1) as it is now fastes…
jgebal Oct 20, 2018
c0e1b38
Merge pull request #768 from utPLSQL/fix/fix_to_unordered
jgebal Oct 20, 2018
306674a
Updated project version after build [skip ci]
Oct 20, 2018
19290a4
Disabling compilation with PLSQL compiler warnings.
jgebal Oct 21, 2018
f1c266d
Merge pull request #769 from utPLSQL/feature/build_11g_speedup
jgebal Oct 21, 2018
013cba3
Updated project version after build [skip ci]
Oct 21, 2018
b05dbd7
Fix to issue #770 when the merge statement is run via current user wh…
lwasylow Oct 27, 2018
9423457
Added test for min user test
lwasylow Oct 28, 2018
4b3fe8a
Update sqlcl download
lwasylow Oct 28, 2018
40314b6
Revert "Update sqlcl download"
lwasylow Oct 28, 2018
2a6c82c
Fix sqlcl download
jgebal Oct 28, 2018
df9dac7
Merge pull request #772 from utPLSQL/bugfix/fix_travis_sqlcl_download…
jgebal Nov 1, 2018
899ddcf
Updated project version after build [skip ci]
Nov 1, 2018
72851ff
Squashed commit of the following:
lwasylow Nov 1, 2018
90432f4
Merge branch 'develop' of https://github.com/utPLSQL/utPLSQL into fix…
lwasylow Nov 1, 2018
5f25daf
Update run test shell.
lwasylow Nov 1, 2018
2df6354
Update shell
lwasylow Nov 1, 2018
e41d6f9
Interim commit with lots of dirty code - got to a place where I get t…
jgebal Oct 30, 2018
f475b7c
Added `suite_cache`.
jgebal Nov 2, 2018
4dc48e6
Interim commit - performance check on Travis.
jgebal Nov 4, 2018
1611e09
Interim commit some fixes to old tests, examples and code itself.
jgebal Nov 4, 2018
15163a8
Resolved issue with sorting of nested-tables.
jgebal Nov 4, 2018
1b14bb5
Fixing re-enabled test.
jgebal Nov 4, 2018
3bc8da5
Adding missing items to uninstall.
jgebal Nov 4, 2018
8911f97
Small improvements and cleanup.
jgebal Nov 5, 2018
a1f6b34
Removing duplicate with block.
jgebal Nov 6, 2018
59f7738
Adding cache cleanup and "intelligent" join to all_source, only when …
jgebal Nov 11, 2018
cb9cf97
Resolving some sonar violations.
jgebal Nov 11, 2018
8779025
Moving away from full outer join.
jgebal Nov 11, 2018
b3e98be
Reorganizing code a bit.
jgebal Nov 11, 2018
64dfb41
Output buffer&reporters performance improvements
jgebal Nov 12, 2018
9ea805b
Increased fetch size for coverage sources tmp seeding.
jgebal Nov 12, 2018
248bf8c
Small refactoring.
jgebal Nov 13, 2018
8fc2ea6
Further optimizations to suite parsing.
jgebal Nov 15, 2018
3543e3d
Disabled `PLSQL_OPTIMIZE_LEVEL=0` for testing
jgebal Nov 15, 2018
23c0557
Fixed formal parameter names
jgebal Nov 15, 2018
f7f6811
Revert "Disabled `PLSQL_OPTIMIZE_LEVEL=0` for testing"
jgebal Nov 15, 2018
d002d18
Refactored procedure `get_unit_test_info` to return more relevant inf…
jgebal Nov 16, 2018
e1f1eec
Renamed `get_unit_test_info` to `get_suites_info` - the latter one wa…
jgebal Nov 16, 2018
d8d251f
Improved automation of `refresh_sources.sh`
jgebal Nov 16, 2018
eb3df21
Fixing failing test.
jgebal Nov 16, 2018
d211348
Added control over rollback behavior in `ut_runner.run`
jgebal Nov 17, 2018
6b37e19
Merge pull request #773 from utPLSQL/fix/join_by_grant
jgebal Nov 17, 2018
d887889
Updated project version after build [skip ci]
Nov 17, 2018
f342195
Reverting rollback changes - they should go as a separate PR.
jgebal Nov 17, 2018
eeae79b
Added documentation for new functionality.
jgebal Nov 17, 2018
6bf2c8e
Added ability to control rollback bekavior of a test-run.
jgebal Nov 18, 2018
4e3a654
Updated documentation.
jgebal Nov 18, 2018
6110923
Updated documentation to include infrmation about reports encoding.
jgebal Nov 18, 2018
74ec9a1
Removed unused code.
jgebal Nov 18, 2018
44d61d9
Recovering exception handlers as they are needed for handling invalid…
jgebal Nov 18, 2018
360a889
Moved some of old tests into new tests.
jgebal Nov 18, 2018
0ee3ce2
Added missing endcontext in `test_ut_test`
jgebal Nov 18, 2018
48aa338
Removed unused constants.
jgebal Nov 18, 2018
b33aaae
Added additional test for display of parser warnings.
jgebal Nov 18, 2018
e8ea644
Merge branch 'develop' into feature/suite_query_api
jgebal Nov 18, 2018
3a1227e
Merge pull request #783 from utPLSQL/feature/suite_query_api
jgebal Nov 18, 2018
1e5681b
Updated project version after build [skip ci]
Nov 18, 2018
30f3340
Merge pull request #790 from utPLSQL/feature/html_coverage_encoding
jgebal Nov 18, 2018
5bb077d
Updated project version after build [skip ci]
Nov 18, 2018
cad7bad
Added description fo timestamp bind-variable comparison in cursor.
jgebal Nov 18, 2018
b6a29f8
Merge pull request #791 from utPLSQL/feature/update_cursor_timestamp_doc
jgebal Nov 19, 2018
c2e7586
Updated project version after build [skip ci]
Nov 19, 2018
8c3e4af
Merge branch 'develop' into feature/force_manual_rollback_option
jgebal Nov 19, 2018
fa90154
Merge pull request #789 from utPLSQL/feature/force_manual_rollback_op…
jgebal Nov 19, 2018
3e5d1ba
Updated project version after build [skip ci]
Nov 20, 2018
8168736
Update readme.md
jgebal Nov 20, 2018
d13b0ef
Updated project version after build [skip ci]
Nov 20, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,15 @@ node_modules/
utPLSQL_latest_release/
utPLSQL-cli/
development/env.sh
development/*.jar
*.log

# exclusions based on artifacts created via actions documented in CONTRIBUTING.md
test/dummy.sql
coverage.html_assets/
coverage.html
coverage.json
coverage.xml
tfs_test_results.xml
junit_test_results.xml
test_results.xml
15 changes: 9 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,23 @@ env:
- MAVEN_HOME=/usr/local/maven
- MAVEN_CFG=$HOME/.m2
matrix:
- ORACLE_VERSION="${DOCKER_TAG_11G:-11g-r2-xe}" CONNECTION_STR='127.0.0.1:1521/XE' DOCKER_OPTIONS='--shm-size=1g'
- ORACLE_VERSION="${DOCKER_TAG_12C:-12c-r1-se2}" CONNECTION_STR='127.0.0.1:1521/ORCLPDB1' DOCKER_OPTIONS="-v /dev/pdbs:/opt/oracle/oradata/pdbs"
- ORACLE_VERSION="${DOCKER_TAG_12C2:-12c-r2-se2}" CONNECTION_STR='127.0.0.1:1521/ORCLPDB1' DOCKER_OPTIONS="-v /dev/pdbs:/opt/oracle/oradata/pdbs"
- ORACLE_VERSION="${DOCKER_TAG_11G:-11g-r2-xe}" CONNECTION_STR='127.0.0.1:1521/XE' DOCKER_OPTIONS='--shm-size=1g'
- ORACLE_VERSION="${DOCKER_TAG_12C:-12c-r1-se2-small}" CONNECTION_STR='127.0.0.1:1521/ORCLCDB' DOCKER_OPTIONS="-v /dev/pdbs:/opt/oracle/oradata/pdbs"
- ORACLE_VERSION="${DOCKER_TAG_12C2:-12c-r2-se2-small}" CONNECTION_STR='127.0.0.1:1521/ORCLCDB' DOCKER_OPTIONS="-v /dev/pdbs:/opt/oracle/oradata/pdbs"
- ORACLE_VERSION="${DOCKER_TAG_18:-18c-se2-small}" CONNECTION_STR='127.0.0.1:1521/ORCLCDB' DOCKER_OPTIONS="-v /dev/pdbs:/opt/oracle/oradata/pdbs"

cache:
pip: true
directories:
- $CACHE_DIR
- /home/travis/.sonar/cache
- node_modules
- $MAVEN_CFG

before_install:
#cache to be used between stages. Based on https://github.com/travis-ci/docs-travis-ci-com/issues/1329
#delete all files in cache that are older than 5 days
- mkdir -p $CACHE_DIR/stages_cache; find $CACHE_DIR/stages_cache/ -mtime +5 -exec rm {} \;
#The update_project_version.sh is done before deployment to validate that the change of project files does not break installation
- bash .travis/update_project_version.sh
#Allow for sonar to blame issues
Expand All @@ -79,9 +84,7 @@ install:
- bash .travis/install_sqlcl.sh
- sudo mkdir -p /dev/pdbs
- sudo chmod -R 777 /dev/pdbs
- df -h
- if [[ ! $TRAVIS_TAG ]]; then bash .travis/start_db.sh; fi
- df -h

before_script:
- if [[ ! $TRAVIS_TAG ]]; then bash .travis/install.sh; fi
Expand All @@ -92,7 +95,7 @@ before_script:
script:
- if [[ ! $TRAVIS_TAG ]]; then bash test/install_and_run_tests.sh; fi
- if [[ ! $TRAVIS_TAG ]]; then bash .travis/validate_report_files.sh; fi
- if [[ ! $TRAVIS_TAG ]] && [ "${TRAVIS_REPO_SLUG}" = "${UTPLSQL_REPO}" ]; then bash .travis/run_sonar_scanner.sh; fi
- if [[ ! $TRAVIS_TAG ]] && [ "${TRAVIS_REPO_SLUG}" = "${UTPLSQL_REPO}" ] && [ "${TRAVIS_PULL_REQUEST_SLUG}" = "${TRAVIS_REPO_SLUG}" ]; then bash .travis/run_sonar_scanner.sh; fi
- if [[ ! $TRAVIS_TAG ]]; then bash .travis/coveralls_uploader.sh; fi

notifications:
Expand Down
4 changes: 3 additions & 1 deletion .travis/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ var paramUsername = casper.cli.get(0);
var paramPassword = casper.cli.get(1);
var agreementUrl = casper.cli.get(2);
var downloadUrl = casper.cli.get(3);
var downloaded = false;

casper.start();
// TODO: Error handling.
Expand All @@ -41,10 +42,11 @@ casper.thenOpen(downloadUrl).waitForUrl(/signon\.jsp$/, function (re) {
});

casper.on("resource.received", function (resource) {
if (resource.url.indexOf("AuthParam") !== -1) {
if (resource.url.indexOf("AuthParam") !== -1 && !downloaded) {
// this.echo("DownloadUrl:");
// Print the download url.
this.echo(resource.url);
downloaded = true;
// TODO: Try to download file from here. this.download is not working because of cross site request.
}
});
Expand Down
7 changes: 4 additions & 3 deletions .travis/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ PRODUCT=""
# Then download the file using curl.
downloadFile() {
downloadUrl=$(exec casperjs download.js $ORACLE_OTN_USER $ORACLE_OTN_PASSWORD $1 $2)
downloadUrl=${downloadUrl%$'\r'}
echo "DownloadURL: $downloadUrl"
curl $downloadUrl -o $3
curl -o $3 -L "$downloadUrl"
}

#############################
Expand Down Expand Up @@ -60,8 +61,8 @@ fi

if [ "$PRODUCT" == "sqlcl" ]; then
agreementUrl="http://www.oracle.com/technetwork/developer-tools/sqlcl/downloads/index.html"
downloadUrl="http://download.oracle.com/otn/java/sqldeveloper/sqlcl-4.2.0.17.073.1038-no-jre.zip"
outputFile=sqlcl-4.2.0.17.073.1038-no-jre.zip
downloadUrl="https://download.oracle.com/otn/java/sqldeveloper/sqlcl-18.3.0.259.2029.zip"
outputFile=sqlcl-18.3.0.259.2029.zip
downloadFile $agreementUrl $downloadUrl $outputFile
exit 0
fi
Expand Down
98 changes: 43 additions & 55 deletions .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,60 +2,66 @@

cd source
set -ev

#install core of utplsql
"$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
time "$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
set feedback off
set verify off

alter session set plsql_warnings = 'ENABLE:ALL', 'DISABLE:(5004,5018,6000,6001,6003,6009,6010,7206)';
--alter session set plsql_warnings = 'ENABLE:ALL', 'DISABLE:(5004,5018,6000,6001,6003,6009,6010,7206)';
alter session set plsql_optimize_level=0;
@install_headless.sql $UT3_OWNER $UT3_OWNER_PASSWORD
SQL

#uninstall core of utplsql
"$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
set feedback off
set verify off

@uninstall_all.sql $UT3_OWNER
declare
v_leftover_objects_count integer;
begin
select sum(cnt)
into v_leftover_objects_count
from (select count(1) cnt from dba_objects where owner = '$UT3_OWNER'
union all
select count(1) cnt from dba_synonyms where table_owner = '$UT3_OWNER'
);
if v_leftover_objects_count > 0 then
raise_application_error(-20000, 'Not all objects were successfully uninstalled - leftover objects count='||v_leftover_objects_count);
end if;
end;
/
#Run this step only on second child job (12.1 - at it's fastest)
if [[ "${TRAVIS_JOB_NUMBER}" =~ \.2$ ]]; then

#check code-style for errors
time "$SQLCLI" $UT3_OWNER/$UT3_OWNER_PASSWORD@//$CONNECTION_STR @../development/utplsql_style_check.sql

#test install/uninstall process
time "$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
set feedback off
set verify off

@uninstall_all.sql $UT3_OWNER
declare
v_leftover_objects_count integer;
begin
select sum(cnt)
into v_leftover_objects_count
from (select count(1) cnt from dba_objects where owner = '$UT3_OWNER'
union all
select count(1) cnt from dba_synonyms where table_owner = '$UT3_OWNER'
);
if v_leftover_objects_count > 0 then
raise_application_error(-20000, 'Not all objects were successfully uninstalled - leftover objects count='||v_leftover_objects_count);
end if;
end;
/
SQL

#reinstall core of utplsql
"$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
set feedback off
set verify off
time "$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
set feedback off
set verify off

alter session set plsql_warnings = 'ENABLE:ALL', 'DISABLE:(5004,5018,6000,6001,6003,6009,6010,7206)';
@install.sql $UT3_OWNER
alter session set plsql_optimize_level=0;
@install.sql $UT3_OWNER
SQL

fi

#additional privileges to run scripted tests
"$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
time "$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
set feedback on
--needed for Mystats script to work
grant select any dictionary to $UT3_OWNER;
--Needed for testing a coverage outside ut3_owner.
grant create any procedure, drop any procedure, execute any procedure to $UT3_OWNER;

conn $UT3_OWNER/$UT3_OWNER_PASSWORD@//$CONNECTION_STR
@../development/utplsql_style_check.sql
SQL

#Create additional users
"$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
#Create user that will own the tests
time "$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
set feedback off
@create_utplsql_owner.sql $UT3_TESTER $UT3_TESTER_PASSWORD $UT3_TABLESPACE

Expand All @@ -70,29 +76,11 @@ grant create job to $UT3_TESTER;
exit
SQL

#additional privileges to run tests
"$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
set feedback on
--needed for Mystats script to work
grant select any dictionary to $UT3_OWNER;
--Needed for testing a coverage outside ut3_owner.
grant create any procedure, drop any procedure, execute any procedure to $UT3_OWNER;

exit
SQL

#Create additional users
"$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
#Create additional UT3$USER# to test for special characters
time "$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
set feedback off
@create_utplsql_owner.sql $UT3_USER $UT3_USER_PASSWORD $UT3_TABLESPACE

exit
SQL

#Grant UT3 framework to UT3$USER#
"$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
set feedback off
--Grant UT3 framework to UT3$USER#
@create_user_grants.sql $UT3_OWNER $UT3_USER

exit
SQL
2 changes: 1 addition & 1 deletion .travis/install_sqlcl.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

SQLCL_FILE=sqlcl-4.2.0.17.073.1038-no-jre.zip
SQLCL_FILE=sqlcl-18.3.0.259.2029.zip
cd .travis

# Download if not present on cache dir.
Expand Down
2 changes: 1 addition & 1 deletion .travis/install_utplsql_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ end;
SQL

"$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<SQL
alter session set plsql_warnings = 'ENABLE:ALL', 'DISABLE:(5004,5018,6000,6001,6003,6009,6010,7206)';
alter session set plsql_optimize_level=0;
@install_headless.sql ${UT3_RELEASE_VERSION_SCHEMA}
exit
SQL
Expand Down
7 changes: 5 additions & 2 deletions .travis/start_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ else
mkdir -p $HOME/.docker && cp $CACHE_DIR/.docker/config.json $HOME/.docker/
fi

docker pull $DOCKHER_HUB_REPO:$ORACLE_VERSION
df -h
time docker pull $DOCKHER_HUB_REPO:$ORACLE_VERSION
df -h
docker run -d --name $ORACLE_VERSION $DOCKER_OPTIONS -p 1521:1521 $DOCKHER_HUB_REPO:$ORACLE_VERSION
docker logs -f $ORACLE_VERSION | grep -m 1 "DATABASE IS READY TO USE!" --line-buffered
time docker logs -f $ORACLE_VERSION | grep -m 1 "DATABASE IS READY TO USE!" --line-buffered
df -h
9 changes: 7 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,18 @@ export CONNECTION_STR=127.0.0.1:1521/xe # Adjust the connect string
export ORACLE_PWD=oracle # Adjust your local SYS password
```

### Download Oracle JDBC drivers

Download `ojdbc8-xxx.jar` and `orai18n-xxx.jar` from [Oracle](https://www.oracle.com/technetwork/database/features/jdbc/jdbc-ucp-122-3110062.html).
Place them in `development` directory of the project.


### Download utPLSQL release sources and utplsq-cli

The below script is fetching latest release version from utPLSQL repository. Latest release version is used for self-testing.
```bash
development/refresh_sources.sh
```
> **Important notice:**
> You'll have to provide the ojdbc.jar in the folder utPLSQL-cli/lib manually due to Oracle licensing restrictions.

### Setup local database for utPLSQL development

Expand Down Expand Up @@ -175,6 +179,7 @@ We are using private docker images to test utPLSQL for our Travis CI builds. The
* 11g XE R2
* 12c SE R1
* 12c SE R2
* 18c SE

These images are based on the slimmed versions [official dockerfiles released by Oracle](https://github.com/utPLSQL/docker-scripts), but due to licensing restrictions, we can't make the images public.
You can build your own and use it locally, or push to a private docker repository.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.1.2
v3.1.3
1 change: 1 addition & 0 deletions development/refresh_sources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ curl -Lk -o utPLSQL-cli.zip https://github.com/utPLSQL/utPLSQL-cli/releases/down
# unzip utPLSQL-cli and remove the zip file
unzip utPLSQL-cli.zip && chmod u+x utPLSQL-cli/bin/utplsql && rm utPLSQL-cli.zip

cp development/*.jar utPLSQL-cli/lib/
3 changes: 2 additions & 1 deletion development/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ To create a release:
- wait for th build to complete successfully
- merge the release branch to master and wait for master build to complete successfully
- create a release from the master branch using [github releases page](https://github.com/utPLSQL/utPLSQL/releases) and populate release description using information found on the issues and pull requests since previous release.
To find issues closed after certain date use [advanced filters](https://help.github.com/articles/searching-issues-and-pull-requests/#search-by-open-or-closed-state)
To find issues closed after certain date use [advanced filters](https://help.github.com/articles/searching-issues-and-pull-requests/#search-by-open-or-closed-state).
Example: [`is:issue closed:>2018-07-22`](https://github.com/utPLSQL/utPLSQL/issues?utf8=%E2%9C%93&q=is%3Aissue+closed%3A%3E2018-07-22+)

The following will happen:
- build executed on branch `release/vX.Y.Z-[something]` updates files `sonar-project.properties`, `VERSION` with project version derived from the release branch name
Expand Down
2 changes: 1 addition & 1 deletion development/template.env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export SQLCLI=sql # For sqlcl client
#export SQLCLI=sqlplus # For sqlplus client
export CONNECTION_STR=127.0.0.1:1521/xe # Adjust the connect string
export ORACLE_PWD=oracle # Adjust your local SYS password
export UTPLSQL_CLI_VERSION="3.0.4"
export UTPLSQL_CLI_VERSION="3.1.0"
export SELFTESTING_BRANCH=develop

export UTPLSQL_DIR="utPLSQL_latest_release"
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ The framework follows industry standards and best patterns of modern Unit Testin
- [Expectations](userguide/expectations.md)
- [Advanced data comparison](userguide/advanced_data_comparison.md)
- [Running unit tests](userguide/running-unit-tests.md)
- [Querying for test suites](userguide/querying_suites.md)
- [Testing best pracitces](userguide/best-practices.md)
- [Upgrade utPLSQL](userguide/upgrade.md)
- Reporting
Expand Down
6 changes: 3 additions & 3 deletions docs/userguide/annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ We strongly recommend putting package level annotations at the very top of packa
| --- | --- | --- |
| `--%suite(<description>)` | Package | Mandatory. Marks package as a test suite. Optional suite description can be provided (see `displayname`). |
| `--%suitepath(<path>)` | Package | Similar to java package. The annotation allows logical grouping of suites into hierarchies. |
| `--%displayname(<description>)` | Package/procedure | Human-readable and meaningful description of a suite/test. `%displayname(Name of the suite/test)`. The annotation is provided for flexibility and convenience only. It has exactly the same meaning as `<description>` in `test` and `suite` annotations. If description is provided using both `suite`/`test` and `displayname`, then the one defined as last takes precedence. |
| `--%displayname(<description>)` | Package/procedure | Human-readable and meaningful description of a context/suite/test. Provides description to a `context` when used within `context`. When used with `test` or `suite` annotation, overrides the `<description>` provided with `suite`/`test`. |
| `--%test(<description>)` | Procedure | Denotes that the annotated procedure is a unit test procedure. Optional test description can by provided (see `displayname`). |
| `--%throws(<exception>[,...])`| Procedure | Denotes that the annotated test procedure must throw one of the exceptions provided. Supported forms of exceptions are: numeric literals, numeric contant names, exception constant names, predefined Oracle exception names. |
| `--%beforeall` | Procedure | Denotes that the annotated procedure should be executed once before all elements of the suite. |
Expand Down Expand Up @@ -1089,7 +1089,7 @@ create or replace package test_rooms_management is


--%context(remove_rooms_by_name)
--%description(Remove rooms by name)
--%displayname(Remove rooms by name)

--%test(Removes a room without content in it)
procedure remove_empty_room;
Expand All @@ -1102,7 +1102,7 @@ create or replace package test_rooms_management is


--%context(add_rooms_content)
--%description(Add content to a room)
--%displayname(Add content to a room)

--%test(Fails when room name is not valid)
--%throws(no_data_found)
Expand Down
Loading