diff --git a/storage/api/Storage.Samples.Tests/MoveObjectTest.cs b/storage/api/Storage.Samples.Tests/MoveObjectTest.cs index 49bb1c3993f..2b2e12e883e 100644 --- a/storage/api/Storage.Samples.Tests/MoveObjectTest.cs +++ b/storage/api/Storage.Samples.Tests/MoveObjectTest.cs @@ -34,10 +34,10 @@ public void MoveObject() var originName = Guid.NewGuid().ToString(); var originContent = Guid.NewGuid().ToString(); var destinationName = Guid.NewGuid().ToString(); - uploadObjectFromMemory.UploadObjectFromMemory(_fixture.BucketNameHns, originName, originContent); - moveObjectSample.MoveObject(_fixture.BucketNameHns, originName, destinationName); - _fixture.CollectHnsObject(destinationName); - var objects = listFilesSample.ListFiles(_fixture.BucketNameHns); + uploadObjectFromMemory.UploadObjectFromMemory(_fixture.BucketNameGeneric, originName, originContent); + moveObjectSample.MoveObject(_fixture.BucketNameGeneric, originName, destinationName); + _fixture.Collect(destinationName); + var objects = listFilesSample.ListFiles(_fixture.BucketNameGeneric); Assert.DoesNotContain(objects, obj => obj.Name == originName); Assert.Contains(objects, obj => obj.Name == destinationName); } diff --git a/storage/api/Storage.Samples.Tests/StorageFixture.cs b/storage/api/Storage.Samples.Tests/StorageFixture.cs index b3db2424408..22eb8786db2 100644 --- a/storage/api/Storage.Samples.Tests/StorageFixture.cs +++ b/storage/api/Storage.Samples.Tests/StorageFixture.cs @@ -180,13 +180,6 @@ private string Collect(string bucketName, string objectName) /// The regional objectName. public string CollectRegionalObject(string objectName) => Collect(BucketNameRegional, objectName); - /// - /// Add a object located in a hns bucket to delete - /// at the end of the test. - /// - /// The objectName. - public string CollectHnsObject(string objectName) => Collect(BucketNameHns, objectName); - public void DeleteHmacKey(string accessId, bool isActive) { int retries = 10; diff --git a/storage/api/Storage.Samples/MoveObject.cs b/storage/api/Storage.Samples/MoveObject.cs index a0316f6eff6..dcda59786d1 100644 --- a/storage/api/Storage.Samples/MoveObject.cs +++ b/storage/api/Storage.Samples/MoveObject.cs @@ -20,7 +20,7 @@ public class MoveObjectSample { /// - /// Moves an object within a bucket with hierarchical namespace enabled. + /// Moves an object within a bucket. /// /// Name of the source bucket containing the object to move. /// The name of the source object to move within the bucket. @@ -32,7 +32,7 @@ public void MoveObject( { var storage = StorageClient.Create(); storage.MoveObject(sourceBucketName, sourceObjectName, destinationObjectName); - Console.WriteLine($"Moved {sourceBucketName}/{sourceObjectName} to " + $"{sourceBucketName}/{destinationObjectName} within a hierarchical namespace enabled bucket."); + Console.WriteLine($"Moved {sourceBucketName}/{sourceObjectName} to {sourceBucketName}/{destinationObjectName} within a bucket."); } } // [END storage_move_object]