[FLINK-37247][FileSystems][Tests] Implement common Hadoop file system integration tests for GCS. #26102
+368
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is the purpose of the change
Increase test coverage for GCS integration by providing integration tests implemented from the common flink-hadoop-fs test suites. These optional tests run only if the environment is configured for access to GCS.
Brief change log
RequireGCSConfiguration
. The extension checks for environment variablesGOOGLE_APPLICATION_CREDENTIALS
andGCS_BASE_PATH
. If these are not defined, then the tests are skipped.RecoverableWriter
tests to returnnull
fromgetLocalTmpDir()
to indicate no allocation/release of local storage is required.Verifying this change
This change added tests and can be verified as follows:
New integration tests are skipped when run without setting the configuration, so there is no impact to existing developer workflows:
With configuration in place, the tests pass (with the exception of the two that are skipped):
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: noDocumentation