-
Notifications
You must be signed in to change notification settings - Fork 67
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
Update tests to run on Maven 3.9 #17
Conversation
2750457
to
80dde7d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's wait for this one, until we get all the tests running.
We should move away from testng to junit and junit jupyter like Trino |
Do we want to merge this and migrate back to Junit later ? Seems like we could just use junit now .. or is there some obstacle @willmostly ? |
481ab86
to
1e31ca4
Compare
Updated to junit 5, @vishalya and I are going to look into the test logic to see why the Ldap tests are getting connection timeouts |
1e31ca4
to
fe816f6
Compare
gateway-ha/pom.xml
Outdated
<artifactId>mockito-all</artifactId> | ||
<version>1.10.19</version> | ||
<artifactId>mockito-core</artifactId> | ||
<version>5.3.1</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow .. thats a BIG jump
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah - this is the only usage of Mockito, so fortunately there wasn't anything holding us back. It is needed for junit 5 compatibility
@willmostly - I have that test working with some minor changes on top of yours, https://github.com/vishalya/trino-gateway/commits/working_test |
0ff4820
to
ec4f981
Compare
gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbFilter.java
Outdated
Show resolved
Hide resolved
db847c2
to
f0d2b3f
Compare
f0d2b3f
to
4264fb5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now. Code style and further migration to junit will be done in follow up PRs.
Tests that passed on 3.6 are failing on 3.9. It looks like this is potentially due to stricter handling of NPEs. These changes define methods in the stub classes to prevent NPEs in the authentication layer.