mustInject runs injection and fails the test on a (hard) error.
(t *testing.T, token, team string, sources []*specs.Source, destinations []*specs.Destination)
| 38 | |
| 39 | // mustInject runs injection and fails the test on a (hard) error. |
| 40 | func mustInject(t *testing.T, token, team string, sources []*specs.Source, destinations []*specs.Destination) []*specs.Destination { |
| 41 | t.Helper() |
| 42 | got, err := MaybeInjectDestination(context.Background(), zerolog.Nop(), token, team, sources, destinations) |
| 43 | require.NoError(t, err) |
| 44 | return got |
| 45 | } |
| 46 | |
| 47 | func tenantItem(id, tenantStatus, team string) map[string]any { |
| 48 | return map[string]any{"tenant_id": id, "status": tenantStatus, "team_name": team} |
no test coverage detected