-
Notifications
You must be signed in to change notification settings - Fork 502
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
services/federation: discontinue mysql support (#1753)
Discontinue support for MySQL in the Federation service. #1706 made the decision that we should remove mysql support from Federation due to limited users of that functionality and a lack of maintenance and testing in comparison to the main database solutions the other reference service implementations use, PostgreSQL. Federation was the last service using MySQL in the repository, which also allows for it to be removed from the CircleCI setup and the client as a dependency. - Remove mysql from Federation, displaying a meaningful error saying support is discontinued - Add note to Federation CHANGELOG - Update READMEs - Remove from CircleCI config - Remove packages supporting testing MySQL DBs - Remove import of MySQL driver
- Loading branch information
1 parent
9894808
commit 00db88c
Showing
9 changed files
with
48 additions
and
74 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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package main | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stellar/go/support/db/dbtest" | ||
"github.com/stellar/go/support/errors" | ||
"github.com/stretchr/testify/assert" | ||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func TestInitDriver_dialect(t *testing.T) { | ||
c := Config{} | ||
|
||
testCases := []struct { | ||
dbType string | ||
dbDSN string | ||
wantErr error | ||
}{ | ||
{dbType: "", wantErr: errors.New("Invalid db type: ")}, | ||
{dbType: "postgres", dbDSN: dbtest.Postgres(t).DSN, wantErr: nil}, | ||
{dbType: "mysql", wantErr: errors.New("Invalid db type: mysql, mysql support is discontinued")}, | ||
{dbType: "bogus", wantErr: errors.New("Invalid db type: bogus")}, | ||
} | ||
|
||
for _, tc := range testCases { | ||
t.Run(tc.dbType, func(t *testing.T) { | ||
c.Database.Type = tc.dbType | ||
c.Database.DSN = tc.dbDSN | ||
_, err := initDriver(c) | ||
if tc.wantErr == nil { | ||
require.Nil(t, err) | ||
} else { | ||
require.NotNil(t, err) | ||
assert.Equal(t, tc.wantErr.Error(), err.Error()) | ||
} | ||
}) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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