terraform-provider-google/google/resource_containeranalysis_note_generated_test.go
The Magician 1b88724449 Add example tests for Redis, Filestore, ContainerAnalysis (#2131)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-10-05 15:28:31 -07:00

58 lines
1.5 KiB
Go

// ----------------------------------------------------------------------------
//
// *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
//
// ----------------------------------------------------------------------------
//
// This file is automatically generated by Magic Modules and manual
// changes will be clobbered when the file is regenerated.
//
// Please read more about how to change this file in
// .github/CONTRIBUTING.md.
//
// ----------------------------------------------------------------------------
package google
import (
"fmt"
"testing"
"github.com/hashicorp/terraform/helper/acctest"
"github.com/hashicorp/terraform/helper/resource"
)
func TestAccContainerAnalysisNote_containerAnalysisNoteBasicExample(t *testing.T) {
t.Parallel()
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckContainerAnalysisNoteDestroy,
Steps: []resource.TestStep{
{
Config: testAccContainerAnalysisNote_containerAnalysisNoteBasicExample(acctest.RandString(10)),
},
{
ResourceName: "google_container_analysis_note.note",
ImportState: true,
ImportStateVerify: true,
},
},
})
}
func testAccContainerAnalysisNote_containerAnalysisNoteBasicExample(val string) string {
return fmt.Sprintf(`
resource "google_container_analysis_note" "note" {
name = "test-attestor-note-%s"
attestation_authority {
hint {
human_readable_name = "Attestor Note"
}
}
}
`, val,
)
}