Skip to content

Conversation

@afig
Copy link
Contributor

@afig afig commented Jun 23, 2018

This PR updates the privilege tests to also test privileges on newly added functions. The tests are still not perfect, but they are gradually improving.

In addition to expanding the objects tested, the main script has also been updated to not require the user to enter a password for every connection to the database. The tests also store who the original user was rather than assuming it was the postgres role. Thanks to work that @srrollo and @smurthys performed in PR #214 for these fixes.

Closes: #207, Closes: #222

afig added 6 commits June 22, 2018 18:31
Starts adding tests to the privileges test suite in regards to the new teams functionality. More work still needs to be done.
Uses psql's \setenv flag to automatically set a password for the user being connected with.

The original user is now stored instead of assuming the postgres user.
Involved fixing typos, updating API, and removing type casting to prevent a NOTICE from being raised.
Copy link
Contributor

@KevinKelly25 KevinKelly25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the privilege tests pass/fail as expected for me. Looks good to merge

Copy link
Contributor

@wildtayne wildtayne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything here looks good to merge, thanks.

Copy link
Member

@smurthys smurthys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to merge. Thanks @afig for making the changes.

@afig afig changed the title Update and improve privilege tests to (M3) Update and improve privilege tests (M3) Jun 23, 2018
@afig
Copy link
Contributor Author

afig commented Jun 23, 2018

Thanks for the reviews everyone.

@afig afig merged commit c86f7a9 into dev Jun 23, 2018
@afig afig deleted the update-privilege-tests-m3 branch August 17, 2018 20:15
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.

Add Teams to ClassDB Testing scripts require a user to correctly type in a password (N)

5 participants