fluent-plugin-cloud-feeds 1.1.1 → 1.2.0

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
- Yzg0ZmNlYzgyNzkxNjNhNDcyMmQ3MTBmOGMwYjMxNjhhNWU0NGQwNQ==
4
+ NzlhN2I4ZmIzMGJjZWZjYzk4NTBiODBlY2UxZGRkODg0NTVkZGE5Mg==
5
5
  data.tar.gz: !binary |-
6
- MGExN2E2MjM2ZTBmYjdhOWQzZWZlYzQ3ODg2ZjBiM2FhMDEyMjg2Mg==
6
+ MjA0MDVkNDVjYTk0NzFlNThmN2FjOTM0OWM0YmJhNTM0YTg5NTY2MQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- M2MwZGZmM2ExODFiMjdkZGI4NjA1NzkyMjlkYTUxNTBjN2JhNjZkYTVkYmQ2
10
- OTQzNzgyZmI2ZDA1ZTE4ODcxYzFiYmQxMGM4YzJmODA3NWZhMTcwNThlNTll
11
- OWNiNTZiNGU5M2JhZWRhN2IxYTI2Y2RlODM3YjFiZTRlMjQ5YmE=
9
+ YjY0NTA5MGRmZTA4NTlkYTIzOWRiYmIxMzc5ZTQyYjFmOTExNjczM2NmYzkw
10
+ YTgxNzU1Y2EyM2NkZDk3ZGRhNmQ4Nzc4ZGEwYmU4MjhiOGQ0M2Y1Yjk4MWQx
11
+ NTRkZGQ5NzRjZTY5OGFjZjk3YjBkMzM0NDA4OWE2ZjNmZjY1ODc=
12
12
  data.tar.gz: !binary |-
13
- Y2U2MDExNmQzNzZiZjViYTY2YjdhOTAyZjc4ZDQ4NDg4ZjYwM2I5YTk3YWEz
14
- OTk2ZDNmOThjYjUzYmMxOGE2YjgzYzZlOGIwM2Y1MGJiNjFlNGRjNWFhY2Jm
15
- ODhkMWNlN2M1OWVmZTFlNmUwMmZlMTY4MWQxN2EwMzVmMzJkMWE=
13
+ ZGFhNDNjZDA0NGUzZWI4OTEwYjNhYzU4ZWZlNDFjZTgzODEzMmZmZTUxZmMz
14
+ M2FmZWRmZmVkZjc2YjIxMDVjMjgyZGUxOTU4NzU0NTBlMGNmMmQ0NDMxYjUx
15
+ NDE1MWVlZjE3YzM4MTI3OGM5MmY1ZGRlMjVmY2NiODY3NjNkMWE=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fluent-plugin-cloud-feeds (1.1.1)
4
+ fluent-plugin-cloud-feeds (1.2.0)
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.1"
5
+ s.version = "1.2.0"
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'].to_json, time)
113
+ post.body = atomic_wrapper(record['message'], time)
114
114
  unless @auth_token
115
115
  #get new auth token
116
116
  @auth_token = authenticate_user
@@ -28,14 +28,13 @@ RSpec.describe('Rackspace Cloud Feeds output plugin') do
28
28
  end
29
29
 
30
30
  def simple_sample_payload
31
- JSON.parse(<<EOF
31
+ <<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
- )
35
34
  end
36
35
 
37
36
  def encoded_payload
38
- {'message' => simple_sample_payload}.to_json
37
+ {'message' => simple_sample_payload}
39
38
  end
40
39
 
41
40
  def less_simple_payload
@@ -59,7 +58,7 @@ EOF
59
58
 
60
59
  expect(REXML::XPath.first(doc, "/entry/author/name").text).to eq("Repose")
61
60
  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/)
62
- expect(REXML::XPath.first(doc, "/entry/content").text).to eq(content.to_json)
61
+ expect(REXML::XPath.first(doc, "/entry/content").text).to eq(content)
63
62
  end
64
63
 
65
64
  def print_logs
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.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Kowis