From 4993eae2d91d89840c75f6e0e3e01a76941c8534 Mon Sep 17 00:00:00 2001
From: Niall Sheridan <nsheridan@gmail.com>
Date: Fri, 27 Jan 2017 12:23:46 +0000
Subject: Remove DatastoreConversion test

It's going away
---
 server/config/config_test.go | 27 ---------------------------
 1 file changed, 27 deletions(-)

(limited to 'server/config')

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)
-	}
-}
-- 
cgit v1.2.3