Update mssql_test.go

adding schema env variable
This commit is contained in:
Kedar Kale
2019-04-02 15:12:30 +05:30
parent b390fccd00
commit 4219166914

View File

@@ -27,6 +27,11 @@ func TestMSSQLBackend(t *testing.T) {
table = "test"
}
schema := os.Getenv("MSSQL_SCHEMA")
if schema == "" {
schema = "test"
}
username := os.Getenv("MSSQL_USERNAME")
password := os.Getenv("MSSQL_PASSWORD")
@@ -37,6 +42,7 @@ func TestMSSQLBackend(t *testing.T) {
"server": server,
"database": database,
"table": table,
"schema": schema,
"username": username,
"password": password,
}, logger)
@@ -73,6 +79,11 @@ func TestMSSQLBackend_schema(t *testing.T) {
table = "test"
}
schema := os.Getenv("MSSQL_SCHEMA")
if schema == "" {
schema = "test"
}
username := os.Getenv("MSSQL_USERNAME")
password := os.Getenv("MSSQL_PASSWORD")
@@ -82,7 +93,7 @@ func TestMSSQLBackend_schema(t *testing.T) {
b, err := NewMSSQLBackend(map[string]string{
"server": server,
"database": database,
"schema": "test",
"schema": schema,
"table": table,
"username": username,
"password": password,