providers/aws: fix failing test
This commit is contained in:
parent
bd3bc03c5f
commit
c5c72b1ce1
|
@ -170,7 +170,14 @@ func Test_flattenIPPerms(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func Test_expandListeners(t *testing.T) {
|
func Test_expandListeners(t *testing.T) {
|
||||||
expanded := flatmap.Expand(testConf(), "listener").([]interface{})
|
expanded := []interface{}{
|
||||||
|
map[string]interface{}{
|
||||||
|
"instance_port": 8000,
|
||||||
|
"lb_port": 80,
|
||||||
|
"instance_protocol": "http",
|
||||||
|
"lb_protocol": "http",
|
||||||
|
},
|
||||||
|
}
|
||||||
listeners, err := expandListeners(expanded)
|
listeners, err := expandListeners(expanded)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("bad: %#v", err)
|
t.Fatalf("bad: %#v", err)
|
||||||
|
|
Loading…
Reference in New Issue