Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.9.2
3.9.3
2 changes: 1 addition & 1 deletion provider/data_source_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func dataSourceDatabase() *schema.Resource {

func dataSourceDatabaseRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
c := m.(api.Client)
databaseName := d.Get("database").(string)
databaseName := d.Get("name").(string)

database, err := c.GetDatabase(ctx, databaseName)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion provider/data_source_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func TestAccInstanceDataSource_NotFound(t *testing.T) {
"test_instance",
"mock-id",
),
ExpectError: regexp.MustCompile("Cannot found instance"),
ExpectError: regexp.MustCompile(`Cannot found instance`),
},
},
})
Expand Down
2 changes: 1 addition & 1 deletion provider/data_source_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func TestAccPolicyDataSource_NotFound(t *testing.T) {
"",
v1pb.PolicyType_MASKING_EXCEPTION,
),
ExpectError: regexp.MustCompile("Cannot found policy projects/project-sample/policies/MASKING_EXCEPTION"),
ExpectError: regexp.MustCompile(`Cannot found policy projects/project-sample/policies/MASKING_EXCEPTION`),
},
},
})
Expand Down
2 changes: 1 addition & 1 deletion provider/data_source_project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func TestAccProjectDataSource_NotFound(t *testing.T) {
"mock_instance",
"mock-id",
),
ExpectError: regexp.MustCompile("Cannot found project"),
ExpectError: regexp.MustCompile(`Cannot found project`),
},
},
})
Expand Down
3 changes: 3 additions & 0 deletions provider/data_source_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ func dataSourceUserRead(ctx context.Context, d *schema.ResourceData, m interface
}

func setUser(d *schema.ResourceData, user *v1pb.User) diag.Diagnostics {
if err := d.Set("name", user.Name); err != nil {
return diag.Errorf("cannot set name for user: %s", err.Error())
}
if err := d.Set("title", user.Title); err != nil {
return diag.Errorf("cannot set title for user: %s", err.Error())
}
Expand Down
Loading