Skip to content

Commit

Permalink
fix active directory domain sweeper (#3902) (#7106)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Aug 25, 2020
1 parent b72c658 commit 529b0ab
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .changelog/3902.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
2 changes: 1 addition & 1 deletion google/resource_active_directory_domain_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func TestAccActiveDirectoryDomain_activeDirectoryDomainBasicExample(t *testing.T
func testAccActiveDirectoryDomain_activeDirectoryDomainBasicExample(context map[string]interface{}) string {
return Nprintf(`
resource "google_active_directory_domain" "ad-domain" {
domain_name = "name%{random_suffix}.org.com"
domain_name = "tfgen%{random_suffix}.org.com"
locations = ["us-central1"]
reserved_ip_range = "192.168.255.0/24"
}
Expand Down
2 changes: 1 addition & 1 deletion google/resource_active_directory_domain_sweeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func testSweepActiveDirectoryDomain(region string) error {
},
}

listTemplate := strings.Split("https://managedidentities.googleapis.com/v1/projects/{{project}}/locations/global/domains?domainName={{domain_name}}", "?")[0]
listTemplate := strings.Split("https://managedidentities.googleapis.com/v1/projects/{{project}}/locations/global/domains", "?")[0]
listUrl, err := replaceVars(d, config, listTemplate)
if err != nil {
log.Printf("[INFO][SWEEPER_LOG] error preparing sweeper list url: %s", err)
Expand Down
2 changes: 1 addition & 1 deletion google/resource_active_directory_domain_update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
func TestAccActiveDirectoryDomain_update(t *testing.T) {
t.Parallel()

domain := fmt.Sprintf("mydomain%s.org1.com", randString(t, 5))
domain := fmt.Sprintf("tf-test%s.org1.com", randString(t, 5))
context := map[string]interface{}{
"domain": domain,
"resource_name": "ad-domain",
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/active_directory_domain.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ To get more information about Domain, see:

```hcl
resource "google_active_directory_domain" "ad-domain" {
domain_name = "name.org.com"
domain_name = "tfgen.org.com"
locations = ["us-central1"]
reserved_ip_range = "192.168.255.0/24"
}
Expand Down

0 comments on commit 529b0ab

Please sign in to comment.