mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-01 07:42:40 +00:00
![Joe Selman](/assets/img/avatar_default.png)
* Add support for google_compute_project_metadata_item This allows terraform users to manage single key/value items within the project metadata map, rather than the entire map itself. * Update CHANGELOG.md * Add details about import
26 lines
588 B
Go
26 lines
588 B
Go
package google
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/hashicorp/terraform/helper/resource"
|
|
)
|
|
|
|
func TestAccComputeProjectMetadataItem_importBasic(t *testing.T) {
|
|
resource.Test(t, resource.TestCase{
|
|
PreCheck: func() { testAccPreCheck(t) },
|
|
Providers: testAccProviders,
|
|
CheckDestroy: testAccCheckProjectMetadataItemDestroy,
|
|
Steps: []resource.TestStep{
|
|
{
|
|
Config: testAccProjectMetadataItem_basic("myKey", "myValue"),
|
|
},
|
|
{
|
|
ResourceName: "google_compute_project_metadata_item.foobar",
|
|
ImportState: true,
|
|
ImportStateVerify: true,
|
|
},
|
|
},
|
|
})
|
|
}
|