feat: add initial migration hook
This commit is contained in:
1 parent
79866a287f
commit
27e9f775be
174 files changed
+4234
-2180
No files matched your search
@@ -10,14 +10,14 @@ import (
|
||||
)
|
||||
|
||||
// TestCatalogs creates count number of static host catalogs to the provided DB
|
||||
// with the provided scope id. If any errors are encountered during the creation of
|
||||
// with the provided project id. If any errors are encountered during the creation of
|
||||
// the host catalog, the test will fail.
|
||||
func TestCatalogs(t testing.TB, conn *db.DB, scopeId string, count int) []*HostCatalog {
|
||||
func TestCatalogs(t testing.TB, conn *db.DB, projectId string, count int) []*HostCatalog {
|
||||
t.Helper()
|
||||
assert := assert.New(t)
|
||||
var cats []*HostCatalog
|
||||
for i := 0; i < count; i++ {
|
||||
cat, err := NewHostCatalog(scopeId)
|
||||
cat, err := NewHostCatalog(projectId)
|
||||
assert.NoError(err)
|
||||
assert.NotNil(cat)
|
||||
id, err := newHostCatalogId()
|
||||
|
||||
Reference in new issue
Block a user