Commit 2aa2dd2a authored by Sietse Ringers's avatar Sietse Ringers
Browse files

refactor: move keyshare SQL schema file up to server/keyshare

parent 2decc191
......@@ -128,10 +128,10 @@ func TestPostgresDBPinReservation(t *testing.T) {
}
func SetupDatabase(t *testing.T) {
test.RunScriptOnDB(t, "cleanup.sql", true)
test.RunScriptOnDB(t, "schema.sql", false)
test.RunScriptOnDB(t, "../cleanup.sql", true)
test.RunScriptOnDB(t, "../schema.sql", false)
}
func TeardownDatabase(t *testing.T) {
test.RunScriptOnDB(t, "cleanup.sql", false)
test.RunScriptOnDB(t, "../cleanup.sql", false)
}
......@@ -229,10 +229,10 @@ func TestPostgresDBUserInfo(t *testing.T) {
}
func SetupDatabase(t *testing.T) {
test.RunScriptOnDB(t, "../keyshareserver/cleanup.sql", true)
test.RunScriptOnDB(t, "../keyshareserver/schema.sql", false)
test.RunScriptOnDB(t, "../cleanup.sql", true)
test.RunScriptOnDB(t, "../schema.sql", false)
}
func TeardownDatabase(t *testing.T) {
test.RunScriptOnDB(t, "../keyshareserver/cleanup.sql", false)
test.RunScriptOnDB(t, "../cleanup.sql", false)
}
......@@ -129,10 +129,10 @@ func TestExpireAccounts(t *testing.T) {
}
func SetupDatabase(t *testing.T) {
test.RunScriptOnDB(t, "../keyshareserver/cleanup.sql", true)
test.RunScriptOnDB(t, "../keyshareserver/schema.sql", false)
test.RunScriptOnDB(t, "../cleanup.sql", true)
test.RunScriptOnDB(t, "../schema.sql", false)
}
func TeardownDatabase(t *testing.T) {
test.RunScriptOnDB(t, "../keyshareserver/cleanup.sql", false)
test.RunScriptOnDB(t, "../cleanup.sql", false)
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment