Skip to content

Commit 6338e4b

Browse files
committed
Added case-insensitive comparison for permissions
1 parent 1329bc5 commit 6338e4b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mysql/resource_grant_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func TestAccDifferentHosts(t *testing.T) {
165165
})
166166
}
167167

168-
func TestRoleGrantsOnColumns(t *testing.T) {
168+
func TestGrantsOnColumnsWithUserDefaultRole(t *testing.T) {
169169
dbName := fmt.Sprintf("tf-test-%d", rand.Intn(100))
170170
userNameA := "jda"
171171
userNameB := "jdb"
@@ -177,7 +177,9 @@ func TestRoleGrantsOnColumns(t *testing.T) {
177177
resource.Test(t, resource.TestCase{
178178
PreCheck: func() {
179179
testAccPreCheckSkipRds(t)
180-
testAccPreCheckSkipTiDB(t) // role grants are not supported by this version of MySQL
180+
testAccPreCheckSkipMariaDB(t) // user-default roles are not supported on MariaDB when using the provider
181+
testAccPreCheckSkipNotMySQLVersionMin(t, "8.0.0") // user-default roles are not supported on MariaDB when using the provider
182+
testAccPreCheckSkipTiDB(t) // role grants are not supported by this version of MySQL
181183
},
182184
ProviderFactories: testAccProviderFactories,
183185
CheckDestroy: testAccGrantCheckDestroy,

0 commit comments

Comments
 (0)