Merged in bugfix/tests (pull request #107)
Fix Fullsuite * save * foundthefix.. * codeandrequire
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
"github.com/google/uuid"
|
||||
"github.com/labstack/echo/v4"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestTriggerExport(t *testing.T) {
|
||||
@@ -22,7 +23,7 @@ func TestTriggerExport(t *testing.T) {
|
||||
cons := queryapi.NewControllers(&queryapi.Services{})
|
||||
|
||||
err := cons.TriggerExport(ctx, "clientid")
|
||||
assert.NoError(t, err)
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, http.StatusOK, rec.Code)
|
||||
assert.NotEmpty(t, rec.Body.String())
|
||||
}
|
||||
@@ -38,7 +39,7 @@ func TestExportState(t *testing.T) {
|
||||
id := uuid.New()
|
||||
|
||||
err := cons.ExportState(ctx, id)
|
||||
assert.NoError(t, err)
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, http.StatusOK, rec.Code)
|
||||
assert.NotEmpty(t, rec.Body.String())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user