Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mgmt, keyvault migrate test-proxy #36048

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disabled till next api-version.

Don't want to cost 100+ dollars for migration.

@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.

Loading