Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft committed Jul 24, 2023
1 parent 3b07462 commit 289f531
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,9 @@ public void canCRUDActivityLogAlerts() {

Assertions.assertNotNull(ala);
Assertions.assertEquals(1, ala.scopes().size());
Assertions
.assertEquals("/subscriptions/" + monitorManager.subscriptionId(), ala.scopes().iterator().next());
if (!isPlaybackMode()) {
Assertions.assertEquals("/subscriptions/" + monitorManager.subscriptionId(), ala.scopes().iterator().next());
}
Assertions.assertEquals("AutoScale-VM-Creation-Failed", ala.description());
Assertions.assertEquals(true, ala.enabled());
Assertions.assertEquals(1, ala.actionGroupIds().size());
Expand Down Expand Up @@ -516,8 +517,9 @@ public void canCRUDActivityLogAlerts() {
.apply();

Assertions.assertEquals(1, ala.scopes().size());
Assertions
.assertEquals("/subscriptions/" + monitorManager.subscriptionId(), ala.scopes().iterator().next());
if (!isPlaybackMode()) {
Assertions.assertEquals("/subscriptions/" + monitorManager.subscriptionId(), ala.scopes().iterator().next());
}
Assertions.assertEquals("AutoScale-VM-Creation-Failed", ala.description());
Assertions.assertEquals(false, ala.enabled());
Assertions.assertEquals(1, ala.actionGroupIds().size());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import com.azure.resourcemanager.resources.ResourceManager;
import com.azure.resourcemanager.resources.fluentcore.utils.HttpPipelineProvider;
import com.azure.resourcemanager.resources.fluentcore.utils.ResourceManagerUtils;
import com.azure.resourcemanager.test.ResourceManagerTestProxyTestBase ;
import com.azure.resourcemanager.test.ResourceManagerTestProxyTestBase;
import com.azure.resourcemanager.test.utils.TestDelayProvider;
import com.azure.resourcemanager.test.utils.TestUtilities;
import org.junit.jupiter.api.Assertions;
Expand Down

0 comments on commit 289f531

Please sign in to comment.