@@ -388,6 +388,21 @@ public async Task Delete_Basic_Convenience()
388388 await scenario . AssertDeleted ( blobs ) ;
389389 }
390390
391+ [ RecordedTest ]
392+ public async Task Delete_Basic_Convenience_OAuth ( )
393+ {
394+ BlobServiceClient service = BlobsClientBuilder . GetServiceClient_OAuth ( TestEnvironment . Credential ) ;
395+ await using TestScenario scenario = Scenario ( service ) ;
396+ BlobClient [ ] blobs = await scenario . CreateBlobsAsync ( 3 ) ;
397+ Uri [ ] uris = blobs . Select ( b => b . Uri ) . ToArray ( ) ;
398+
399+ BlobBatchClient client = scenario . GetBlobBatchClient ( ) ;
400+ Response [ ] responses = await client . DeleteBlobsAsync ( uris ) ;
401+
402+ scenario . AssertStatus ( 202 , responses ) ;
403+ await scenario . AssertDeleted ( blobs ) ;
404+ }
405+
391406 [ RecordedTest ]
392407 [ ServiceVersion ( Min = BlobClientOptions . ServiceVersion . V2019_12_12 ) ]
393408 public async Task Delete_Basic_Convenience_AccountSas ( )
@@ -419,6 +434,22 @@ public async Task Delete_ContainerScoped_Basic_Convenience()
419434 await scenario . AssertDeleted ( blobs ) ;
420435 }
421436
437+ [ RecordedTest ]
438+ [ ServiceVersion ( Min = BlobClientOptions . ServiceVersion . V2020_04_08 ) ]
439+ public async Task Delete_ContainerScoped_Basic_Convenience_OAuth ( )
440+ {
441+ BlobServiceClient service = BlobsClientBuilder . GetServiceClient_OAuth ( TestEnvironment . Credential ) ;
442+ await using TestScenario scenario = Scenario ( service ) ;
443+ BlobClient [ ] blobs = await scenario . CreateBlobsAsync ( 3 ) ;
444+ Uri [ ] uris = blobs . Select ( b => b . Uri ) . ToArray ( ) ;
445+
446+ BlobBatchClient client = scenario . GetBlobBatchClient ( scenario . Containers [ 0 ] . Container . Name ) ;
447+ Response [ ] responses = await client . DeleteBlobsAsync ( uris ) ;
448+
449+ scenario . AssertStatus ( 202 , responses ) ;
450+ await scenario . AssertDeleted ( blobs ) ;
451+ }
452+
422453 [ RecordedTest ]
423454 [ ServiceVersion ( Min = BlobClientOptions . ServiceVersion . V2020_04_08 ) ]
424455 public async Task Delete_ContainerScoped_Basic_Convenience_ContainerSas ( )
@@ -796,6 +827,21 @@ public async Task SetBlobAccessTier_Basic_Convenience()
796827 await scenario . AssertTiers ( AccessTier . Cool , blobs ) ;
797828 }
798829
830+ [ RecordedTest ]
831+ public async Task SetBlobAccessTier_Basic_Convenience_OAuth ( )
832+ {
833+ BlobServiceClient service = BlobsClientBuilder . GetServiceClient_OAuth ( TestEnvironment . Credential ) ;
834+ await using TestScenario scenario = Scenario ( service ) ;
835+ BlobClient [ ] blobs = await scenario . CreateBlobsAsync ( 3 ) ;
836+ Uri [ ] uris = blobs . Select ( b => b . Uri ) . ToArray ( ) ;
837+
838+ BlobBatchClient client = scenario . GetBlobBatchClient ( ) ;
839+ Response [ ] responses = await client . SetBlobsAccessTierAsync ( uris , AccessTier . Cool ) ;
840+
841+ scenario . AssertStatus ( 200 , responses ) ;
842+ await scenario . AssertTiers ( AccessTier . Cool , blobs ) ;
843+ }
844+
799845 [ RecordedTest ]
800846 [ ServiceVersion ( Min = BlobClientOptions . ServiceVersion . V2019_12_12 ) ]
801847 public async Task SetBlobAccessTier_Basic_Convenience_AccountSas ( )
@@ -827,6 +873,22 @@ public async Task SetBlobAccessTier_ContainerScoped_Basic_Convenience()
827873 await scenario . AssertTiers ( AccessTier . Cool , blobs ) ;
828874 }
829875
876+ [ RecordedTest ]
877+ [ ServiceVersion ( Min = BlobClientOptions . ServiceVersion . V2020_04_08 ) ]
878+ public async Task SetBlobAccessTier_ContainerScoped_Basic_Convenience_OAuth ( )
879+ {
880+ BlobServiceClient service = BlobsClientBuilder . GetServiceClient_OAuth ( TestEnvironment . Credential ) ;
881+ await using TestScenario scenario = Scenario ( service ) ;
882+ BlobClient [ ] blobs = await scenario . CreateBlobsAsync ( 3 ) ;
883+ Uri [ ] uris = blobs . Select ( b => b . Uri ) . ToArray ( ) ;
884+
885+ BlobBatchClient client = scenario . GetBlobBatchClient ( scenario . Containers [ 0 ] . Container . Name ) ;
886+ Response [ ] responses = await client . SetBlobsAccessTierAsync ( uris , AccessTier . Cool ) ;
887+
888+ scenario . AssertStatus ( 200 , responses ) ;
889+ await scenario . AssertTiers ( AccessTier . Cool , blobs ) ;
890+ }
891+
830892 [ RecordedTest ]
831893 [ ServiceVersion ( Min = BlobClientOptions . ServiceVersion . V2020_04_08 ) ]
832894 public async Task SetBlobAccessTier_ContainerScoped_Basic_Convenience_ContainerSas ( )
0 commit comments