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

Projects
None yet
2 participants
@lwasylow
Copy link
Member

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 some commits Mar 22, 2019

Adding next set of tests migrated.
expectations/binary/test_equal
expectations/binary/test_expect_to_be_less_than
expectations/test_expectation_anydata
expectations/test_expectation_processor
Adding next set of tests migrated.
expectations/binary/test_be_less_or_equal

changing name of function to more meaningful.
Added set of tests:
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.
Adding set of tests :
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.
Fixed bug for deployments with uninstall included.
Added new user to `template.env.sh`
Merge branch 'feature/introduce_testing_with_accurate_grants' of gith…
…ub.com:utPLSQL/utPLSQL into feature/introduce_testing_with_accurate_grants
Adding set of tests:
api/test_ut_run
Adding set of tests:
api/test_ut_run
Adding set of tests:
api/test_ut_run
Adding set of tests:
core/annotations/test_annotation_parser
core/annotations/test_annot_throws_exception
core/annotations/test_annotation_manager
Adding set of tests:
core/test_ut_test
core/test_ut_utils
Adding set of tests:
core/test_ut_executable
core/test_ut_suite
Adding set of tests:
core/test_file_mapper
core/test_output_buffer
core/test_suite_manager
core/test_ut_executable
Adding tests
core/test_suite_builder
Adding tests:
reporters
reporters/test_junit_reporter
reporters/test_sonar_test_reporter
reporters/test_teamcity_reporter
reporters/test_tfs_junit_reporter
Adding set of tests:
reporters/test_coverage
reporters/test_debug_reporter
reporters/test_documentation_reporter
reporters/test_extended_coverage
reporters/test_realtime_reporter

Fixing some helper methods.
Adding extra tests:
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
Adding tests:
reporters/test_coverage
reporters/test_coverage/test_html_proftab_reporter
reporters/test_proftab_coverage
Fixing broken test.
Adding test:
reporters/test_coverage/test_html_extended_reporter
reporters/test_extended_coverage

lwasylow added some commits Apr 1, 2019

Adding test:
unary/test_expect_to_be_not_null

@lwasylow lwasylow requested review from jgebal and PhilippSalvisberg Apr 2, 2019

Show resolved Hide resolved development/cleanup.sh Outdated
Show resolved Hide resolved development/template.env.sh Outdated
Show resolved Hide resolved source/uninstall_objects.sql
@jgebal

This comment has been minimized.

Copy link
Member

commented Apr 3, 2019

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

@lwasylow

This comment has been minimized.

Copy link
Member Author

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

This comment has been minimized.

Copy link
Member

commented Apr 3, 2019

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

Fixed invalid suitepath in `core` package.
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 approved these changes Apr 3, 2019

@jgebal jgebal merged commit c8cc14a into develop Apr 3, 2019

4 checks passed

SonarCloud Code Analysis Quality Gate passed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
coverage/coveralls First build on feature/introduce_testing_with_accurate_grants at 94.75%
Details

@jgebal jgebal deleted the feature/introduce_testing_with_accurate_grants branch Apr 3, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.