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

Add timeouts for google_container_cluster #13203

Closed
wants to merge 1 commit into from

Conversation

sovanesyan
Copy link

I haven't run or added an acceptance test yet, can you help me figure out how to setup them?

@sovanesyan sovanesyan changed the title [WIP] Add timeouts for google_container_cluster Add timeouts for google_container_cluster Apr 3, 2017
@danawillow danawillow self-requested a review April 6, 2017 22:21
@danawillow
Copy link
Contributor

Code looks good!

As for acceptance tests, you'll want to add something in https://github.com/hashicorp/terraform/blob/master/builtin/providers/google/resource_container_cluster_test.go. I think adding a new test based on the _basic test, but with a timeout, is the best option.

Here's the command I use to run tests (from the base directory):

$ export GOOGLE_CREDENTIALS=$(cat [path-to-keyfile-json])
$ make testacc TEST=./builtin/providers/google GOOGLE_PROJECT=$PROJECT GOOGLE_REGION=$REGION GOOGLE_XPN_HOST_PROJECT=ignore TESTARGS='-run=TestAccContainerCluster_basic'

The keyfile json is explained at https://www.terraform.io/docs/providers/google/index.html#authentication-json-file.

If you don't have a project you can use for testing let me know (once you've added the test) and I can run it for you as well.

Hope that helps!

@stack72
Copy link
Contributor

stack72 commented Jun 28, 2017

Hi @sovanesyan

I am in the process of migrating this code from this PR to the new google repo. As you can see (below), I have kept your commit in place. I just added a test on top as per @danawillow's request

commit 8798346e7011cafc562f9b7deb0cd6d8fdb018c8
Author: stack72 <[email protected]>
Date:   Wed Jun 28 11:34:20 2017 +0300

    Add an acceptance test to show timeouts in container_cluster

commit b2f789ca0a25aefc70397cd68ba4397b6e5de50c
Author: sovanesyan <[email protected]>
Date:   Wed Jun 28 11:22:31 2017 +0300

    provider/google: Add Timeout support to google_container_cluster

    Migrated from https://github.com/hashicorp/terraform/pull/13203

Thanks for the work here

Paul

@stack72 stack72 closed this Jun 28, 2017
stack72 pushed a commit to hashicorp/terraform-provider-google that referenced this pull request Jun 28, 2017
@sovanesyan
Copy link
Author

I completely forgot about this issue, sorry for not coming up with a test myself. Thanks!

@Stono
Copy link

Stono commented Jul 20, 2017

Hey, any idea what version of TF this will be in?

@danawillow
Copy link
Contributor

It'll be in version 0.1.2 of the google provider, which should be released very soon.

negz pushed a commit to negz/terraform-provider-google that referenced this pull request Oct 17, 2017
chrisst pushed a commit to chrisst/magic-modules that referenced this pull request Oct 26, 2018
@ghost
Copy link

ghost commented Apr 8, 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 Apr 8, 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.

5 participants