/
infras.go
49 lines (44 loc) · 1 KB
/
infras.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package infra
import (
"github.com/Azure/azure-provider-external-dns-e2e/clients"
"github.com/google/uuid"
)
var (
rg = "sample3-routing-e2e" + uuid.New().String()
location = "westus"
)
// Infras is a list of infrastructure configurations the e2e tests will run against
var Infras = infras{
{
Name: "basic cluster",
ResourceGroup: rg,
Location: location,
Suffix: uuid.New().String(),
},
{
Name: "private cluster",
ResourceGroup: rg,
Location: location,
Suffix: uuid.New().String(),
McOpts: []clients.McOpt{clients.PrivateClusterOpt},
},
{
Name: "osm cluster",
ResourceGroup: rg,
Location: location,
Suffix: uuid.New().String(),
McOpts: []clients.McOpt{clients.OsmClusterOpt},
},
}
func (i infras) FilterNames(names []string) infras {
ret := infras{}
for _, infra := range i {
for _, name := range names {
if infra.Name == name {
ret = append(ret, infra)
break
}
}
}
return ret
}