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 +8 -8
- data/Gemfile.lock +1 -1
- data/fluent-plugin-cloud-feeds.gemspec +1 -1
- data/lib/fluent/plugin/out_rackspace_cloud_feeds.rb +1 -1
- data/spec/feeds_output_spec.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Yzg0ZmNlYzgyNzkxNjNhNDcyMmQ3MTBmOGMwYjMxNjhhNWU0NGQwNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGExN2E2MjM2ZTBmYjdhOWQzZWZlYzQ3ODg2ZjBiM2FhMDEyMjg2Mg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2MwZGZmM2ExODFiMjdkZGI4NjA1NzkyMjlkYTUxNTBjN2JhNjZkYTVkYmQ2
|
10
|
+
OTQzNzgyZmI2ZDA1ZTE4ODcxYzFiYmQxMGM4YzJmODA3NWZhMTcwNThlNTll
|
11
|
+
OWNiNTZiNGU5M2JhZWRhN2IxYTI2Y2RlODM3YjFiZTRlMjQ5YmE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2U2MDExNmQzNzZiZjViYTY2YjdhOTAyZjc4ZDQ4NDg4ZjYwM2I5YTk3YWEz
|
14
|
+
OTk2ZDNmOThjYjUzYmMxOGE2YjgzYzZlOGIwM2Y1MGJiNjFlNGRjNWFhY2Jm
|
15
|
+
ODhkMWNlN2M1OWVmZTFlNmUwMmZlMTY4MWQxN2EwMzVmMzJkMWE=
|
data/Gemfile.lock
CHANGED
@@ -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.
|
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
|
data/spec/feeds_output_spec.rb
CHANGED
@@ -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(
|
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)
|