File tree Expand file tree Collapse file tree 2 files changed +2
-20
lines changed
main/java/com/example/storage/managedfolders
test/java/com/example/storage/object Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change 2222import com .google .storage .control .v2 .StorageControlClient ;
2323
2424class DeleteManagedFolder {
25- public static void managedFolderDelete (String bucketName , String managedFolderId ) throws Exception {
25+ public static void managedFolderDelete (String bucketName , String managedFolderId )
26+ throws Exception {
2627 // Instantiates a client in a try-with-resource to automatically cleanup underlying resources
2728 try (StorageControlClient storageControlClient = StorageControlClient .create ()) {
2829 storageControlClient .deleteManagedFolder (
Original file line number Diff line number Diff line change @@ -74,23 +74,4 @@ public void testDownloadByteRange() throws IOException {
7474 file .delete ();
7575 }
7676 }
77-
78- @ Test
79- public void testOtherThing () throws Exception {
80- BucketInfo .IamConfiguration iamConfiguration =
81- BucketInfo .IamConfiguration .newBuilder ().setIsUniformBucketLevelAccessEnabled (true ).build ();
82-
83- storage .update (
84- bucket
85- .toBuilder ()
86- .setIamConfiguration (iamConfiguration )
87- .setAcl (null )
88- .setDefaultAcl (null )
89- .build (),
90- BucketTargetOption .metagenerationMatch ());
91- String managedFolderId = "new-managed-folder-" + UUID .randomUUID ().toString ().substring (0 ,3 );
92- CreateManagedFolder .main (bucketName , managedFolderId );
93- String got = stdOut .getCapturedOutputAsUtf8String ();
94- assertThat (got ).contains (managedFolderId );
95- }
9677}
You can’t perform that action at this time.
0 commit comments