fluent-plugin-cloud-feeds 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzAzN2YxMjcwMGFmMjYzYjc3MGE4OTY0NzMzMmM1YzY4NDQ1MTQ3MA==
4
+ Yzg0ZmNlYzgyNzkxNjNhNDcyMmQ3MTBmOGMwYjMxNjhhNWU0NGQwNQ==
5
5
  data.tar.gz: !binary |-
6
- MmFkZmM4Nzc5MjkxNzNjNzFmMmJkNThiYjQ0YWJmN2QxNTQ2OWY4Mw==
6
+ MGExN2E2MjM2ZTBmYjdhOWQzZWZlYzQ3ODg2ZjBiM2FhMDEyMjg2Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZWQ3ZDZmMzQwZmQ4NmE5NjFkNjRjMzgxOTdjM2QxOGViMjkyMGI4YTFjNjhl
10
- MzY5NTU0NzY2YjY3YzYwZDVmNDdiMjUxZWQ0ZWFjMGM0MTQ5NWE5ZWVmMjEz
11
- Y2Y4YjRjM2IxMzBhZDdlZTk0ZDFiMDBlNTg4MTQwYjU3ODk2YWM=
9
+ M2MwZGZmM2ExODFiMjdkZGI4NjA1NzkyMjlkYTUxNTBjN2JhNjZkYTVkYmQ2
10
+ OTQzNzgyZmI2ZDA1ZTE4ODcxYzFiYmQxMGM4YzJmODA3NWZhMTcwNThlNTll
11
+ OWNiNTZiNGU5M2JhZWRhN2IxYTI2Y2RlODM3YjFiZTRlMjQ5YmE=
12
12
  data.tar.gz: !binary |-
13
- YmNiMmUzNTY5ZGYzMDE3OTJmZDgwOWFiNDE5M2UxMjU4YWQ0MmZiNWQyZjIy
14
- YzkyYWJiM2JmMWRkZGNiOTEwNTQ5NWFmMTRmYWM4MzUxNWQ3MDkwYzIyMDJm
15
- MzY1OTMyMDMxMzIzMTkyMTFmYzI4YmY2NWZjMDlmNjdjM2QzYzg=
13
+ Y2U2MDExNmQzNzZiZjViYTY2YjdhOTAyZjc4ZDQ4NDg4ZjYwM2I5YTk3YWEz
14
+ OTk2ZDNmOThjYjUzYmMxOGE2YjgzYzZlOGIwM2Y1MGJiNjFlNGRjNWFhY2Jm
15
+ ODhkMWNlN2M1OWVmZTFlNmUwMmZlMTY4MWQxN2EwMzVmMzJkMWE=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fluent-plugin-cloud-feeds (1.1.0)
4
+ fluent-plugin-cloud-feeds (1.1.1)
5
5
  fluentd (= 0.12.7)
6
6
  net-http-persistent (>= 2.7)
7
7
 
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "fluent-plugin-cloud-feeds"
5
- s.version = "1.1.0"
5
+ s.version = "1.1.1"
6
6
  s.authors = ["David Kowis", "Tyler Royal"]
7
7
  s.email= ["david.kowis@rackspace.com", "tyler.royal@rackspace.com"]
8
8
  s.homepage = "https://github.com/rackerlabs/fluent-plugin-cloud-feeds"
@@ -110,7 +110,7 @@ EOF
110
110
  # take the data, put it in to an abdera envelope
111
111
  post = Net::HTTP::Post.new @feeds_uri.path
112
112
 
113
- post.body = atomic_wrapper(JSON.parse(record)['message'], time)
113
+ post.body = atomic_wrapper(JSON.parse(record)['message'].to_json, time)
114
114
  unless @auth_token
115
115
  #get new auth token
116
116
  @auth_token = authenticate_user
@@ -28,9 +28,10 @@ RSpec.describe('Rackspace Cloud Feeds output plugin') do
28
28
  end
29
29
 
30
30
  def simple_sample_payload
31
- <<EOF
31
+ JSON.parse(<<EOF
32
32
  { "GUID" : "87669264-3fc2-4e6e-b225-2f79f17d14c9", "ServiceCode" : "", "Region" : "", "DataCenter" : "", "Cluster" : "cluster", "Node" : "node", "RequestorIp" : "127.0.0.1", "Timestamp" : "1429546010984", "CadfTimestamp" : "2015-04-20T11:06:50.984-05:00", "Request" : { "Method" : "GET", "MethodLabel" : "", "CadfMethod" : "read/get", "URL" : "", "TargetHost" : "", "QueryString" : "", "Parameters" : { }, "UserName" : "", "ImpersonatorName" : "", "DefaultProjectID" : "", "ProjectID" : [ ], "Roles" : [ ], "UserAgent" : "" }, "Response" : { "Code" : 200, "CadfOutcome" : "success", "Message" : "OK" } }
33
33
  EOF
34
+ )
34
35
  end
35
36
 
36
37
  def encoded_payload
@@ -58,7 +59,7 @@ EOF
58
59
 
59
60
  expect(REXML::XPath.first(doc, "/entry/author/name").text).to eq("Repose")
60
61
  expect(REXML::XPath.first(doc, "/entry/updated").text).to match(/\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d.\d\d\dZ/)
61
- expect(REXML::XPath.first(doc, "/entry/content").text).to eq(content)
62
+ expect(REXML::XPath.first(doc, "/entry/content").text).to eq(content.to_json)
62
63
  end
63
64
 
64
65
  def print_logs
@@ -222,7 +223,7 @@ EOF
222
223
  current_time = Time.now - 10000
223
224
 
224
225
 
225
- driver.emit(simple_sample_payload, current_time)
226
+ driver.emit(encoded_payload, current_time)
226
227
 
227
228
  expect(a_request(:post, FEED_URL).with do |req|
228
229
  doc = REXML::Document.new(req.body)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-cloud-feeds
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Kowis