mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-07 22:53:08 -06:00
475fd4decb
TF_ACC=1 go test ./builtin/providers/azurerm -v -run TestAccAzureRMServiceBusSubscription -timeout 120m === RUN TestAccAzureRMServiceBusSubscription_importBasic --- PASS: TestAccAzureRMServiceBusSubscription_importBasic (339.00s) === RUN TestAccAzureRMServiceBusSubscription_basic --- PASS: TestAccAzureRMServiceBusSubscription_basic (328.47s) === RUN TestAccAzureRMServiceBusSubscription_update --- PASS: TestAccAzureRMServiceBusSubscription_update (368.95s) === RUN TestAccAzureRMServiceBusSubscription_updateRequiresSession --- PASS: TestAccAzureRMServiceBusSubscription_updateRequiresSession (348.47s) PASS ok github.com/hashicorp/terraform/builtin/providers/azurerm 1384.966s
34 lines
777 B
Go
34 lines
777 B
Go
package azurerm
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
|
|
"github.com/hashicorp/terraform/helper/acctest"
|
|
"github.com/hashicorp/terraform/helper/resource"
|
|
)
|
|
|
|
func TestAccAzureRMServiceBusSubscription_importBasic(t *testing.T) {
|
|
resourceName := "azurerm_servicebus_subscription.test"
|
|
|
|
ri := acctest.RandInt()
|
|
config := fmt.Sprintf(testAccAzureRMServiceBusSubscription_basic, ri, ri, ri, ri)
|
|
|
|
resource.Test(t, resource.TestCase{
|
|
PreCheck: func() { testAccPreCheck(t) },
|
|
Providers: testAccProviders,
|
|
CheckDestroy: testCheckAzureRMServiceBusSubscriptionDestroy,
|
|
Steps: []resource.TestStep{
|
|
resource.TestStep{
|
|
Config: config,
|
|
},
|
|
|
|
resource.TestStep{
|
|
ResourceName: resourceName,
|
|
ImportState: true,
|
|
ImportStateVerify: true,
|
|
},
|
|
},
|
|
})
|
|
}
|