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

google: Add google_compute_backend_service #3038

Merged

Conversation

radeksimko
Copy link
Member

Test plan

$ make testacc TEST=./builtin/providers/google TESTARGS='-run=ComputeBackendService' 2>~/tf.log
go generate ./...
TF_ACC=1 go test ./builtin/providers/google -v -run=ComputeBackendService -timeout 90m
=== RUN TestAccComputeBackendService_basic
--- PASS: TestAccComputeBackendService_basic (21.27s)
=== RUN TestAccComputeBackendService_withBackend
--- PASS: TestAccComputeBackendService_withBackend (125.31s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/google 146.588s

@sparkprime
Copy link
Contributor

Awesome!

@radeksimko
Copy link
Member Author

@sparkprime Does Awesome == LGTM, i.e. do you not have any reservations about the code? :)

@sparkprime
Copy link
Contributor

I haven't looked at it in detail yet but will do very soon (hopefully today) :)

Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: some day this would be good to factor out and apply to all resources

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Factor out what exactly? That validation function you mean?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it'd be useful for all resources

On Sat, Aug 22, 2015, 5:11 PM Radek Simko [email protected] wrote:

In builtin/providers/google/resource_compute_backend_service.go
#3038 (comment):

  •           Type:     schema.TypeString,
    
  •           Optional: true,
    
  •       },
    
  •       "health_checks": &schema.Schema{
    
  •           Type:     schema.TypeSet,
    
  •           Elem:     &schema.Schema{Type: schema.TypeString},
    
  •           Required: true,
    
  •           Set:      schema.HashString,
    
  •       },
    
  •       "name": &schema.Schema{
    
  •           Type:     schema.TypeString,
    
  •           Required: true,
    
  •           ForceNew: true,
    
  •           ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) {
    

Factor out what exactly? That validation function you mean?


Reply to this email directly or view it on GitHub
https://github.com/hashicorp/terraform/pull/3038/files#r37699801.

@sparkprime
Copy link
Contributor

Other than that minor stuff LGTM

@radeksimko radeksimko force-pushed the f-google-backend-service branch from 7091e1e to 1578372 Compare September 8, 2015 09:22
@radeksimko radeksimko force-pushed the f-google-backend-service branch 2 times, most recently from 072ce47 to fea1d04 Compare September 8, 2015 11:09
@radeksimko radeksimko force-pushed the f-google-backend-service branch from fea1d04 to 0a0f532 Compare September 8, 2015 11:12
@radeksimko
Copy link
Member Author

@sparkprime Modifications done, check my explanation regarding TypeSet/TypeList.

@sparkprime
Copy link
Contributor

LGTM merge it :)

radeksimko added a commit that referenced this pull request Sep 8, 2015
google: Add google_compute_backend_service
@radeksimko radeksimko merged commit 1b59d87 into hashicorp:master Sep 8, 2015
@radeksimko radeksimko deleted the f-google-backend-service branch September 8, 2015 15:59
@ghost
Copy link

ghost commented May 1, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators May 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants