aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2017-01-27 12:23:46 +0000
committerNiall Sheridan <nsheridan@gmail.com>2017-01-27 12:23:46 +0000
commit4993eae2d91d89840c75f6e0e3e01a76941c8534 (patch)
tree805b489fd3f88f2da46dbff10f77ee5d18f3077d
parent10dfd24117094ed81197c764af25cafe12a25dfd (diff)
Remove DatastoreConversion test
It's going away
-rw-r--r--server/config/config_test.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/server/config/config_test.go b/server/config/config_test.go
index b3f356e..5536a4e 100644
--- a/server/config/config_test.go
+++ b/server/config/config_test.go
@@ -58,30 +58,3 @@ func TestConfigVerify(t *testing.T) {
_, err := ReadConfig("testdata/empty.config")
assert.Contains(t, err.Error(), "missing ssh config section", "missing server config section", "missing auth config section")
}
-
-func TestDatastoreConversion(t *testing.T) {
- tests := []struct {
- in string
- out Database
- }{
- {
- "mysql:user:passwd:localhost:3306", Database{"type": "mysql", "username": "user", "password": "passwd", "address": "localhost:3306"},
- },
- {
- "mem", Database{"type": "mem"},
- },
- {
- "sqlite:/data/certs.db", Database{"type": "sqlite", "filename": "/data/certs.db"},
- },
- }
-
- for _, tc := range tests {
- config := &Config{
- Server: &Server{
- Datastore: tc.in,
- },
- }
- convertDatastoreConfig(config)
- assert.EqualValues(t, config.Server.Database, tc.out)
- }
-}