-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Move test to AbstractTestHiveFileSystem
#18172
Move test to AbstractTestHiveFileSystem
#18172
Conversation
9093996
to
eb4f75a
Compare
eb4f75a
to
29762b5
Compare
plugin/trino-hive/src/test/java/io/trino/plugin/hive/AbstractTestHiveFileSystem.java
Show resolved
Hide resolved
plugin/trino-hive/src/test/java/io/trino/plugin/hive/AbstractTestHiveFileSystem.java
Show resolved
Hide resolved
29762b5
to
a0fbbaa
Compare
plugin/trino-hive-hadoop2/src/test/java/io/trino/plugin/hive/AbstractTestHiveFileSystemS3.java
Outdated
Show resolved
Hide resolved
plugin/trino-hive-hadoop2/src/test/java/io/trino/plugin/hive/AbstractTestHiveFileSystemS3.java
Show resolved
Hide resolved
.map(Path::new) | ||
.toList(); | ||
// Should not include any hidden files, folders, or nested files | ||
assertEqualsIgnoreOrder(shallowListing, ImmutableList.of()); |
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.
Maybe it would be good to have at least one non hidden file on this level to check if it's listed?
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.
In such a case, the file would pop up in the listing.
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.
Yes, the idea is to test listening on top level.
assertEqualsIgnoreOrder(shallowListing, ImmutableList.of()); | ||
} | ||
|
||
protected void createDirectory(String bucketName, String key) |
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.
This function is almost the same as createFile. Can reduce this duplication?
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.
I slightly modified createDirectory
.
I find the duplication between them at the moment still small enough to warrant having two similar methods.
plugin/trino-hive/src/test/java/io/trino/plugin/hive/AbstractTestHiveFileSystem.java
Outdated
Show resolved
Hide resolved
2c8ce54
to
32bb3ec
Compare
plugin/trino-hive-hadoop2/src/test/java/io/trino/plugin/hive/AbstractTestHiveFileSystemS3.java
Outdated
Show resolved
Hide resolved
32bb3ec
to
d31d0fd
Compare
Unrelated CI failure in
|
/test-with-secrets sha=d31d0fdded87d2396b0988a3e15d84894892e6f4 |
The CI workflow run with tests that require additional secrets finished as failure: https://github.com/trinodb/trino/actions/runs/5663986651 |
plugin/trino-hive-hadoop2/src/test/java/io/trino/plugin/hive/AbstractTestHiveFileSystemS3.java
Outdated
Show resolved
Hide resolved
plugin/trino-hive-hadoop2/src/test/java/io/trino/plugin/hive/AbstractTestHiveFileSystemS3.java
Outdated
Show resolved
Hide resolved
plugin/trino-hive-hadoop2/src/test/java/io/trino/plugin/hive/AbstractTestHiveFileSystemS3.java
Outdated
Show resolved
Hide resolved
The test `testRecursiveDirectoriesWithSpecialCharacters()` is being moved to `AbstractTestHiveFileSystem` for being able to test it on multiple object storage file systems.
d31d0fd
to
dc43f19
Compare
Failures unrelated to the current PR. @ebyhr could you pls run again the PR with secrets? |
/test-with-secrets sha=dc43f197824f4d8eb826903ea9c05987a3d6a2fc |
The CI workflow run with tests that require additional secrets finished as failure: https://github.com/trinodb/trino/actions/runs/5674482714 |
Unrelated failures in cc @ebyhr |
Description
The test
testRecursiveDirectoriesWithSpecialCharacters()
is beingmoved to
AbstractTestHiveFileSystem
for being able to test it onmultiple object storage file systems.
Contains cherry-pick from #18167
Fixes #18169
Additional context and related issues
Release notes
( ) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text: