Skip to content

Commit

Permalink
Enable bucket deletion for integration tests.
Browse files Browse the repository at this point in the history
This does not completely fix all leaks, but should allow bucket cleanup to
function properly.

	Change on 2017/04/14 by angusdavis <[email protected]>

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=153225400
  • Loading branch information
angusdavis committed Apr 21, 2017
1 parent 7ddca40 commit d2d1f6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ protected static Configuration loadConfig(
GoogleHadoopFileSystemBase.GCS_ENABLE_REPAIR_IMPLICIT_DIRECTORIES_KEY, true);
config.setBoolean(
GoogleHadoopFileSystemBase.GCS_ENABLE_INFER_IMPLICIT_DIRECTORIES_KEY, false);
// Allow buckets to be deleted in test cleanup:
config.setBoolean(
GoogleHadoopFileSystemBase.GCE_BUCKET_DELETE_ENABLE_KEY, true);
return config;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public static void beforeAllTests()

optionsBuilder
.setIsMetadataCacheEnabled(true)
.setEnableBucketDelete(true)
.setShouldIncludeInTimestampUpdatesPredicate(INCLUDE_SUBSTRINGS_PREDICATE)
.getCloudStorageOptionsBuilder()
.setAppName(appName)
Expand Down

0 comments on commit d2d1f6c

Please sign in to comment.