update lambda function association test for new hash order

This commit is contained in:
Tim Gossett 2017-01-05 13:06:30 -05:00
parent fa7eecf508
commit 9c5a25dd48
No known key found for this signature in database
GPG Key ID: 6708169C08D3CCF0
1 changed files with 5 additions and 2 deletions

View File

@ -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)
}
}