Merged in feature/mockserver (pull request #135)
Single Mock Server * mockserver * mockserver * reqs * mockserver * slowrunner * someoptimisedqueries * passedfullsuite * passedfullsuite
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
package queryapi_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
queryapi "queryorchestration/api/queryAPI"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestNewControllers(t *testing.T) {
|
||||
cons := queryapi.NewControllers(&queryapi.Services{})
|
||||
assert.NotNil(t, cons)
|
||||
}
|
||||
@@ -105,7 +105,6 @@ func TestListQueries(t *testing.T) {
|
||||
var res queryapi.ListQueries
|
||||
err = json.Unmarshal(rec.Body.Bytes(), &res)
|
||||
require.NoError(t, err)
|
||||
assert.NotNil(t, res.Queries)
|
||||
assert.ElementsMatch(t, res.Queries, []queryapi.Query{
|
||||
{
|
||||
Id: id,
|
||||
|
||||
@@ -10,6 +10,7 @@ import (
|
||||
queryapi "queryorchestration/api/queryAPI"
|
||||
"queryorchestration/internal/client"
|
||||
"queryorchestration/internal/database/repository"
|
||||
"queryorchestration/internal/export"
|
||||
"queryorchestration/internal/serviceconfig"
|
||||
|
||||
"github.com/labstack/echo/v4"
|
||||
@@ -27,6 +28,7 @@ func TestGetClientStatus(t *testing.T) {
|
||||
|
||||
cons := queryapi.NewControllers(&queryapi.Services{
|
||||
Client: client.New(cfg),
|
||||
Export: export.New(),
|
||||
})
|
||||
|
||||
e := echo.New()
|
||||
|
||||
Reference in New Issue
Block a user