update lambda function association test for new hash order
This commit is contained in:
parent
fa7eecf508
commit
9c5a25dd48
|
@ -462,8 +462,11 @@ func TestCloudFrontStructure_expandLambdaFunctionAssociations(t *testing.T) {
|
|||
if len(lfa.Items) != 2 {
|
||||
t.Fatalf("Expected Items to be len 2, got %v", len(lfa.Items))
|
||||
}
|
||||
if et := "origin-response"; *lfa.Items[0].EventType != et {
|
||||
t.Fatalf("Expected first Item's EventType to be len %q, got %q", et, *lfa.Items[0].EventType)
|
||||
if et := "viewer-request"; *lfa.Items[0].EventType != et {
|
||||
t.Fatalf("Expected first Item's EventType to be %q, got %q", et, *lfa.Items[0].EventType)
|
||||
}
|
||||
if et := "origin-response"; *lfa.Items[1].EventType != et {
|
||||
t.Fatalf("Expected second Item's EventType to be %q, got %q", et, *lfa.Items[1].EventType)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue