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

Update bigtable import & tests to 3.0 #2673

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion third_party/terraform/resources/resource_bigtable_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func resourceBigtableTableImport(d *schema.ResourceData, meta interface{}) ([]*s
}

// Replace import id for the resource id
id, err := replaceVars(d, config, "{{name}}")
id, err := replaceVars(d, config, "projects/{{project}}/instances/{{instance_name}}/tables/{{name}}")
if err != nil {
return nil, fmt.Errorf("Error constructing id: %s", err)
}
Expand Down
5 changes: 0 additions & 5 deletions third_party/terraform/tests/resource_bigtable_table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ func TestAccBigtableTable_basic(t *testing.T) {
ResourceName: "google_bigtable_table.table",
ImportState: true,
ImportStateVerify: true,
//TODO(rileykarson): Remove ImportStateId when id format is fixed in 3.0.0
ImportStateId: fmt.Sprintf("%s/%s", instanceName, tableName),
},
},
})
Expand All @@ -54,7 +52,6 @@ func TestAccBigtableTable_splitKeys(t *testing.T) {
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"split_keys"},
ImportStateId: fmt.Sprintf("%s/%s", instanceName, tableName),
},
},
})
Expand All @@ -79,7 +76,6 @@ func TestAccBigtableTable_family(t *testing.T) {
ResourceName: "google_bigtable_table.table",
ImportState: true,
ImportStateVerify: true,
ImportStateId: fmt.Sprintf("%s/%s", instanceName, tableName),
},
},
})
Expand All @@ -104,7 +100,6 @@ func TestAccBigtableTable_familyMany(t *testing.T) {
ResourceName: "google_bigtable_table.table",
ImportState: true,
ImportStateVerify: true,
ImportStateId: fmt.Sprintf("%s/%s", instanceName, tableName),
},
},
})
Expand Down