(m *testing.M)
| 49 | ) |
| 50 | |
| 51 | func TestMain(m *testing.M) { |
| 52 | var ( |
| 53 | svc *service_orchestrator.Service |
| 54 | err error |
| 55 | ) |
| 56 | |
| 57 | clitest.AutoChdir() |
| 58 | |
| 59 | svc = service_orchestrator.NewService() |
| 60 | _, err = svc.CreateDefaultCertificationTarget() |
| 61 | if err != nil { |
| 62 | panic(err) |
| 63 | } |
| 64 | |
| 65 | _, err = svc.CreateCatalog(context.TODO(), &orchestrator.CreateCatalogRequest{Catalog: orchestratortest.NewCatalog()}) |
| 66 | if err != nil { |
| 67 | panic(err) |
| 68 | } |
| 69 | |
| 70 | os.Exit(clitest.RunCLITest(m, server.WithServices(svc))) |
| 71 | } |
| 72 | |
| 73 | func TestSession(t *testing.T) { |
| 74 | var ( |
nothing calls this directly
no test coverage detected