Skip to content

Commit

Permalink
use underscores instead of hyphens in field names
Browse files Browse the repository at this point in the history
  • Loading branch information
bdashrad authored and jsvd committed Sep 15, 2016
1 parent 8fe348d commit eca4222
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/patterns/s3_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@

subject { grok_match(pattern, value) }

it { should include("timestamp" => "2016-06-1018:41:39" ) }
it { should include("timestamp" => "2016-06-10 18:41:39" ) }
it { should include("x_edge_location" => "IAD53" ) }
it { should include("sc_bytes" => 224281 ) }
it { should include("clientip" => "192.168.1.1" ) }
Expand All @@ -153,16 +153,16 @@
it { should include("agent" => "Mozilla/5.0%2520(Windows%2520NT%25206.1;%2520WOW64)%2520AppleWebKit/537.36%2520(KHTML,%2520like%2520Gecko)%2520Chrome/51.0.2704.79%2520Safari/537.36" ) }
it { should include("cs_uri_query" => "-" ) }
it { should include("cookies" => "-" ) }
it { should include("x-edge-result-type" => "Miss" ) }
it { should include("x-edge-request-id" => "UGskZ6dUKY7b4C6Pt7wAWVsU2KO-vTRe-mR4r9H-WQMjhNvY6w1Xcg==" ) }
it { should include("x-host-header" => "host.example.com" ) }
it { should include("x_edge_result_type" => "Miss" ) }
it { should include("x_edge_request_id" => "UGskZ6dUKY7b4C6Pt7wAWVsU2KO-vTRe-mR4r9H-WQMjhNvY6w1Xcg==" ) }
it { should include("x_host_header" => "host.example.com" ) }
it { should include("cs_protocol" => "https" ) }
it { should include("cs_bytes" => 883 ) }
it { should include("time_taken" => 0.036 ) }
it { should include("x-forwarded-for" => "-" ) }
it { should include("x_forwarded_for" => "-" ) }
it { should include("ssl_protocol" => "TLSv1.2" ) }
it { should include("ssl_cipher" => "ECDHE-RSA-AES128-GCM-SHA256" ) }
it { should include("x-edge-response-result-type" => "Miss" ) }
it { should include("x_edge_response_result_type" => "Miss" ) }

["tags", "params"].each do |attribute|
it "have #{attribute} as nil" do
Expand Down

0 comments on commit eca4222

Please sign in to comment.