forked from petoju/terraform-provider-mysql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change collation lookup to be durable across additional engine/versio…
…ns (petoju#158) * Change collation lookup to be durable across additional engine/versions This patch looks up collation based on INFORMATION_SCHEMA.COLLATIONS and scopes the response to just the two required columns. With this patch it's: 1. Mysql 5.7 and 8.0 without special casing 2. MariaDB without special casing 3. compatible with TiDB for 6.x and 7.x (v7.5.1 which advertises as 8.0.11-TiDB-v7.5.1 but lacks the 7th column in SHOW statement previously used) * Enable tidb testing for resource_database * Fix tests for TiDB and add TiDB 7.5 * Update README about local test running * Enable support for TiDB 7.5.2 and disable selective tests * Update mysql/provider.go * Remove debugging code * Refactor to simplify testAccs that overlap * Add back in test skips where it fails for TiDB 7.5.2 These are skipped because of syntactical differences between mysql and TiDB. These tend to have mariadb/rds/tidb matching more closely in behavior.
- Loading branch information
Showing
11 changed files
with
94 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,13 @@ $ make bin | |
$ $GOPATH/bin/terraform-provider-mysql | ||
... | ||
``` | ||
### Ensure local requirements are present: | ||
|
||
1. Docker environment | ||
2. mysql-client binary which can be installed on Mac with `brew install [email protected]` | ||
1. Then add it to your path OR `brew link [email protected]` | ||
|
||
### Running tests | ||
|
||
In order to test the provider, you can simply run `make test`. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters