Skip to content

Commit 9c69f42

Browse files
authored
Fix a few acceptance tests not makred with TestAcc (#15686)
1 parent 6a6634d commit 9c69f42

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

mmv1/third_party/terraform/services/apphub/data_source_apphub_application_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/hashicorp/terraform-provider-google/google/acctest"
88
)
99

10-
func TestDataSourceApphubApplication_basic(t *testing.T) {
10+
func TestAccDataSourceApphubApplication_basic(t *testing.T) {
1111
t.Parallel()
1212

1313
context := map[string]interface{}{
@@ -20,7 +20,7 @@ func TestDataSourceApphubApplication_basic(t *testing.T) {
2020
CheckDestroy: testAccCheckApphubApplicationDestroyProducer(t),
2121
Steps: []resource.TestStep{
2222
{
23-
Config: testDataSourceApphubApplication_basic(context),
23+
Config: testAccDataSourceApphubApplication_basic(context),
2424
Check: resource.ComposeTestCheckFunc(
2525
acctest.CheckDataSourceStateMatchesResourceState("data.google_apphub_application.example_data", "google_apphub_application.example"),
2626
),
@@ -29,7 +29,7 @@ func TestDataSourceApphubApplication_basic(t *testing.T) {
2929
})
3030
}
3131

32-
func testDataSourceApphubApplication_basic(context map[string]interface{}) string {
32+
func testAccDataSourceApphubApplication_basic(context map[string]interface{}) string {
3333
return acctest.Nprintf(`
3434
3535
data "google_apphub_application" "example_data" {

mmv1/third_party/terraform/services/containeranalysis/data_source_container_registry_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/hashicorp/terraform-provider-google/google/acctest"
88
)
99

10-
func TestDataSourceGoogleContainerRegistryRepository(t *testing.T) {
10+
func TestAccDataSourceGoogleContainerRegistryRepository(t *testing.T) {
1111
t.Parallel()
1212

1313
resourceName := "data.google_container_registry_repository.test"
@@ -41,7 +41,7 @@ data "google_container_registry_repository" "testScoped" {
4141
}
4242
`
4343

44-
func TestDataSourceGoogleContainerRegistryImage(t *testing.T) {
44+
func TestAccDataSourceGoogleContainerRegistryImage(t *testing.T) {
4545
t.Parallel()
4646

4747
resourceName := "data.google_container_registry_image.test"

mmv1/third_party/terraform/services/storage/resource_storage_bucket_object_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ func TestAccStorageObject_retention(t *testing.T) {
450450
})
451451
}
452452

453-
func TestResourceStorageBucketObjectUpdate_ContentChange(t *testing.T) {
453+
func TestAccResourceStorageBucketObjectUpdate_ContentChange(t *testing.T) {
454454
t.Parallel()
455455

456456
bucketName := acctest.TestBucketName(t)
@@ -467,7 +467,7 @@ func TestResourceStorageBucketObjectUpdate_ContentChange(t *testing.T) {
467467
CheckDestroy: testAccStorageObjectDestroyProducer(t),
468468
Steps: []resource.TestStep{
469469
{
470-
Config: testGoogleStorageBucketsObjectCustomContent(bucketName, string(initialContent)),
470+
Config: testAccGoogleStorageBucketsObjectCustomContent(bucketName, string(initialContent)),
471471
Check: resource.ComposeTestCheckFunc(
472472
testAccCheckGoogleStorageObjectCrc32cHash(t, bucketName, objectName, dataCrc32c),
473473
resource.TestCheckResourceAttr(
@@ -478,7 +478,7 @@ func TestResourceStorageBucketObjectUpdate_ContentChange(t *testing.T) {
478478
),
479479
},
480480
{
481-
Config: testGoogleStorageBucketsObjectCustomContent(bucketName, string(updatedContent)),
481+
Config: testAccGoogleStorageBucketsObjectCustomContent(bucketName, string(updatedContent)),
482482
Check: resource.ComposeTestCheckFunc(
483483
testAccCheckGoogleStorageObjectCrc32cHash(t, bucketName, objectName, newDataCrc32c),
484484
resource.TestCheckResourceAttr(
@@ -674,7 +674,7 @@ func testAccStorageObjectDestroyProducer(t *testing.T) func(s *terraform.State)
674674
}
675675
}
676676

677-
func testGoogleStorageBucketsObjectCustomContent(bucketName string, customContent string) string {
677+
func testAccGoogleStorageBucketsObjectCustomContent(bucketName string, customContent string) string {
678678
return fmt.Sprintf(`
679679
resource "google_storage_bucket" "bucket" {
680680
name = "%s"

0 commit comments

Comments
 (0)