|
7 | 7 | "strings"
|
8 | 8 | "testing"
|
9 | 9 |
|
10 |
| - "github.com/gruntwork-io/terratest/modules/logger" |
11 |
| - terratest "github.com/gruntwork-io/terratest/modules/terraform" |
12 | 10 | "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
|
13 | 11 | "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
|
14 | 12 | "github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
|
@@ -302,55 +300,6 @@ func TestCreateRevokeQuery(t *testing.T) {
|
302 | 300 | }
|
303 | 301 | }
|
304 | 302 |
|
305 |
| -// Test the fix for |
306 |
| -// https://github.com/cyrilgdn/terraform-provider-postgresql/issues/178 |
307 |
| -func TestConcurrentPostgresqlGrant(t *testing.T) { |
308 |
| - var testcases = []struct { |
309 |
| - database_template string |
310 |
| - superuser bool |
311 |
| - }{ |
312 |
| - { |
313 |
| - "template0", |
314 |
| - true, |
315 |
| - }, |
316 |
| - { |
317 |
| - "template0", |
318 |
| - false, |
319 |
| - }, |
320 |
| - { |
321 |
| - "template1", |
322 |
| - true, |
323 |
| - }, |
324 |
| - { |
325 |
| - "template1", |
326 |
| - false, |
327 |
| - }, |
328 |
| - } |
329 |
| - |
330 |
| - for _, testCase := range testcases { |
331 |
| - testCase := testCase |
332 |
| - name := fmt.Sprintf("%s-%t", testCase.database_template, testCase.superuser) |
333 |
| - |
334 |
| - t.Run(name, func(t *testing.T) { |
335 |
| - t.Logf("Starting test loop with database template: %s and superuser: %t", testCase.database_template, testCase.superuser) |
336 |
| - |
337 |
| - terraformOptions := terratest.WithDefaultRetryableErrors(t, &terratest.Options{ |
338 |
| - TerraformDir: "../examples/issues/178", |
339 |
| - Logger: logger.Discard, |
340 |
| - Vars: map[string]interface{}{ |
341 |
| - "database_template": testCase.database_template, |
342 |
| - "superuser": testCase.superuser, |
343 |
| - }, |
344 |
| - }) |
345 |
| - |
346 |
| - defer terratest.Destroy(t, terraformOptions) |
347 |
| - |
348 |
| - terratest.InitAndApply(t, terraformOptions) |
349 |
| - }) |
350 |
| - |
351 |
| - } |
352 |
| -} |
353 |
| - |
354 | 303 | func TestAccPostgresqlGrant(t *testing.T) {
|
355 | 304 | skipIfNotAcc(t)
|
356 | 305 |
|
|
0 commit comments