1
1
package gemini_test
2
- {{- if ne $.TargetVersionName "ga" }}
3
2
4
3
import (
5
4
"fmt"
@@ -21,7 +20,7 @@ func TestAccGeminiDataSharingWithGoogleSettingBinding_update(t *testing.T) {
21
20
22
21
acctest.VcrTest(t, resource.TestCase{
23
22
PreCheck: func() { acctest.AccTestPreCheck(t) },
24
- ProtoV5ProviderFactories: acctest.ProtoV5ProviderBetaFactories (t),
23
+ ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories (t),
25
24
Steps: []resource.TestStep{
26
25
{
27
26
Config: testAccGeminiDataSharingWithGoogleSettingBinding_basic(context),
@@ -53,19 +52,16 @@ func TestAccGeminiDataSharingWithGoogleSettingBinding_update(t *testing.T) {
53
52
func testAccGeminiDataSharingWithGoogleSettingBinding_basic(context map[string]interface{}) string {
54
53
return acctest.Nprintf(`
55
54
data "google_project" "project" {
56
- provider = google-beta
57
55
}
58
56
59
57
resource "google_gemini_data_sharing_with_google_setting" "basic" {
60
- provider = google-beta
61
58
data_sharing_with_google_setting_id = "%{data_sharing_with_google_setting_id}"
62
59
location = "global"
63
60
labels = {"my_key" = "my_value"}
64
61
enable_preview_data_sharing = true
65
62
}
66
63
67
64
resource "google_gemini_data_sharing_with_google_setting_binding" "basic_binding" {
68
- provider = google-beta
69
65
data_sharing_with_google_setting_id = google_gemini_data_sharing_with_google_setting.basic.data_sharing_with_google_setting_id
70
66
setting_binding_id = "%{setting_binding_id}"
71
67
location = "global"
@@ -77,26 +73,22 @@ resource "google_gemini_data_sharing_with_google_setting_binding" "basic_binding
77
73
func testAccGeminiDataSharingWithGoogleSettingBinding_update(context map[string]interface{}) string {
78
74
return acctest.Nprintf(`
79
75
data "google_project" "project" {
80
- provider = google-beta
81
76
}
82
77
83
78
resource "google_gemini_data_sharing_with_google_setting" "basic" {
84
- provider = google-beta
85
79
data_sharing_with_google_setting_id = "%{data_sharing_with_google_setting_id}"
86
80
location = "global"
87
81
labels = {"my_key" = "my_value"}
88
82
enable_preview_data_sharing = true
89
83
}
90
84
91
85
resource "google_gemini_data_sharing_with_google_setting_binding" "basic_binding" {
92
- provider = google-beta
93
86
data_sharing_with_google_setting_id = google_gemini_data_sharing_with_google_setting.basic.data_sharing_with_google_setting_id
94
87
setting_binding_id = "%{setting_binding_id}"
95
88
location = "global"
96
89
target = "projects/${data.google_project.project.number}"
97
90
labels = {"my_key" = "my_value"}
98
- product = "GEMINI_CODE_ASSIST "
91
+ product = "GEMINI_CLOUD_ASSIST "
99
92
}
100
93
`, context)
101
94
}
102
- {{ end }}
0 commit comments