Skip to content

Release/v3.1.5 #868

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 11 commits into from
Mar 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis/push_release_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ if [ "${TRAVIS_REPO_SLUG}" = "${UTPLSQL_REPO}" ] && [ "$TRAVIS_PULL_REQUEST" ==
git add sonar-project.properties
git add VERSION
git add source/*
git add docs/*
git commit -m 'Updated project version after build [skip ci]'
echo "Pushing to origin"
git push --quiet origin HEAD:${CURRENT_BRANCH}
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.1.4
v3.1.5
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.4.2223--develop-blue.svg)
![version](https://img.shields.io/badge/version-v3.1.5.2707-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.4.2223--develop-blue.svg)
![version](https://img.shields.io/badge/version-v3.1.5.2707-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.4.2223--develop-blue.svg)
![version](https://img.shields.io/badge/version-v3.1.5.2707-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.4.2223--develop-blue.svg)
![version](https://img.shields.io/badge/version-v3.1.5.2707-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.4.2223--develop-blue.svg)
![version](https://img.shields.io/badge/version-v3.1.5.2707-blue.svg)

# Introduction to utPLSQL

Expand Down
2 changes: 1 addition & 1 deletion 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.4.2223--develop-blue.svg)
![version](https://img.shields.io/badge/version-v3.1.5.2707-blue.svg)

# Advanced data comparison

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

# Annotations

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

# Best Practices

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

# Coverage
utPLSQL comes with a built-in coverage reporting engine. The code coverage reporting is based on the DBMS_PROFILER package provided with Oracle database.
Expand Down
2 changes: 1 addition & 1 deletion docs/userguide/exception-reporting.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![version](https://img.shields.io/badge/version-v3.1.4.2223--develop-blue.svg)
![version](https://img.shields.io/badge/version-v3.1.5.2707-blue.svg)

# Exception handling and reporting

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

# Expectation concepts
Validation of the code under test (the tested logic of procedure/function etc.) is performed by comparing the actual data against the expected data.
Expand Down
2 changes: 1 addition & 1 deletion docs/userguide/getting-started.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![version](https://img.shields.io/badge/version-v3.1.4.2223--develop-blue.svg)
![version](https://img.shields.io/badge/version-v3.1.5.2707-blue.svg)

# Getting started with TDD and utPLSQL

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

# Downloading latest version of utPLSQL

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

# Qyerying for test suites

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

utPLSQL provides the following reporting formats.

Expand Down
2 changes: 1 addition & 1 deletion docs/userguide/running-unit-tests.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![version](https://img.shields.io/badge/version-v3.1.4.2223--develop-blue.svg)
![version](https://img.shields.io/badge/version-v3.1.5.2707-blue.svg)

# Running tests

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

# Upgrading from version 2

Expand Down
3 changes: 2 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sonar.projectKey=utPLSQL
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
sonar.projectName=utPLSQL
sonar.projectVersion=v3.1.4
sonar.projectVersion=v3.1.5

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# Since SonarQube 4.2, this property is optional if sonar.modules is set.
Expand All @@ -19,6 +19,7 @@ sonar.projectDescription=PL/SQL Unit Testing Framework
sonar.plsql.file.suffixes=sql,tab,pkb,tpb
sonar.language=plsql


sonar.exclusions=create_synonyms_and_grants_for_public.sql, create_user_grants.sql, create_user_synonyms.sql, create_utplsql_owner.sql, define_ut3_owner_param.sql, install.sql, install_above_12_1.sql, install_component.sql, install_headless.sql, uninstall.sql, uninstall_all.sql, uninstall_coverage_tables.sql

sonar.pullrequest.provider=github
Expand Down
2 changes: 1 addition & 1 deletion source/core/ut_utils.pks
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ create or replace package ut_utils authid definer is
*
*/

gc_version constant varchar2(50) := 'v3.1.4.2692';
gc_version constant varchar2(50) := 'v3.1.5.2707';

subtype t_executable_type is varchar2(30);
gc_before_all constant t_executable_type := 'beforeall';
Expand Down
4 changes: 4 additions & 0 deletions source/create_synonyms_and_grants_for_public.sql
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ grant select, insert, delete, update on &&ut3_owner..dbmspcc_units to public;
grant execute on &&ut3_owner..ut_matcher_options to public;
grant execute on &&ut3_owner..ut_matcher_options_items to public;
grant execute on &&ut3_owner..ut_run_info to public;
grant execute on &&ut3_owner..ut_cursor_column_tab to public;
grant execute on &&ut3_owner..ut_cursor_details to public;

prompt Creating synonyms for UTPLSQL objects in &&ut3_owner schema to PUBLIC

Expand Down Expand Up @@ -167,3 +169,5 @@ create public synonym dbmspcc_blocks for &&ut3_owner..dbmspcc_blocks;
create public synonym dbmspcc_runs for &&ut3_owner..dbmspcc_runs;
create public synonym dbmspcc_units for &&ut3_owner..dbmspcc_units;
create public synonym ut_run_info for &&ut3_owner..ut_run_info;
create public synonym ut_cursor_column_tab for &&ut3_owner..ut_cursor_column_tab;
create public synonym ut_cursor_details for &&ut3_owner..ut_cursor_details;
3 changes: 2 additions & 1 deletion source/create_user_grants.sql
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,5 @@ grant select, insert, delete, update on &&ut3_owner..dbmspcc_units to &ut3_user;
grant execute on &&ut3_owner..ut_matcher_options to &ut3_user;
grant execute on &&ut3_owner..ut_matcher_options_items to &ut3_user;
grant execute on &&ut3_owner..ut_run_info to &ut3_user;

grant execute on &&ut3_owner..ut_cursor_column_tab to &ut3_user;
grant execute on &&ut3_owner..ut_cursor_details to &ut3_user;
2 changes: 2 additions & 0 deletions source/create_user_synonyms.sql
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,5 @@ create or replace synonym &ut3_user..dbmspcc_blocks for &&ut3_owner..dbmspcc_blo
create or replace synonym &ut3_user..dbmspcc_runs for &&ut3_owner..dbmspcc_runs;
create or replace synonym &ut3_user..dbmspcc_units for &&ut3_owner..dbmspcc_units;
create or replace synonym &ut3_user..ut_run_info for &&ut3_owner..ut_run_info;
create or replace synonym &ut3_user..ut_cursor_column_tab for &&ut3_owner..ut_cursor_column_tab;
create or replace synonym &ut3_user..ut_cursor_details for &&ut3_owner..ut_cursor_details;
75 changes: 60 additions & 15 deletions test/core/min_grant_user/test_min_grant_user.pkb
Original file line number Diff line number Diff line change
@@ -1,15 +1,60 @@
create or replace package body test_min_grant_user is

procedure test_join_by_cursor is
l_results clob;
begin
execute immediate 'begin ut3$user#.test_cursor_grants.run(); end;';
l_results := core.get_dbms_output_as_clob();
--Assert
ut.expect( l_results ).to_be_like( '%execute join by test [% sec]' ||
'%1 tests, 0 failed, 0 errored, 0 disabled, 0 warning(s)%' );

end;

end;
/
create or replace package body test_min_grant_user is

procedure test_join_by_cursor is
l_results clob;
begin
execute immediate 'begin ut3$user#.test_cursor_grants.run_test_join_by_cursor(); end;';
l_results := core.get_dbms_output_as_clob();
--Assert
ut.expect( l_results ).to_be_like( '%execute join by test [% sec]' ||
'%1 tests, 0 failed, 0 errored, 0 disabled, 0 warning(s)%' );

end;

procedure test_equal_cursor is
l_results clob;
begin
execute immediate 'begin ut3$user#.test_cursor_grants.run_test_equal_cursor(); end;';
l_results := core.get_dbms_output_as_clob();
--Assert
ut.expect( l_results ).to_be_like( '%execute equal test [% sec]' ||
'%1 tests, 0 failed, 0 errored, 0 disabled, 0 warning(s)%' );

end;

procedure test_not_empty_cursor is
l_results clob;
begin
execute immediate 'begin ut3$user#.test_cursor_grants.run_test_not_empty_cursor(); end;';
l_results := core.get_dbms_output_as_clob();
--Assert
ut.expect( l_results ).to_be_like( '%execute not_empty test [% sec]' ||
'%1 tests, 0 failed, 0 errored, 0 disabled, 0 warning(s)%' );

end;


procedure test_have_count_cursor is
l_results clob;
begin
execute immediate 'begin ut3$user#.test_cursor_grants.run_test_have_count_cursor(); end;';
l_results := core.get_dbms_output_as_clob();
--Assert
ut.expect( l_results ).to_be_like( '%execute have_count test [% sec]' ||
'%1 tests, 0 failed, 0 errored, 0 disabled, 0 warning(s)%' );

end;

procedure test_empty_cursor is
l_results clob;
begin
execute immediate 'begin ut3$user#.test_cursor_grants.run_test_empty_cursor(); end;';
l_results := core.get_dbms_output_as_clob();
--Assert
ut.expect( l_results ).to_be_like( '%execute empty test [% sec]' ||
'%1 tests, 0 failed, 0 errored, 0 disabled, 0 warning(s)%' );

end;

end;
/
32 changes: 22 additions & 10 deletions test/core/min_grant_user/test_min_grant_user.pks
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
create or replace package test_min_grant_user is

--%suite(minimum grant user tests)
--%suitepath(utplsql.core)

--%test(execute join by test)
procedure test_join_by_cursor;

end;
/
create or replace package test_min_grant_user is

--%suite(minimum grant user tests)
--%suitepath(utplsql.core)

--%test(execute join by test)
procedure test_join_by_cursor;

--%test(execute equal test)
procedure test_equal_cursor;

--%test(execute not_empty test)
procedure test_not_empty_cursor;

--%test(execute have_count test)
procedure test_have_count_cursor;

--%test(execute empty test)
procedure test_empty_cursor;

end;
/
5 changes: 4 additions & 1 deletion test/helpers/test_dummy_object.tps
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ create or replace type test_dummy_object as object (
"name" varchar2(30),
"Value" varchar2(30)
)
/
/


grant execute on test_dummy_object to ut3$user#;
2 changes: 2 additions & 0 deletions test/helpers/test_dummy_object_list.tps
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
create or replace type test_dummy_object_list as table of test_dummy_object
/

grant execute on test_dummy_object_list to ut3$user#;
Loading