File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
sdk/storagemover/azure-resourcemanager-storagemover
src/test/java/com/azure/resourcemanager/storagemover Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -76,5 +76,11 @@ Code generated by Microsoft (R) TypeSpec Code Generator.
7676 <version >2.53.2</version > <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-resources;dependency} -->
7777 <scope >test</scope >
7878 </dependency >
79+ <dependency >
80+ <groupId >com.azure.resourcemanager</groupId >
81+ <artifactId >azure-resourcemanager-test</artifactId >
82+ <version >2.0.0-beta.2</version > <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-test;dependency} -->
83+ <scope >test</scope >
84+ </dependency >
7985 </dependencies >
8086</project >
Original file line number Diff line number Diff line change 1313import com .azure .core .test .annotation .LiveOnly ;
1414import com .azure .core .util .Configuration ;
1515import com .azure .core .util .CoreUtils ;
16- import com .azure .identity .AzurePowerShellCredentialBuilder ;
1716import com .azure .resourcemanager .resources .ResourceManager ;
1817import com .azure .resourcemanager .resources .fluentcore .policy .ProviderRegistrationPolicy ;
1918import com .azure .resourcemanager .storagemover .models .StorageMover ;
19+ import com .azure .resourcemanager .test .utils .TestUtilities ;
2020import org .junit .jupiter .api .Assertions ;
2121import org .junit .jupiter .api .Test ;
2222
@@ -32,7 +32,7 @@ public class StorageMoverManagerTests extends TestProxyTestBase {
3232
3333 @ Override
3434 public void beforeTest () {
35- final TokenCredential credential = new AzurePowerShellCredentialBuilder (). build ( );
35+ final TokenCredential credential = TestUtilities . getTokenCredentialForTest ( getTestMode () );
3636 final AzureProfile profile = new AzureProfile (AzureEnvironment .AZURE );
3737
3838 resourceManager = ResourceManager .configure ()
You can’t perform that action at this time.
0 commit comments