()
| 56 | } |
| 57 | |
| 58 | func (s *GithubTestSuite) SetupTest() { |
| 59 | ctx := context.Background() |
| 60 | watcher.InitWatcher(ctx) |
| 61 | db, err := NewSQLDatabase(ctx, garmTesting.GetTestSqliteDBConfig(s.T())) |
| 62 | if err != nil { |
| 63 | s.FailNow(fmt.Sprintf("failed to create db connection: %s", err)) |
| 64 | } |
| 65 | s.db = db |
| 66 | } |
| 67 | |
| 68 | func (s *GithubTestSuite) TestDefaultEndpointGetsCreatedAutomaticallyIfNoOtherEndpointExists() { |
| 69 | ctx := garmTesting.ImpersonateAdminContext(context.Background(), s.db, s.T()) |
nothing calls this directly
no test coverage detected