2024-02-10 18:17:33 +00:00
|
|
|
package tests_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http/httptest"
|
|
|
|
|
|
|
|
"github.com/pikami/cosmium/api"
|
2024-02-21 21:40:54 +00:00
|
|
|
"github.com/pikami/cosmium/api/config"
|
2024-02-10 18:17:33 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func runTestServer() *httptest.Server {
|
2024-02-21 21:40:54 +00:00
|
|
|
config.Config.AccountKey = config.DefaultAccountKey
|
|
|
|
|
2024-02-10 18:17:33 +00:00
|
|
|
return httptest.NewServer(api.CreateRouter())
|
|
|
|
}
|
|
|
|
|
|
|
|
const (
|
|
|
|
testAccountKey = "account-key"
|
|
|
|
testDatabaseName = "test-db"
|
|
|
|
testCollectionName = "test-coll"
|
|
|
|
)
|