Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Release/v3.1.7 #946

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 237 commits into from
Jun 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
237 commits
Select commit Hold shift + click to select a range
2fca683
Test to verify there's a problem with cursor-comparison on 12.1
May 23, 2018
e528ebb
Typo
May 23, 2018
7a48278
Initial checkin
lwasylow Mar 14, 2019
95d9507
Merge branch 'develop' of https://github.com/utPLSQL/utPLSQL into fix…
lwasylow Mar 16, 2019
ad3ce10
Adding handling of xml error
lwasylow Mar 16, 2019
a697e1d
Merge branch 'develop' of https://github.com/utPLSQL/utPLSQL into fix…
lwasylow Mar 16, 2019
133ecae
Adding new API user.
lwasylow Mar 22, 2019
03cd30d
Updated `install.md`
jgebal Mar 24, 2019
405bb7c
Updated project version after build [skip ci]
Mar 24, 2019
9db8f4b
Separating tests.
lwasylow Mar 23, 2019
13f772a
Merge branch 'develop' of github.com:utPLSQL/utPLSQL into feature/int…
lwasylow Mar 24, 2019
c56943e
Update properties
lwasylow Mar 24, 2019
5afba10
Change user that executes tests as helper that is super user.
lwasylow Mar 24, 2019
4bd1d9c
Merge branch 'master' into develop
jgebal Mar 24, 2019
423bf33
Updated version to `3.1.7`
jgebal Mar 24, 2019
fab90fd
Updated project version after build [skip ci]
Mar 24, 2019
7cd92e7
Adding next set of tests migrated.
lwasylow Mar 24, 2019
f8d51bb
Merge branch 'develop' into feature/install_doc_fix
jgebal Mar 25, 2019
e2561bc
Adding next set of tests migrated.
lwasylow Mar 25, 2019
887e46a
Fixing test package
lwasylow Mar 25, 2019
28dbd1e
Added set of tests:
lwasylow Mar 25, 2019
d7eb125
Adding set of tests :
lwasylow Mar 25, 2019
99e1099
Adding schema prefix to failing tests from 12.1
lwasylow Mar 25, 2019
04cd36c
Fixing development scripts
lwasylow Mar 25, 2019
3e98723
Fixed bug for deployments with uninstall included.
jgebal Mar 25, 2019
7fc2133
Merge pull request #874 from utPLSQL/feature/install_doc_fix
jgebal Mar 25, 2019
76b0d56
Updated project version after build [skip ci]
Mar 26, 2019
ba83f8f
Merge branch 'feature/introduce_testing_with_accurate_grants' of gith…
lwasylow Mar 26, 2019
0bf1d9e
FIX : removal of non existing types from uninstall script
lwasylow Mar 26, 2019
e914d96
INSTALL:Is it too many monkeys ?:)
lwasylow Mar 26, 2019
23da3d7
Added support for random order of test execution.
jgebal Mar 19, 2019
174dcbc
Adding set of tests:
lwasylow Mar 26, 2019
0c05daf
Adding set of tests:
lwasylow Mar 26, 2019
10e2f86
Fixing one bad test.
jgebal Mar 27, 2019
4b9133e
Fixing issue with null vs null being returned as false.
lwasylow Mar 27, 2019
0a60686
Revert test
lwasylow Mar 27, 2019
b7a66da
Fixed bad test.
jgebal Mar 28, 2019
80783c3
Adding set of tests:
lwasylow Mar 28, 2019
c4b08af
Adding set of tests:
lwasylow Mar 28, 2019
0618616
Adding set of tests:
lwasylow Mar 28, 2019
29295b7
Adding set of tests:
lwasylow Mar 29, 2019
30b0cfe
Adding set of tests:
lwasylow Mar 29, 2019
3cc34ea
Adding tests
lwasylow Mar 29, 2019
a6a848d
Adding tests:
lwasylow Mar 30, 2019
7bae9ff
Fixed storage for clob in output bugger table - make it inline.
jgebal Mar 30, 2019
9d6bfe8
Improved performance for reading data from output buffer.
jgebal Mar 31, 2019
4d00c33
Increased read limit to 5000.
jgebal Mar 31, 2019
858372c
Adding set of tests:
lwasylow Mar 31, 2019
e1119c6
Split output buffers into two.
jgebal Mar 31, 2019
620fd61
Adding extra tests:
lwasylow Mar 31, 2019
e6b0673
Merge branch 'develop' of github.com:utPLSQL/utPLSQL into feature/int…
lwasylow Mar 31, 2019
9517808
Updated documentation for random order of test execution
jgebal Mar 31, 2019
c508e79
Adding tests:
lwasylow Apr 1, 2019
b734f86
Merge pull request #888 from utPLSQL/feature/two_output_buffers
PhilippSalvisberg Apr 1, 2019
1c0f892
Merge branch 'develop' into feature/random_order
jgebal Apr 1, 2019
bd3291b
Merge pull request #878 from utPLSQL/feature/random_order
jgebal Apr 1, 2019
25be0fd
Updated project version after build [skip ci]
Apr 1, 2019
858a675
Fixing broken test.
lwasylow Apr 1, 2019
1642f47
Adding test:
lwasylow Apr 1, 2019
30d27fe
Adding global setup
lwasylow Apr 1, 2019
4643b14
document how to avoid Oracle Bug 14402514 (see #891)
PhilippSalvisberg Apr 2, 2019
675ba70
Fixes #891 - use to_match instead of to_be_like to avoid Oracle bug 1…
PhilippSalvisberg Apr 2, 2019
3b07c6a
Merge branch 'develop' of github.com:utPLSQL/utPLSQL into feature/int…
lwasylow Apr 2, 2019
bb52422
Merge pull request #892 from utPLSQL/bugfix/issue_891
PhilippSalvisberg Apr 2, 2019
2381ee8
Updated project version after build [skip ci]
Apr 2, 2019
a8dfa14
Merge branch 'develop' of github.com:utPLSQL/utPLSQL into feature/int…
lwasylow Apr 2, 2019
5d3b18c
Update cleanup script after branching from random order branch
lwasylow Apr 2, 2019
b56d27a
Fixed invalid suitepath in `core` package.
jgebal Apr 3, 2019
c8cc14a
Merge pull request #893 from utPLSQL/feature/introduce_testing_with_a…
jgebal Apr 3, 2019
67be0f4
Updated project version after build [skip ci]
Apr 3, 2019
90eb8c9
Cursor error handling
lwasylow Apr 4, 2019
4ec49aa
Merge branch 'develop' of github.com:utPLSQL/utPLSQL into fix/cursor_…
lwasylow Apr 4, 2019
b56b8ef
Update tests for handling usr friendly error
lwasylow Apr 4, 2019
8c64d78
Applying fixes as per PR review.
lwasylow Apr 5, 2019
05efc5e
Cleanup whitespaces
lwasylow Apr 5, 2019
3f97b9e
fixing ORA-00907 when comparing ref cursors with BINARY_DOUBLE/BINRAY…
opendba Apr 6, 2019
5ab8cb9
fix/ORA-00907: adding simple testcase
opendba Apr 6, 2019
be21964
fix/ORA-00907: shortening test case name
opendba Apr 6, 2019
6538063
fix/ORA-00907: wrong schema name in test case check
opendba Apr 6, 2019
ce54eff
Merge pull request #898 from opendba/develop
lwasylow Apr 7, 2019
977c579
Updated project version after build [skip ci]
Apr 7, 2019
45d6e7a
Call stack differs based on version
lwasylow Apr 8, 2019
68ab56f
Merge branch 'develop' of github.com:utPLSQL/utPLSQL into fix/cursor_…
lwasylow Apr 8, 2019
0025dd9
Fix typo
lwasylow Apr 8, 2019
3428fa8
Update error lines
lwasylow Apr 8, 2019
80a46d0
Adding ROWID to list of types that do not provide a length.
lwasylow Apr 8, 2019
296102a
cleaning up tests
lwasylow Apr 8, 2019
b399115
Update tests
lwasylow Apr 8, 2019
b051324
testing wildcard, there is some unexpected white space that is not ap…
lwasylow Apr 8, 2019
10e651f
Fix : No length datatypes mapping. This is to address issue when Orac…
lwasylow Apr 9, 2019
a4a33fb
Update test
lwasylow Apr 10, 2019
f5331ac
Mysterious whitespace appears from time to time.
lwasylow Apr 12, 2019
a0f39e0
Merge pull request #896 from utPLSQL/fix/cursor_error_handling
lwasylow Apr 12, 2019
0e2eaa5
Updated project version after build [skip ci]
Apr 12, 2019
3bdd540
Fixing issue with a special column names non XML compliant (#903)
lwasylow Apr 14, 2019
421888e
Updated project version after build [skip ci]
Apr 14, 2019
96b8480
Adding trigger solution for annotation parsing.
jgebal Mar 15, 2019
7a56fe7
Fixed some issues with trigger
jgebal Mar 29, 2019
71b50f7
Fixed uninstall script and constant.
jgebal Mar 29, 2019
db8ef50
Removed commented code.
jgebal Apr 17, 2019
3058610
Added tags for tests and tags for suite.
lwasylow Apr 14, 2019
3495490
Switch to use VARCHAR2 instead of UT_VARCHAR2_ROWS()
lwasylow Apr 19, 2019
d2f9796
Switch to use VARCHAR2 instead of UT_VARCHAR2_ROWS()
lwasylow Apr 19, 2019
777a2af
Merge branch 'feature/tags' of github.com:utPLSQL/utPLSQL into featur…
lwasylow Apr 19, 2019
1fbf433
Fix/oracle bug with xmlspaces (#895)
lwasylow Apr 19, 2019
35dbe64
Updated project version after build [skip ci]
Apr 19, 2019
1a941a8
Adding Tests to tags #suitebuilder
lwasylow Apr 20, 2019
3a8ba8f
Change annotation to --%tags
lwasylow Apr 21, 2019
8ebb8b8
Fixing empty tags to use xmlgen
lwasylow Apr 21, 2019
a42e244
Adding tests for ut.run
lwasylow Apr 23, 2019
5ee8641
Added tests for ut.run procedure
lwasylow Apr 24, 2019
176519c
Added extra tests for ut run function
lwasylow Apr 24, 2019
b1f4a62
Fixing error message function
lwasylow Apr 24, 2019
dbbf197
Update docs
lwasylow Apr 24, 2019
f714499
Update docs and tests
lwasylow Apr 24, 2019
1774db5
Merge branch 'develop' of github.com:utPLSQL/utPLSQL into feature/tags
lwasylow Apr 24, 2019
a433753
Merge branch 'develop' into feature/tags
lwasylow Apr 24, 2019
4544240
Merge branch 'feature/tags' of github.com:utPLSQL/utPLSQL into featur…
lwasylow Apr 24, 2019
e575404
Fixes to PR comments
lwasylow Apr 25, 2019
632b64d
Fixes to PR comments
lwasylow Apr 25, 2019
66257d1
Updates to PR
lwasylow Apr 25, 2019
b1d99f3
Separated the install for trigger.
jgebal Apr 25, 2019
ddf3a7f
Phase 2 : switch to varchar_rows()
lwasylow Apr 26, 2019
e64f498
Number precision from dbms_sql not correct (#908)
lwasylow Apr 27, 2019
91112bc
Updated project version after build [skip ci]
Apr 27, 2019
e036629
add tests on 19c DB version
Pazus Apr 28, 2019
6d8b099
Phase 2 : switch to varchar_rows()
lwasylow Apr 26, 2019
957ea8b
Remove a 4k tests
lwasylow Apr 28, 2019
2a91551
Added constant
lwasylow Apr 28, 2019
612a30c
Merge branch 'develop' into feature/tags
lwasylow Apr 28, 2019
b508e18
Merge branch 'develop' of github.com:utPLSQL/utPLSQL into feature/tags
lwasylow Apr 28, 2019
43b27a6
Merge branch 'feature/tags' of github.com:utPLSQL/utPLSQL into featur…
lwasylow Apr 28, 2019
0e6f9b1
Merge pull request #909 from utPLSQL/19c-image
jgebal Apr 28, 2019
8a7bf6f
Updated project version after build [skip ci]
Apr 28, 2019
af42b6f
Merge remote-tracking branch 'origin/develop' into feature/ddl_trigge…
jgebal Apr 28, 2019
b2fcd95
Added-back rigger installation to CI/CD process.
jgebal Apr 28, 2019
cfcc7ba
Merge remote-tracking branch 'origin/develop' into bugfix/cursor_pack…
jgebal Apr 28, 2019
0fe4d85
Moved test to new package structure and improved test details.
jgebal Apr 28, 2019
63bc825
Fixed test to run only on 12 and above.
jgebal Apr 28, 2019
87ce4c7
Merge pull request #678 from utPLSQL/bugfix/cursor_package_type_numbe…
jgebal Apr 28, 2019
aaf73c7
Updated project version after build [skip ci]
Apr 28, 2019
b636830
Merge branch 'develop' of github.com:utPLSQL/utPLSQL into feature/tags
lwasylow Apr 28, 2019
00fe13e
Removed garbage after PR merge.
jgebal Apr 28, 2019
d00a0f7
Updates to PR.
lwasylow Apr 29, 2019
3164310
Move query to template to simplify view
lwasylow Apr 29, 2019
541809e
Updated project version after build [skip ci]
Apr 30, 2019
58f788b
Merge branch 'develop' of https://github.com/utPLSQL/utPLSQL into fea…
Apr 30, 2019
8ceb774
Fix to issue when column was removed from the middle of cursor using …
lwasylow May 8, 2019
f248f88
Fix typo
May 8, 2019
367958d
Make sure that order of the columns is kept when rewriting an order a…
May 8, 2019
525da02
Partition should not be across column name but a full table set.
May 8, 2019
e088211
Removal of row_number as its excessive we dont partition by any
lwasylow May 8, 2019
f76670f
fix message_id increment
Pazus May 10, 2019
40c64d6
the fix
Pazus May 10, 2019
8030a09
shorten test name
Pazus May 10, 2019
1b1d86c
fix type
Pazus May 10, 2019
0b0e6d1
Merge pull request #913 from utPLSQL/fix/exclude_column_position
jgebal May 10, 2019
584cfcd
Updated project version after build [skip ci]
May 10, 2019
b0bb4c3
Merge pull request #916 from utPLSQL/fix-message-id-in-output-buffer
jgebal May 10, 2019
f0c2bd8
Updated project version after build [skip ci]
May 10, 2019
4d7bc3d
Fixed issue with missing newlines in cobertura coverage for non-execu…
jgebal May 10, 2019
e1b562a
Merge pull request #918 from utPLSQL/feature/fix_cobertura_coverage_r…
jgebal May 11, 2019
467078f
Updated project version after build [skip ci]
May 11, 2019
ae982a6
Initial checkin
lwasylow May 11, 2019
791c56e
Merge branch 'develop' into fix/anydata_join_syntax
lwasylow May 12, 2019
e5d8011
Merge branch 'develop' of github.com:utPLSQL/utPLSQL into feature/tags
lwasylow May 12, 2019
0af108d
Failure details in sonar test reporter are now CDATA
jgebal May 23, 2019
02b89bd
Update ut_junit_reporter.tpb
jgebal May 23, 2019
bee9c22
Added handling of CDATA in failure messages for XML reporters.
jgebal May 23, 2019
7106a0e
Fixing PR comments.
lwasylow May 24, 2019
f66445b
Update docs with sample
lwasylow May 24, 2019
fbc5325
TAG: Phase2
May 24, 2019
7d27d3a
TAG: Phase2
May 24, 2019
8e4bd37
Merge branch 'fix/anydata_join_syntax' of https://github.com/utPLSQL/…
May 24, 2019
d609ee8
PHASE 2
May 24, 2019
d2fd0f2
Fixing unit test for Oracle 11.2 & 12.1
jgebal May 25, 2019
21a812d
Fixing code duplication
jgebal May 25, 2019
d6bbe04
Updated project version after build [skip ci]
May 31, 2019
9389074
Fixes #921 - Assert input params in dynamic SQL
PhilippSalvisberg Jun 1, 2019
246e96a
Merge pull request #931 from utPLSQL/bugfix/issue-921-assert-input-pa…
jgebal Jun 1, 2019
16ef15f
Updated project version after build [skip ci]
Jun 1, 2019
36e0801
Fixing sonar violation on duplicated code.
jgebal Jun 2, 2019
00f8584
Merge remote-tracking branch 'origin/develop' into feature/fix_sonar_…
jgebal Jun 2, 2019
5b8f7bd
Merge pull request #926 from utPLSQL/feature/fix_sonar_test_reporter
jgebal Jun 2, 2019
6918be7
Updated project version after build [skip ci]
Jun 2, 2019
7c46579
Merge remote-tracking branch 'origin/develop' into fix/anydata_join_s…
jgebal Jun 2, 2019
be7fd08
update tests to be less complicated
lwasylow Jun 4, 2019
0007298
Fixing encoding issue
lwasylow Jun 5, 2019
6e7f35c
Merge pull request #923 from utPLSQL/fix/anydata_join_syntax
jgebal Jun 5, 2019
8c7a008
Updated project version after build [skip ci]
Jun 5, 2019
d61a8c8
Merge remote-tracking branch 'origin/develop' into feature/tags
jgebal Jun 5, 2019
effb420
Renamed `gc_tag` to `gc_tags`
jgebal Jun 5, 2019
29d74a1
Merge remote-tracking branch 'origin/develop' into feature/ddl_trigge…
jgebal Jun 6, 2019
e897268
Merge pull request #906 from utPLSQL/feature/tags
jgebal Jun 6, 2019
df67dee
Updated project version after build [skip ci]
Jun 6, 2019
4d38af1
Fixed install of release until feature is merged back.
jgebal Jun 6, 2019
566093a
Enabled-back dbms_preprocessor
jgebal Jun 6, 2019
aa313e5
Fixed bug in parsing annotations from DDL trigger.
jgebal Jun 7, 2019
242b2a3
Fixed issues with parsing code through trigger.
jgebal Jun 8, 2019
a173b38
Fixed re-install of trigger.
jgebal Jun 8, 2019
94a1c23
Updated readme for installation with trigger.
jgebal Jun 9, 2019
8f6d6c2
Addressed review comments.
jgebal Jun 9, 2019
56803f7
Fixed issue with style check.
jgebal Jun 10, 2019
62d683a
Merge branch 'develop' into feature/cache_improvements
jgebal Jun 10, 2019
f56cc49
Merge pull request #901 from utPLSQL/feature/cache_improvements
jgebal Jun 10, 2019
e1a4e58
Updated project version after build [skip ci]
Jun 10, 2019
1af249a
Fixing sonar exclusions for analysis and coverage.
jgebal Jun 10, 2019
6fa038d
Merge pull request #933 from utPLSQL/feature/add_sonar_coverage_exclu…
jgebal Jun 10, 2019
75d2053
Updated project version after build [skip ci]
Jun 10, 2019
5f07682
Fixed output_buffer purging error.
jgebal Jun 12, 2019
bd14e43
Merge pull request #935 from utPLSQL/feature/fix_output_buffer_cleanup
PhilippSalvisberg Jun 12, 2019
910f29c
Updated project version after build [skip ci]
Jun 12, 2019
dc78df3
add test cases for warning texts in tests, suites
PhilippSalvisberg Jun 12, 2019
6dd53a9
implement new test cases and adapt existing ones
PhilippSalvisberg Jun 12, 2019
8aee0b0
emit warning texts on test and suite level
PhilippSalvisberg Jun 12, 2019
0be72e4
complete cleanup after run
PhilippSalvisberg Jun 12, 2019
5ccec8f
Merge pull request #937 from utPLSQL/feature/add_warnings_to_realtime…
jgebal Jun 13, 2019
c6c3af5
Updated project version after build [skip ci]
Jun 13, 2019
85942e9
Removed dependency on `dbms_utility.name_resolve`.
jgebal Jun 15, 2019
e0d6768
Fixed issue with parsing by trigger when source contains leading comm…
jgebal Jun 16, 2019
69c2393
Fixed typo.
jgebal Jun 16, 2019
a0e98ed
Improved time needed for clob-to-table conversion.
jgebal Jun 16, 2019
8defe56
Resolved issues with regex for DDL trigger processing.
jgebal Jun 16, 2019
4014b1f
Adressed review comment.
jgebal Jun 16, 2019
780cfc0
Fixed typo.
jgebal Jun 16, 2019
823893c
Merge branch 'develop' into feature/remove_dbms_utility_name_resolve
jgebal Jun 16, 2019
f8e42da
Merge pull request #939 from utPLSQL/feature/remove_dbms_utility_name…
jgebal Jun 16, 2019
b8de3ed
Merge branch 'develop' into feature/fix_ddl_triger_parser
jgebal Jun 17, 2019
8fd5eb9
Updated project version after build [skip ci]
Jun 17, 2019
683eef3
Merge pull request #940 from utPLSQL/feature/fix_ddl_triger_parser
jgebal Jun 17, 2019
1205ff4
Updated project version after build [skip ci]
Jun 17, 2019
ba2e765
Feature/json object (#928)
lwasylow Jun 17, 2019
b324586
Updated project version after build [skip ci]
Jun 17, 2019
273fd94
Update readme.md
jgebal Jun 17, 2019
27242af
Updated copyright year
jgebal Jun 17, 2019
e66e134
Updated project version after build [skip ci]
Jun 17, 2019
46aa443
Updated `releasing.md`
jgebal Jun 18, 2019
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
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ env:
- UT3_USER_PASSWORD=ut3
- UT3_TESTER=ut3_tester
- UT3_TESTER_PASSWORD=ut3
- UT3_TESTER_HELPER=ut3_tester_helper
- UT3_TESTER_HELPER_PASSWORD=ut3
- UT3_TABLESPACE=users
# Environment for building a release
- CURRENT_BRANCH=${TRAVIS_BRANCH}
Expand All @@ -45,7 +47,7 @@ env:
#utPLSQL released version directory
- UTPLSQL_DIR="utPLSQL_latest_release"
- SELFTESTING_BRANCH=${TRAVIS_BRANCH}
- UTPLSQL_CLI_VERSION="3.1.0"
- UTPLSQL_CLI_VERSION="3.1.6"
# Maven
- MAVEN_HOME=/usr/local/maven
- MAVEN_CFG=$HOME/.m2
Expand All @@ -54,6 +56,7 @@ env:
- 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"
- ORACLE_VERSION="${DOCKER_TAG_19:-19c-se2-small}" CONNECTION_STR='127.0.0.1:1521/ORCLCDB' DOCKER_OPTIONS="-v /dev/pdbs:/opt/oracle/oradata/pdbs"

cache:
pip: true
Expand Down
48 changes: 32 additions & 16 deletions .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set verify off

--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
@install_headless_with_trigger.sql $UT3_OWNER $UT3_OWNER_PASSWORD
SQL

#Run this step only on second child job (12.1 - at it's fastest)
Expand All @@ -25,14 +25,18 @@ if [[ "${TRAVIS_JOB_NUMBER}" =~ \.2$ ]]; then
set verify off

@uninstall_all.sql $UT3_OWNER
whenever sqlerror exit failure rollback
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'
from (
select count(1) cnt from dba_objects where owner = '$UT3_OWNER'
where object_name not like 'PLSQL_PROFILER%' and object_name not like 'DBMSPCC_%'
union all
select count(1) cnt from dba_synonyms where table_owner = '$UT3_OWNER'
where table_name not like 'PLSQL_PROFILER%' and table_name not like 'DBMSPCC_%'
);
if v_leftover_objects_count > 0 then
raise_application_error(-20000, 'Not all objects were successfully uninstalled - leftover objects count='||v_leftover_objects_count);
Expand All @@ -47,6 +51,8 @@ SQL

alter session set plsql_optimize_level=0;
@install.sql $UT3_OWNER
@install_ddl_trigger.sql $UT3_OWNER
@create_synonyms_and_grants_for_public.sql $UT3_OWNER
SQL

fi
Expand All @@ -60,27 +66,37 @@ grant select any dictionary to $UT3_OWNER;
grant create any procedure, drop any procedure, execute any procedure to $UT3_OWNER;
SQL

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

--needed for testing distributed transactions
grant create public database link to $UT3_TESTER;
grant drop public database link to $UT3_TESTER;
set feedback on
--Needed for testing coverage outside of main UT3 schema.
grant create any procedure, drop any procedure, execute any procedure, create any type, drop any type, execute any type, under any type, select any table, update any table, insert any table, delete any table, create any table, drop any table, alter any table, select any dictionary to $UT3_TESTER;
revoke execute on dbms_crypto from $UT3_TESTER;
grant create job to $UT3_TESTER;
--needed for disabling DDL trigger and testint parser without trigger enabled/present
grant alter any trigger to ut3_tester;
grant administer database trigger to $UT3_TESTER;
exit
SQL

#Create additional UT3$USER# to test for special characters
#Create additional UT3$USER# to test for special characters and front end API testing
time "$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
set feedback off
@create_utplsql_owner.sql $UT3_USER $UT3_USER_PASSWORD $UT3_TABLESPACE
--Grant UT3 framework to UT3$USER#
--Grant UT3 framework to min user
@create_user_grants.sql $UT3_OWNER $UT3_USER
exit
SQL

#Create additional UT3_TESTER_HELPER that will provide a functions to allow min grant test user setup test
time "$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
set feedback off
@create_utplsql_owner.sql $UT3_TESTER_HELPER $UT3_TESTER_HELPER_PASSWORD $UT3_TABLESPACE
--needed for testing distributed transactions
grant create public database link to $UT3_TESTER_HELPER;
grant drop public database link to $UT3_TESTER_HELPER;
set feedback on
--Needed for testing coverage outside of main UT3 schema.
grant create any procedure, drop any procedure, execute any procedure, create any type, drop any type, execute any type, under any type, select any table, update any table, insert any table, delete any table, create any table, drop any table, alter any table, select any dictionary, create any synonym, drop any synonym to $UT3_TESTER_HELPER;
grant create job to $UT3_TESTER_HELPER;
--Needed to allow for enable/disable of annotation triggers
grant administer database trigger to $UT3_TESTER_HELPER;
exit
SQL
7 changes: 6 additions & 1 deletion .travis/install_utplsql_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,14 @@ end;
/
SQL

INSTALL_FILE="install_headless_with_trigger.sql"
if [[ ! -f "${INSTALL_FILE}" ]]; then
INSTALL_FILE="install_headless.sql"
fi

"$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<SQL
alter session set plsql_optimize_level=0;
@install_headless.sql ${UT3_RELEASE_VERSION_SCHEMA}
@${INSTALL_FILE} ${UT3_RELEASE_VERSION_SCHEMA}
exit
SQL

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2016 utPLSQL Project
Copyright 2016 - 2019 utPLSQL Project

Licensed under the Apache License, Version 2.0 (the "License"):
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.1.6
v3.1.7
5 changes: 3 additions & 2 deletions development/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@ end;
drop user ${UT3_OWNER} cascade;
drop user ${UT3_RELEASE_VERSION_SCHEMA} cascade;
drop user ${UT3_TESTER} cascade;
drop user ${UT3_TESTER_HELPER} cascade;
drop user ${UT3_USER} cascade;

begin
for i in (
select decode(owner,'PUBLIC','drop public synonym "','drop synonym "'||owner||'"."')|| synonym_name ||'"' drop_orphaned_synonym from dba_synonyms a
select decode(owner,'PUBLIC','drop public synonym "','drop synonym "'||owner||'"."')|| synonym_name ||'"' drop_orphaned_synonym, owner||'.'||synonym_name syn from dba_synonyms a
where not exists (select 1 from dba_objects b where (a.table_name=b.object_name and a.table_owner=b.owner or b.owner='SYS' and a.table_owner=b.object_name) )
and a.table_owner not in ('SYS','SYSTEM')
) loop
dbms_output.put_line(i.drop_orphaned_synonym);
execute immediate i.drop_orphaned_synonym;
dbms_output.put_line('synonym '||i.syn||' dropped');
end loop;
end;
/
Expand Down
10 changes: 6 additions & 4 deletions development/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,20 @@ To create a release:
- create release branch from development branch and make sure to name the release branch: `release/vX.Y.Z`
- update, commit and push at least one file change in the release branch, to kickoff a Travis build
- 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.
- merge the release branch to master and wait for master build to complete successfully (do not use Squash/rebase for merge operation)
- create a Github 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).
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+)
- After release was successfully built, merge master branch back into develop branch
- After A build was completed on a TAG (github release) was successful, merge master branch back into develop branch.
- At this point, master branch and release tag should be at the same commit version and artifacts should be uploaded into Github release.
- After develop branch was built, update version number in `VERSION` file to represent next planned release version.
- Clone `utplsql.githug.io` project and add a new announcement about next version being released in `_posts`. Use previous announcements as a template. Make sure to set date, time and post title properly.

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
- changes to those two files are committed and pushed back to release branch by Travis
- when a release is created, a new tag is added in on the repository and a tag build is executed
- builds on master branch are **not getting executed**
- when a Github release is created, a new tag is added in on the repository and a tag build is executed
- the documentation for new release is published on `utplsql.github.io` and installation archives are added to the tag.

Note:
Expand Down
5 changes: 3 additions & 2 deletions 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.1.0"
export UTPLSQL_CLI_VERSION="3.1.6"
export SELFTESTING_BRANCH=develop

export UTPLSQL_DIR="utPLSQL_latest_release"
Expand All @@ -13,7 +13,8 @@ export UT3_OWNER_PASSWORD=ut3
export UT3_RELEASE_VERSION_SCHEMA=ut3_latest_release
export UT3_TESTER=ut3_tester
export UT3_TESTER_PASSWORD=ut3
export UT3_TESTER_HELPER=ut3_tester_helper
export UT3_TESTER_HELPER_PASSWORD=ut3
export UT3_TABLESPACE=users
export UT3_USER="UT3\$USER#"
export UT3_USER_PASSWORD=ut3

4 changes: 2 additions & 2 deletions development/utplsql_style_check.sql
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ select i.name, i.type, i.object_name, i.object_type, i.usage, i.line, i.col, cou
and i.usage_context_id = p.usage_id
where i.type like 'VARIABLE' and i.usage = 'DECLARATION'
and i.object_type not in ('TYPE')
and (i.name not like 'L#_%' escape '#' and p.type in ('PROCEDURE','FUNCTION','ITERATOR')
or i.name not like 'G#_%' escape '#' and p.type not in ('PROCEDURE','FUNCTION','ITERATOR'))
and (i.name not like 'L#_%' escape '#' and p.type in ('PROCEDURE','FUNCTION','ITERATOR','TRIGGER')
or i.name not like 'G#_%' escape '#' and p.type not in ('PROCEDURE','FUNCTION','ITERATOR','TRIGGER'))
and p.type != 'RECORD'
order by object_name, object_type, line, col
;
Expand Down
2 changes: 1 addition & 1 deletion docs/about/authors.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![version](https://img.shields.io/badge/version-v3.1.6.2729-blue.svg)
![version](https://img.shields.io/badge/version-v3.1.7.3085-blue.svg)

### utPLSQL v3 Major Contributors

Expand Down
2 changes: 1 addition & 1 deletion docs/about/license.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![version](https://img.shields.io/badge/version-v3.1.6.2729-blue.svg)
![version](https://img.shields.io/badge/version-v3.1.7.3085-blue.svg)

# Version Information

Expand Down
2 changes: 1 addition & 1 deletion docs/about/project-details.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![version](https://img.shields.io/badge/version-v3.1.6.2729-blue.svg)
![version](https://img.shields.io/badge/version-v3.1.7.3085-blue.svg)

# utPLSQL Project Details

Expand Down
2 changes: 1 addition & 1 deletion docs/about/support.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![version](https://img.shields.io/badge/version-v3.1.6.2729-blue.svg)
![version](https://img.shields.io/badge/version-v3.1.7.3085-blue.svg)

# How to get support

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![version](https://img.shields.io/badge/version-v3.1.6.2729-blue.svg)
![version](https://img.shields.io/badge/version-v3.1.7.3085-blue.svg)

# Introduction to utPLSQL

Expand Down
88 changes: 85 additions & 3 deletions docs/userguide/advanced_data_comparison.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![version](https://img.shields.io/badge/version-v3.1.6.2729-blue.svg)
![version](https://img.shields.io/badge/version-v3.1.7.3085-blue.svg)

# Advanced data comparison

Expand All @@ -7,10 +7,11 @@ utPLSQL expectations incorporates advanced data comparison options when comparin
- refcursor
- object type
- nested table and varray
- json data-types

Advanced data-comparison options are available for the [`equal`](expectations.md#equal) and [`contain`](expectations.md#include--contain) matcher.

## Syntax
Syntax

```
ut.expect( a_actual {data-type} ).to_( equal( a_expected {data-type})[.extendend_option()[.extendend_option()[...]]]);
Expand Down Expand Up @@ -126,6 +127,85 @@ end;

```

Example of `include / exclude` for anydata.convertCollection

```plsql
create or replace type person as object(
name varchar2(100),
age integer
)
/
create or replace type people as table of person
/

create or replace package ut_anydata_inc_exc IS

--%suite(Anydata)

--%test(Anydata include)
procedure ut_anydata_test_inc;

--%test(Anydata exclude)
procedure ut_anydata_test_exc;

--%test(Fail on age)
procedure ut_fail_anydata_test;

end ut_anydata_inc_exc;
/

create or replace package body ut_anydata_inc_exc IS

procedure ut_anydata_test_inc IS
l_actual people := people(person('Matt',45));
l_expected people :=people(person('Matt',47));
begin
ut3.ut.expect(anydata.convertCollection(l_actual)).to_equal(anydata.convertCollection(l_expected)).include('NAME');
end;

procedure ut_anydata_test_exc IS
l_actual people := people(person('Matt',45));
l_expected people :=people(person('Matt',47));
begin
--Arrange
ut3.ut.expect(anydata.convertCollection(l_actual)).to_equal(anydata.convertCollection(l_expected)).exclude('AGE');
end;

procedure ut_fail_anydata_test IS
l_actual people := people(person('Matt',45));
l_expected people :=people(person('Matt',47));
begin
--Arrange
ut3.ut.expect(anydata.convertCollection(l_actual)).to_equal(anydata.convertCollection(l_expected)).include('AGE');
end;

end ut_anydata_inc_exc;
/

```

will result in :

```sql
Anydata
Anydata include [.044 sec]
Anydata exclude [.035 sec]
Fail on age [.058 sec] (FAILED - 1)

Failures:

1) ut_fail_anydata_test
Actual: ut3.people [ count = 1 ] was expected to equal: ut3.people [ count = 1 ]
Diff:
Rows: [ 1 differences ]
Row No. 1 - Actual: <AGE>45</AGE>
Row No. 1 - Expected: <AGE>47</AGE>
```



Example of exclude

Only the columns 'RN', "A_Column" will be compared. Column 'SOME_COL' is excluded.

This option can be useful in scenarios where you need to narrow-down the scope of test so that the test is only focused on very specific data.
Expand Down Expand Up @@ -351,7 +431,7 @@ Unable to join sets:
Please make sure that your join clause is not refferring to collection element
```

***Note***
**Note**
>`join_by` option is slower to process as it needs to perform a cursor join.

## Defining item lists in option
Expand Down Expand Up @@ -424,3 +504,5 @@ Finished in .046193 seconds
1 tests, 0 failed, 0 errored, 0 disabled, 0 warning(s)
```



Loading