Skip to content

Conversation

@hasegeli
Copy link
Member

@hasegeli hasegeli commented May 7, 2021

I gave a try to the tests and noticed a few failing. This fixes them so
"make test" runs successfully against Postgres 13.2 using the "postgres" user
under CentOS 8.

A few of the tests were expecting "No matching entries found" when called
with "--includeuser postgres --includeuser mycatbeda" and failing because
"postgres" owned objects were appearing in the result. I removed
"--includeuser postgres" option so they pass.

And there were 2 problems on the same_schema tests. Language change message
was not matching with the expected because the check was reporting multiple
differences not just the language. I changed the pattern to match with this.

Also, because the language appears as multiple differences,
"--filter=nolanguage" option of the same_schema check isn't working.
I commented it out for now. We can adress this separetely.

Copy link
Member

@jonjensen jonjensen left a comment

Choose a reason for hiding this comment

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

@hasegeli This mostly looks good to me. (Just code-reading, didn't try running it.)

The nolanguage option should be entirely removed IMO, not just commented out, since it looks like it was just incompletely removed in this commit:

commit 054c5796d69e203bc9070079347866d4c513c6a3
Author: Greg Sabino Mullane <greg@endpoint.com>
Date:   Wed Jun 29 22:24:53 2011 -0400

I see more nolanguage remnants that could be removed in git grep nolanguage.

hasegeli added 2 commits May 14, 2021 15:10
This feature is demoved by commit 054c579.
I gave a try to the tests and noticed a few failing.  This fixes them so
"make test" runs successfully against Postgres 13.2 using the "postgres" user
under CentOS 8.

A few of the tests were expecting "No matching entries found" when called
with "--includeuser postgres --includeuser mycatbeda" and failing because
"postgres" owned objects were appearing in the result.  I removed
"--includeuser postgres" option so they pass.

And there were 2 problems on the same_schema tests.  Language change message
was not matching with the expected because the check was reporting multiple
differences not just the language.  I changed the pattern to match with this.
@hasegeli
Copy link
Member Author

I removed --filter=nolanguage test, and merging this...

@hasegeli hasegeli merged commit bbc0249 into master May 14, 2021
@hasegeli hasegeli deleted the fixtests branch May 14, 2021 16:51
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.

3 participants