@@ -210,10 +210,12 @@ func TestCreateAccountDacWithAws(t *testing.T) {
210210 {
211211 Method : "GET" ,
212212 Resource : "/api/2.0/accounts/100/metastores/abc/storage-credentials/bcd?" ,
213- Response : catalog.StorageCredentialInfo {
214- Name : "bcd" ,
215- AwsIamRole : & catalog.AwsIamRole {
216- RoleArn : "def" ,
213+ Response : catalog.AccountsStorageCredentialInfo {
214+ CredentialInfo : & catalog.StorageCredentialInfo {
215+ Name : "bcd" ,
216+ AwsIamRole : & catalog.AwsIamRole {
217+ RoleArn : "def" ,
218+ },
217219 },
218220 },
219221 },
@@ -275,10 +277,12 @@ func TestCreateAccountDacWithAzMI(t *testing.T) {
275277 {
276278 Method : "GET" ,
277279 Resource : "/api/2.0/accounts/100/metastores/abc/storage-credentials/bcd?" ,
278- Response : catalog.StorageCredentialInfo {
279- Name : "bcd" ,
280- AzureManagedIdentity : & catalog.AzureManagedIdentity {
281- AccessConnectorId : "def" ,
280+ Response : catalog.AccountsStorageCredentialInfo {
281+ CredentialInfo : & catalog.StorageCredentialInfo {
282+ Name : "bcd" ,
283+ AzureManagedIdentity : & catalog.AzureManagedIdentity {
284+ AccessConnectorId : "def" ,
285+ },
282286 },
283287 },
284288 },
@@ -341,10 +345,12 @@ func TestCreateAccountDacWithDbGcpSA(t *testing.T) {
341345 {
342346 Method : "GET" ,
343347 Resource : "/api/2.0/accounts/100/metastores/abc/storage-credentials/bcd?" ,
344- Response : catalog.StorageCredentialInfo {
345- Name : "bcd" ,
346- DatabricksGcpServiceAccount : & catalog.DatabricksGcpServiceAccountResponse {
347- 348+ Response : catalog.AccountsStorageCredentialInfo {
349+ CredentialInfo : & catalog.StorageCredentialInfo {
350+ Name : "bcd" ,
351+ DatabricksGcpServiceAccount : & catalog.DatabricksGcpServiceAccountResponse {
352+ 353+ },
348354 },
349355 },
350356 },
@@ -367,5 +373,9 @@ func TestCreateAccountDacWithDbGcpSA(t *testing.T) {
367373 is_default = true
368374 databricks_gcp_service_account {}
369375 ` ,
370- }.ApplyNoError (t )
376+ }.ApplyAndExpectData (t ,
377+ map [string ]any {
378+ "databricks_gcp_service_account.#" : 1 ,
379+ "databricks_gcp_service_account.0.email" :
"[email protected] " ,
380+ })
371381}
0 commit comments