(t *testing.T, machineID string, config *csconfig.DatabaseCfg)
| 195 | } |
| 196 | |
| 197 | func GetMachineIP(t *testing.T, machineID string, config *csconfig.DatabaseCfg) string { |
| 198 | ctx := t.Context() |
| 199 | |
| 200 | dbClient, err := database.NewClient(ctx, config, nil) |
| 201 | require.NoError(t, err) |
| 202 | |
| 203 | machines, err := dbClient.ListMachines(ctx) |
| 204 | require.NoError(t, err) |
| 205 | |
| 206 | for _, machine := range machines { |
| 207 | if machine.MachineId == machineID { |
| 208 | return machine.IpAddress |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | return "" |
| 213 | } |
| 214 | |
| 215 | func GetBouncers(t *testing.T, config *csconfig.DatabaseCfg) []*ent.Bouncer { |
| 216 | ctx := t.Context() |
no test coverage detected
searching dependent graphs…