Skip to content

Commit

Permalink
Fix composer tests (hashicorp#4323) (hashicorp#2795)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Dec 17, 2020
1 parent ce97821 commit bf4a427
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .changelog/4323.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
10 changes: 9 additions & 1 deletion google-beta/data_source_google_composer_environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@ import (
)

func dataSourceGoogleComposerEnvironment() *schema.Resource {
dsSchema := datasourceSchemaFromResourceSchema(resourceComposerEnvironment().Schema)

// Set 'Required' schema elements
addRequiredFieldsToSchema(dsSchema, "name")

// Set 'Optional' schema elements
addOptionalFieldsToSchema(dsSchema, "project", "region")

return &schema.Resource{
Read: dataSourceGoogleComposerEnvironmentRead,
Schema: resourceComposerEnvironment().Schema,
Schema: dsSchema,
}
}

Expand Down
5 changes: 2 additions & 3 deletions google-beta/data_source_google_composer_environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,8 @@ resource "google_compute_subnetwork" "test" {
}
data "google_composer_environment" "test" {
name = google_composer_environment.test.name
depends_on = [google_composer_environment.test]
name = google_composer_environment.test.name
region = google_composer_environment.test.region
}
`, context)
}
2 changes: 1 addition & 1 deletion google-beta/resource_composer_environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ resource "google_composer_environment" "test" {
}
software_config {
pypi_packages = {
scipy = "==1.1.0"
numpy = ""
}
}
}
Expand Down

0 comments on commit bf4a427

Please sign in to comment.