Skip to content
Merged
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
Expand Up @@ -62,7 +62,7 @@ func TestAccDataSourceNetworkSecurityAddressGroups_organization(t *testing.T) {

acctest.VcrTest(t, resource.TestCase{
PreCheck: func() { acctest.AccTestPreCheck(t) },
ProtoV5ProviderFactories: acctest.ProtoV5ProviderBetaFactories(t),
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t),
Steps: []resource.TestStep{
{
Config: testAccDataSourceNetworkSecurityAddressGroupsOrganizationConfig(context),
Expand All @@ -77,12 +77,7 @@ func TestAccDataSourceNetworkSecurityAddressGroups_organization(t *testing.T) {

func testAccDataSourceNetworkSecurityAddressGroupsOrganizationConfig(context map[string]interface{}) string {
return acctest.Nprintf(`
provider "google-beta" {
region = "%{location}"
}

resource "google_network_security_address_group" "org_basic" {
provider = google-beta
name = "tf-test-ag-org-%{random_suffix}"
parent = "organizations/%{org_id}"
location = "%{location}"
Expand All @@ -92,7 +87,6 @@ resource "google_network_security_address_group" "org_basic" {
}

data "google_network_security_address_groups" "org_all" {
provider = google-beta
parent = "organizations/%{org_id}"
location = "%{location}"
depends_on = [google_network_security_address_group.org_basic]
Expand Down
Loading