mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-09 16:52:51 +01:00
test: add upgrade tests (#1126)
This commit is contained in:
21
fakedata/default_test.go
Normal file
21
fakedata/default_test.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package fakedata_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/SecurityBrewery/catalyst/fakedata"
|
||||
catalystTesting "github.com/SecurityBrewery/catalyst/testing"
|
||||
)
|
||||
|
||||
func TestDefaultData(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
app, _, cleanup := catalystTesting.App(t)
|
||||
defer cleanup()
|
||||
|
||||
require.NoError(t, fakedata.GenerateDefaultData(app))
|
||||
|
||||
require.NoError(t, fakedata.ValidateDefaultData(app))
|
||||
}
|
||||
Reference in New Issue
Block a user