func (s *workItemLinkTypeSuite) SetupSuite() {
	s.DBTestSuite.SetupSuite()
	ctx := migration.NewMigrationContext(context.Background())
	s.DBTestSuite.PopulateDBTestSuite(ctx)

	svc := goa.New("workItemLinkTypeSuite-Service")
	require.NotNil(s.T(), svc)
	s.linkTypeCtrl = NewWorkItemLinkTypeController(svc, gormapplication.NewGormDB(s.DB))
	require.NotNil(s.T(), s.linkTypeCtrl)
	s.linkCatCtrl = NewWorkItemLinkCategoryController(svc, gormapplication.NewGormDB(s.DB))
	require.NotNil(s.T(), s.linkCatCtrl)
	s.typeCtrl = NewWorkitemtypeController(svc, gormapplication.NewGormDB(s.DB), s.Configuration)
	require.NotNil(s.T(), s.typeCtrl)
	priv, _ := almtoken.ParsePrivateKey([]byte(almtoken.RSAPrivateKey))
	s.svc = testsupport.ServiceAsUser("workItemLinkSpace-Service", almtoken.NewManagerWithPrivateKey(priv), testsupport.TestIdentity)
	s.spaceCtrl = NewSpaceController(svc, gormapplication.NewGormDB(s.DB), wiltConfiguration, &DummyResourceManager{})
	require.NotNil(s.T(), s.spaceCtrl)
	s.spaceName = "test-space" + uuid.NewV4().String()
	s.categoryName = "test-workitem-category" + uuid.NewV4().String()
	s.linkTypeName = "test-workitem-link-type" + uuid.NewV4().String()
	s.linkName = "test-workitem-link" + uuid.NewV4().String()
}
// The SetupSuite method will run before the tests in the suite are run.
// It sets up a database connection for all the tests in this suite without polluting global space.
The SetupSuite method will run before the tests in the suite are run.
It sets up a database connection for all the tests in this suite without polluting global space.
// The SetupSuite method will run before the tests in the suite are run . // It sets up a database connection for all the tests in this suite without polluting global space .
func (s *workItemLinkTypeSuite) SetupSuite() {
	s.DBTestSuite.SetupSuite()
	ctx := migration.NewMigrationContext(context.Background())
	s.DBTestSuite.PopulateDBTestSuite(ctx)
	svc := goa.New("workItemLinkTypeSuite-Service")
	require.NotNil(s.T(), svc)
	s.linkTypeCtrl = NewWorkItemLinkTypeController(svc, gormapplication.NewGormDB(s.DB))
	require.NotNil(s.T(), s.linkTypeCtrl)
	s.linkCatCtrl = NewWorkItemLinkCategoryController(svc, gormapplication.NewGormDB(s.DB))
	require.NotNil(s.T(), s.linkCatCtrl)
	s.typeCtrl = NewWorkitemtypeController(svc, gormapplication.NewGormDB(s.DB), s.Configuration)
	require.NotNil(s.T(), s.typeCtrl)
	priv, _ := almtoken.ParsePrivateKey([]byte(almtoken.RSAPrivateKey))
	s.svc = testsupport.ServiceAsUser("workItemLinkSpace-Service", almtoken.NewManagerWithPrivateKey(priv), testsupport.TestIdentity)
	s.spaceCtrl = NewSpaceController(svc, gormapplication.NewGormDB(s.DB), wiltConfiguration, &DummyResourceManager{})
	require.NotNil(s.T(), s.spaceCtrl)
	s.spaceName = "test-space" + uuid.NewV4().String()
	s.categoryName = "test-workitem-category" + uuid.NewV4().String()
	s.linkTypeName = "test-workitem-link-type" + uuid.NewV4().String()
	s.linkName = "test-workitem-link" + uuid.NewV4().String()
}
func ( s * workItemLinkTypeSuite ) SetupSuite ( ) { s . DBTestSuite . SetupSuite ( ) ctx := migration . NewMigrationContext ( context . Background ( ) ) s . DBTestSuite . PopulateDBTestSuite ( ctx ) svc := goa . New ( " " ) require . NotNil ( s . T ( ) , svc ) s . linkTypeCtrl = NewWorkItemLinkTypeController ( svc , gormapplication . NewGormDB ( s . DB ) ) require . NotNil ( s . T ( ) , s . linkTypeCtrl ) s . linkCatCtrl = NewWorkItemLinkCategoryController ( svc , gormapplication . NewGormDB ( s . DB ) ) require . NotNil ( s . T ( ) , s . linkCatCtrl ) s . typeCtrl = NewWorkitemtypeController ( svc , gormapplication . NewGormDB ( s . DB ) , s . Configuration ) require . NotNil ( s . T ( ) , s . typeCtrl ) priv , _ := almtoken . ParsePrivateKey ( [ ] byte ( almtoken . RSAPrivateKey ) ) s . svc = testsupport . ServiceAsUser ( " " , almtoken . NewManagerWithPrivateKey ( priv ) , testsupport . TestIdentity ) s . spaceCtrl = NewSpaceController ( svc , gormapplication . NewGormDB ( s . DB ) , wiltConfiguration , & DummyResourceManager { } ) require . NotNil ( s . T ( ) , s . spaceCtrl ) s . spaceName = " " + uuid . NewV4 ( ) . String ( ) s . categoryName = " " + uuid . NewV4 ( ) . String ( ) s . linkTypeName = " " + uuid . NewV4 ( ) . String ( ) s . linkName = " " + uuid . NewV4 ( ) . String ( ) }
The SetupSuite method will run before the tests in the suite are run.
The SetupSuite method will run before the tests in the suite are run .