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

Remove project dependency from TestAccApikeysKey_* #7989

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
3 changes: 3 additions & 0 deletions .changelog/11462.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ func testAccApikeysKey_AndroidKey(context map[string]interface{}) string {
resource "google_apikeys_key" "primary" {
name = "tf-test-key%{random_suffix}"
display_name = "sample-key"
project = google_project.basic.name

restrictions {
android_key_restrictions {
Expand All @@ -213,12 +212,6 @@ resource "google_apikeys_key" "primary" {
}
}

resource "google_project" "basic" {
project_id = "tf-test-app%{random_suffix}"
name = "tf-test-app%{random_suffix}"
org_id = "%{org_id}"
}


`, context)
}
Expand All @@ -228,7 +221,6 @@ func testAccApikeysKey_AndroidKeyUpdate0(context map[string]interface{}) string
resource "google_apikeys_key" "primary" {
name = "tf-test-key%{random_suffix}"
display_name = "sample-key"
project = google_project.basic.name

restrictions {
android_key_restrictions {
Expand All @@ -245,12 +237,6 @@ resource "google_apikeys_key" "primary" {
}
}

resource "google_project" "basic" {
project_id = "tf-test-app%{random_suffix}"
name = "tf-test-app%{random_suffix}"
org_id = "%{org_id}"
}


`, context)
}
Expand All @@ -260,7 +246,6 @@ func testAccApikeysKey_BasicKey(context map[string]interface{}) string {
resource "google_apikeys_key" "primary" {
name = "tf-test-key%{random_suffix}"
display_name = "sample-key"
project = google_project.basic.name

restrictions {
api_targets {
Expand All @@ -274,12 +259,6 @@ resource "google_apikeys_key" "primary" {
}
}

resource "google_project" "basic" {
project_id = "tf-test-app%{random_suffix}"
name = "tf-test-app%{random_suffix}"
org_id = "%{org_id}"
}


`, context)
}
Expand All @@ -289,7 +268,6 @@ func testAccApikeysKey_BasicKeyUpdate0(context map[string]interface{}) string {
resource "google_apikeys_key" "primary" {
name = "tf-test-key%{random_suffix}"
display_name = "sample-key-update"
project = google_project.basic.name

restrictions {
api_targets {
Expand All @@ -303,12 +281,6 @@ resource "google_apikeys_key" "primary" {
}
}

resource "google_project" "basic" {
project_id = "tf-test-app%{random_suffix}"
name = "tf-test-app%{random_suffix}"
org_id = "%{org_id}"
}


`, context)
}
Expand All @@ -318,7 +290,6 @@ func testAccApikeysKey_IosKey(context map[string]interface{}) string {
resource "google_apikeys_key" "primary" {
name = "tf-test-key%{random_suffix}"
display_name = "sample-key"
project = google_project.basic.name

restrictions {
api_targets {
Expand All @@ -332,12 +303,6 @@ resource "google_apikeys_key" "primary" {
}
}

resource "google_project" "basic" {
project_id = "tf-test-app%{random_suffix}"
name = "tf-test-app%{random_suffix}"
org_id = "%{org_id}"
}


`, context)
}
Expand All @@ -347,7 +312,6 @@ func testAccApikeysKey_IosKeyUpdate0(context map[string]interface{}) string {
resource "google_apikeys_key" "primary" {
name = "tf-test-key%{random_suffix}"
display_name = "sample-key"
project = google_project.basic.name

restrictions {
api_targets {
Expand All @@ -361,12 +325,6 @@ resource "google_apikeys_key" "primary" {
}
}

resource "google_project" "basic" {
project_id = "tf-test-app%{random_suffix}"
name = "tf-test-app%{random_suffix}"
org_id = "%{org_id}"
}


`, context)
}
Expand All @@ -376,13 +334,6 @@ func testAccApikeysKey_MinimalKey(context map[string]interface{}) string {
resource "google_apikeys_key" "primary" {
name = "tf-test-key%{random_suffix}"
display_name = "sample-key"
project = google_project.basic.name
}

resource "google_project" "basic" {
project_id = "tf-test-app%{random_suffix}"
name = "tf-test-app%{random_suffix}"
org_id = "%{org_id}"
}


Expand All @@ -394,7 +345,6 @@ func testAccApikeysKey_ServerKey(context map[string]interface{}) string {
resource "google_apikeys_key" "primary" {
name = "tf-test-key%{random_suffix}"
display_name = "sample-key"
project = google_project.basic.name

restrictions {
api_targets {
Expand All @@ -408,12 +358,6 @@ resource "google_apikeys_key" "primary" {
}
}

resource "google_project" "basic" {
project_id = "tf-test-app%{random_suffix}"
name = "tf-test-app%{random_suffix}"
org_id = "%{org_id}"
}


`, context)
}
Expand All @@ -423,7 +367,6 @@ func testAccApikeysKey_ServerKeyUpdate0(context map[string]interface{}) string {
resource "google_apikeys_key" "primary" {
name = "tf-test-key%{random_suffix}"
display_name = "sample-key"
project = google_project.basic.name

restrictions {
api_targets {
Expand All @@ -437,12 +380,6 @@ resource "google_apikeys_key" "primary" {
}
}

resource "google_project" "basic" {
project_id = "tf-test-app%{random_suffix}"
name = "tf-test-app%{random_suffix}"
org_id = "%{org_id}"
}


`, context)
}
Expand Down
35 changes: 0 additions & 35 deletions website/docs/r/apikeys_key.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ A basic example of a android api keys key
resource "google_apikeys_key" "primary" {
name = "key"
display_name = "sample-key"
project = google_project.basic.name

restrictions {
android_key_restrictions {
Expand All @@ -45,12 +44,6 @@ resource "google_apikeys_key" "primary" {
}
}

resource "google_project" "basic" {
project_id = "app"
name = "app"
org_id = "123456789"
}


```
## Example Usage - basic_key
Expand All @@ -59,7 +52,6 @@ A basic example of a api keys key
resource "google_apikeys_key" "primary" {
name = "key"
display_name = "sample-key"
project = google_project.basic.name

restrictions {
api_targets {
Expand All @@ -73,12 +65,6 @@ resource "google_apikeys_key" "primary" {
}
}

resource "google_project" "basic" {
project_id = "app"
name = "app"
org_id = "123456789"
}


```
## Example Usage - ios_key
Expand All @@ -87,7 +73,6 @@ A basic example of a ios api keys key
resource "google_apikeys_key" "primary" {
name = "key"
display_name = "sample-key"
project = google_project.basic.name

restrictions {
api_targets {
Expand All @@ -101,12 +86,6 @@ resource "google_apikeys_key" "primary" {
}
}

resource "google_project" "basic" {
project_id = "app"
name = "app"
org_id = "123456789"
}


```
## Example Usage - minimal_key
Expand All @@ -115,13 +94,6 @@ A minimal example of a api keys key
resource "google_apikeys_key" "primary" {
name = "key"
display_name = "sample-key"
project = google_project.basic.name
}

resource "google_project" "basic" {
project_id = "app"
name = "app"
org_id = "123456789"
}


Expand All @@ -132,7 +104,6 @@ A basic example of a server api keys key
resource "google_apikeys_key" "primary" {
name = "key"
display_name = "sample-key"
project = google_project.basic.name

restrictions {
api_targets {
Expand All @@ -146,12 +117,6 @@ resource "google_apikeys_key" "primary" {
}
}

resource "google_project" "basic" {
project_id = "app"
name = "app"
org_id = "123456789"
}


```

Expand Down