Skip to content

Commit

Permalink
Remove project dependency from TestAccApikeysKey_* (#11462) (#7989)
Browse files Browse the repository at this point in the history
[upstream:372b7c7f15383798536573ebe662c099ac2819d1]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Aug 16, 2024
1 parent 8b5d58d commit f14e2c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 98 deletions.
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

0 comments on commit f14e2c8

Please sign in to comment.