Skip to content

Commit

Permalink
mgmt, keyvault migrate test-proxy (#36048)
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft authored and pull[bot] committed Jan 19, 2024
1 parent 66dc5c0 commit 2700000
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 3,760 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "java",
"TagPrefix": "java/resourcemanager/azure-resourcemanager-keyvault",
"Tag": "java/resourcemanager/azure-resourcemanager-keyvault_dcfafbf480"
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
public class KeyTests extends KeyVaultManagementTest {

@Test
@DoNotRecord
@DoNotRecord(skipInPlayback = true)
public void canCRUDKey() throws Exception {
if (skipInPlayback()) {
return;
Expand Down Expand Up @@ -109,7 +109,7 @@ public void canCRUDKey() throws Exception {
}

@Test
@DoNotRecord
@DoNotRecord(skipInPlayback = true)
public void canImportKey() throws Exception {
if (skipInPlayback()) {
return;
Expand All @@ -130,7 +130,7 @@ public void canImportKey() throws Exception {
}

@Test
@DoNotRecord
@DoNotRecord(skipInPlayback = true)
public void canBackupAndRestore() throws Exception {
if (skipInPlayback()) {
return;
Expand Down Expand Up @@ -167,7 +167,7 @@ public void canBackupAndRestore() throws Exception {
}

@Test
@DoNotRecord
@DoNotRecord(skipInPlayback = true)
public void canEncryptAndDecrypt() throws Exception {
if (skipInPlayback()) {
return;
Expand Down Expand Up @@ -202,7 +202,7 @@ public void canEncryptAndDecrypt() throws Exception {
}

@Test
@DoNotRecord
@DoNotRecord(skipInPlayback = true)
public void canSignAndVerify() throws Exception {
if (skipInPlayback()) {
return;
Expand Down Expand Up @@ -234,7 +234,7 @@ public void canSignAndVerify() throws Exception {
}

@Test
@DoNotRecord
@DoNotRecord(skipInPlayback = true)
public void canWrapAndUnwrap() throws Exception {
if (skipInPlayback()) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
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.ResourceManagerTestBase;
import com.azure.resourcemanager.test.ResourceManagerTestProxyTestBase;
import com.azure.resourcemanager.test.utils.TestDelayProvider;

import java.time.temporal.ChronoUnit;
import java.util.List;

/** The base for KeyVault manager tests. */
public class KeyVaultManagementTest extends ResourceManagerTestBase {
public class KeyVaultManagementTest extends ResourceManagerTestProxyTestBase {
protected ResourceManager resourceManager;
protected KeyVaultManager keyVaultManager;
protected AuthorizationManager authorizationManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import com.azure.resourcemanager.keyvault.models.MhsmNetworkRuleSet;
import com.azure.resourcemanager.keyvault.models.PublicNetworkAccess;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import java.time.OffsetDateTime;
Expand Down Expand Up @@ -43,6 +44,7 @@ protected void cleanUpResources() {
* that's not purged after deletion.</p>
* @see <a href="https://learn.microsoft.com/en-us/azure/key-vault/managed-hsm/soft-delete-overview">soft-delete-overview</a>
*/
@Disabled("Disabled for test-proxy migration. Please enable it again, next time api-version update.")
@Test
public void canCrudManagedHsms() {
String mhsmName = generateRandomResourceName("mhsm", 10);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
public class SecretTests extends KeyVaultManagementTest {

@Test
@DoNotRecord
@DoNotRecord(skipInPlayback = true)
public void canCRUDSecret() throws Exception {
if (skipInPlayback()) {
return;
Expand Down Expand Up @@ -69,7 +69,7 @@ public void canCRUDSecret() throws Exception {
}

@Test
@DoNotRecord
@DoNotRecord(skipInPlayback = true)
public void canDisableSecret() throws Exception {
if (skipInPlayback()) {
return;
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 2700000

Please sign in to comment.