Skip to content

Cannot install tests when using default user names as provided in template.env.sh #1200

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

Closed
PhilippSalvisberg opened this issue Mar 13, 2022 · 1 comment · Fixed by #1201
Closed
Assignees
Labels

Comments

@PhilippSalvisberg
Copy link
Member

Describe the bug

In template.env.sh the user name UT3$USER# is configured for ${UT3_USER}. In install_ut3_tester_helper.sql the user is hard coded. ut3_user is used.

When I use an env.sh based on template.env.sh and do not change the default users then running test/install_and_run_tests.sh produces an error while running this statement create or replace synonym ut3_user.coverage_helper for ut3_tester_helper.coverage_helper; because the user ut3_user does not exist.

Expected behavior

Installation of tests work when using the default usernames in template.env.sh.

Workaround

Configure export UT3_USER=UT3_USER in env.sh.

Off topic remark

I do not see a value in making the test users configurable. Quite the contrary. It makes the the test setup more complicated and also more fragile. Making the utPLSQL schema owner for production use configurable makes sense. But the testing users? - I don't think so.

@jgebal
Copy link
Member

jgebal commented Mar 13, 2022

Hi @PhilippSalvisberg
I agree with you on that one.
There is no need to have those configurable and having them hard-coded would make things much clearer.
It would be definitely good to clean this up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants