From c2c7f23bbad9d8018d23cfd0dafa599974afd423 Mon Sep 17 00:00:00 2001 From: Tim Gossett Date: Mon, 2 Jan 2017 23:00:12 -0500 Subject: [PATCH] fix expectation messages that did not align with code --- .../cloudfront_distribution_configuration_structure_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builtin/providers/aws/cloudfront_distribution_configuration_structure_test.go b/builtin/providers/aws/cloudfront_distribution_configuration_structure_test.go index 4df768d49..24bb45849 100644 --- a/builtin/providers/aws/cloudfront_distribution_configuration_structure_test.go +++ b/builtin/providers/aws/cloudfront_distribution_configuration_structure_test.go @@ -255,7 +255,7 @@ func TestCloudFrontStructure_expandDefaultCacheBehavior(t *testing.T) { t.Fatalf("Expected TrustedSigners.Items to be %v, got %v", trustedSignersConf(), dcb.TrustedSigners.Items) } if *dcb.MaxTTL != 365000000 { - t.Fatalf("Expected MaxTTL to be 86400, got %v", *dcb.MaxTTL) + t.Fatalf("Expected MaxTTL to be 365000000, got %v", *dcb.MaxTTL) } if *dcb.SmoothStreaming != false { t.Fatalf("Expected SmoothStreaming to be false, got %v", *dcb.SmoothStreaming) @@ -417,7 +417,7 @@ func TestCloudFrontStructure_expandTrustedSigners_empty(t *testing.T) { data := []interface{}{} ts := expandTrustedSigners(data) if *ts.Quantity != 0 { - t.Fatalf("Expected Quantity to be 2, got %v", *ts.Quantity) + t.Fatalf("Expected Quantity to be 0, got %v", *ts.Quantity) } if *ts.Enabled != false { t.Fatalf("Expected Enabled to be true, got %v", *ts.Enabled) @@ -545,7 +545,7 @@ func TestCloudFrontStructure_expandAllowedMethods(t *testing.T) { data := allowedMethodsConf() am := expandAllowedMethods(data) if *am.Quantity != 7 { - t.Fatalf("Expected Quantity to be 3, got %v", *am.Quantity) + t.Fatalf("Expected Quantity to be 7, got %v", *am.Quantity) } if reflect.DeepEqual(am.Items, expandStringList(data)) != true { t.Fatalf("Expected Items to be %v, got %v", data, am.Items)