Skip to content
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

Feature/introduce testing with accurate grants #893

Merged
merged 36 commits into from Apr 3, 2019

Conversation

lwasylow
Copy link
Member

@lwasylow lwasylow commented Apr 2, 2019

Fixes #867
It introduces a new user ut3$user# that have minimum privileges and move all public API tests into that schema. User ut3_tester is a internal framework testing user who tests functions not exposed to public.
Last user is one that calls CLI and is elevated privileges user ut3_tester_helper this user is created for purpose of allowing setup and teardown some test data for other users as well as provide some methods used during expectations check.

lwasylow and others added 30 commits March 23, 2019 10:28
expectations/binary/test_equal
expectations/binary/test_expect_to_be_less_than
expectations/test_expectation_anydata
expectations/test_expectation_processor
expectations/binary/test_be_less_or_equal

changing name of function to more meaningful.
expectations/binary/test_be_greater_or_equal
expectations/binary/test_be_greater_than
expectations/unary/test_expect_not_to_be_null

Passing username implicit into ut_test_runner.
expectations/unary/test_expect_to_be_empty
expectations/unary/test_expect_to_be_null
expectations/unary/test_expect_to_be_true_false
expectations/unary/test_expect_to_have_count

Adding dummy type for testing.
Added new user to `template.env.sh`
…ub.com:utPLSQL/utPLSQL into feature/introduce_testing_with_accurate_grants
api/test_ut_run
api/test_ut_run
api/test_ut_run
core/annotations/test_annotation_parser
core/annotations/test_annot_throws_exception
core/annotations/test_annotation_manager
core/test_ut_test
core/test_ut_utils
core/test_ut_executable
core/test_ut_suite
core/test_file_mapper
core/test_output_buffer
core/test_suite_manager
core/test_ut_executable
core/test_suite_builder
reporters
reporters/test_junit_reporter
reporters/test_sonar_test_reporter
reporters/test_teamcity_reporter
reporters/test_tfs_junit_reporter
reporters/test_coverage
reporters/test_debug_reporter
reporters/test_documentation_reporter
reporters/test_extended_coverage
reporters/test_realtime_reporter

Fixing some helper methods.
reporters/test_coverage/test_cov_cobertura_reporter
reporters/test_coverage/test_coverage_sonar_reporter
reporters/test_coverage/test_coveralls_reporter
reporters/test_coverage/test_html_extended_reporter
reporters/test_coverage
reporters/test_coverage/test_html_proftab_reporter
reporters/test_proftab_coverage
Adding test:
reporters/test_coverage/test_html_extended_reporter
reporters/test_extended_coverage
development/cleanup.sh Outdated Show resolved Hide resolved
development/template.env.sh Outdated Show resolved Hide resolved
source/uninstall_objects.sql Show resolved Hide resolved
@jgebal
Copy link
Member

jgebal commented Apr 3, 2019

Only 6 tests are missing now - Develop has 799 tests: https://travis-ci.org/utPLSQL/utPLSQL/jobs/514642945#L6244

@lwasylow
Copy link
Member Author

lwasylow commented Apr 3, 2019

These missing ones are the minimum test user which are no longer required as the whole public api tests are minimal user

@jgebal
Copy link
Member

jgebal commented Apr 3, 2019

I'm doing a tiny change - will push it soon and we can go ahead with the PR

Updated cli version to 3.1.6
Added top package `utplsql` with dbms_output.enable for both test users.
Renamed suitepath to match username (ut3_tester)
@jgebal jgebal merged commit c8cc14a into develop Apr 3, 2019
@jgebal jgebal deleted the feature/introduce_testing_with_accurate_grants branch April 3, 2019 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants