Merged in bugfix/tests (pull request #107)

Fix Fullsuite

* save

* foundthefix..

* codeandrequire
This commit is contained in:
Michael McGuinness
2025-03-19 11:54:14 +00:00
parent 3dd0c718cd
commit 1587da9d11
101 changed files with 977 additions and 910 deletions
+3 -2
View File
@@ -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())
}