Skip to content

Commit

Permalink
Exclude new file, remove unused code from tpg (#2383)
Browse files Browse the repository at this point in the history
Merged PR #2383.
  • Loading branch information
rileykarson authored and modular-magician committed Sep 26, 2019
1 parent e9b213b commit ad1265c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .ci/magic-modules/generate-terraform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if [ "$GITHUB_ORG" = "terraform-providers" ]; then
# "-wholename": entire relative path - including directory names - matches following wildcard.
# "-name": filename alone matches following string. e.g. -name README.md matches ./README.md *and* ./foo/bar/README.md
# "-exec": for each file found, execute the command following until the literal ';'
find . -type f -not -wholename "./.git*" -not -wholename "./vendor*" -not -name ".travis.yml" -not -name ".golangci.yml" -not -name "CHANGELOG.md" -not -name GNUmakefile -not -name LICENSE -not -name README.md -not -wholename "./examples*" -not -name "go.mod" -not -name "go.sum" -not -name "staticcheck.conf" -not -name ".go-version" -not -name ".hashibot.hcl" -exec git rm {} \;
find . -type f -not -wholename "./.git*" -not -wholename "./vendor*" -not -name ".travis.yml" -not -name ".golangci.yml" -not -name "CHANGELOG.md" -not -name "GNUmakefile" -not -name "LICENSE" -not -name "README.md" -not -wholename "./examples*" -not -name "go.mod" -not -name "go.sum" -not -name "staticcheck.conf" -not -name ".go-version" -not -name ".hashibot.hcl" -not -name "tools.go" -exec git rm {} \;
fi

popd
Expand Down
2 changes: 1 addition & 1 deletion build/terraform
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,7 @@ func TestAccComputeBackendService_trafficDirectorUpdateFull(t *testing.T) {
}
<% end -%>

<% unless version == 'ga' -%>
func testAccComputeBackendService_trafficDirectorBasic(serviceName, checkName string) string {
return fmt.Sprintf(`
resource "google_compute_backend_service" "foobar" {
Expand Down Expand Up @@ -885,7 +886,9 @@ resource "google_compute_health_check" "health_check" {
}
`, serviceName, checkName)
}
<% end -%>

<% unless version == 'ga' -%>
func testAccComputeBackendService_trafficDirectorUpdateBasic(serviceName, checkName string) string {
return fmt.Sprintf(`
resource "google_compute_backend_service" "foobar" {
Expand All @@ -911,8 +914,9 @@ resource "google_compute_health_check" "health_check" {
}
`, serviceName, checkName)
}
<% end -%>


<% unless version == 'ga' -%>
func testAccComputeBackendService_trafficDirectorFull(serviceName, checkName string) string {
return fmt.Sprintf(`
resource "google_compute_backend_service" "foobar" {
Expand Down Expand Up @@ -947,7 +951,9 @@ resource "google_compute_health_check" "health_check" {
}
`, serviceName, checkName)
}
<% end -%>

<% unless version == 'ga' -%>
func testAccComputeBackendService_trafficDirectorUpdateFull(serviceName, checkName string) string {
return fmt.Sprintf(`
resource "google_compute_backend_service" "foobar" {
Expand Down Expand Up @@ -1006,6 +1012,7 @@ resource "google_compute_health_check" "health_check" {
}
`, serviceName, checkName)
}
<% end -%>

func testAccComputeBackendService_basic(serviceName, checkName string) string {
return fmt.Sprintf(`
Expand Down

0 comments on commit ad1265c

Please sign in to comment.