From 0acb1d80877ac3094e78e985e712dcbba0124e65 Mon Sep 17 00:00:00 2001 From: Serhii Mamontov Date: Thu, 23 Nov 2023 23:23:42 +0200 Subject: [PATCH] Return unencrypted data (#156) refactor(crypto): return unencrypted data Return source event data when a client configured with crypto is unable to decrypt it (can be not encrypted data or encrypted with different options) --- .pubnub.yml | 13 +- CHANGELOG.md | 6 + Gemfile.lock | 2 +- VERSION | 2 +- .../examples/history/crypto_1.yml | 81 ++++ .../examples/history/crypto_2.yml | 81 ++++ .../examples/history/crypto_3.yml | 81 ++++ lib/pubnub/events/history.rb | 16 +- lib/pubnub/formatter.rb | 1 - lib/pubnub/subscribe_event/formatter.rb | 3 +- lib/pubnub/version.rb | 2 +- spec/examples/history_examples_spec.rb | 455 ++++++++++-------- spec/helpers/spec_helper.rb | 4 +- 13 files changed, 535 insertions(+), 212 deletions(-) create mode 100644 fixtures/vcr_cassettes/examples/history/crypto_1.yml create mode 100644 fixtures/vcr_cassettes/examples/history/crypto_2.yml create mode 100644 fixtures/vcr_cassettes/examples/history/crypto_3.yml diff --git a/.pubnub.yml b/.pubnub.yml index 276b97d19..fcad66dd5 100644 --- a/.pubnub.yml +++ b/.pubnub.yml @@ -1,6 +1,11 @@ --- -version: "5.3.1" +version: "5.3.2" changelog: + - date: 2023-11-23 + version: v5.3.2 + changes: + - type: improvement + text: "Return source event data when a client configured with crypto is unable to decrypt it (can be not encrypted data or encrypted with different options)." - date: 2023-11-03 version: v5.3.1 changes: @@ -675,7 +680,7 @@ sdks: - x86-64 - distribution-type: package distribution-repository: RubyGems - package-name: pubnub-5.3.1.gem + package-name: pubnub-5.3.2.gem location: https://rubygems.org/gems/pubnub requires: - name: addressable @@ -780,8 +785,8 @@ sdks: - x86-64 - distribution-type: library distribution-repository: GitHub release - package-name: pubnub-5.3.1.gem - location: https://github.com/pubnub/ruby/releases/download/v5.3.1/pubnub-5.3.1.gem + package-name: pubnub-5.3.2.gem + location: https://github.com/pubnub/ruby/releases/download/v5.3.2/pubnub-5.3.2.gem requires: - name: addressable min-version: 2.0.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 42c01f04d..4d1757888 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## v5.3.2 +November 23 2023 + +#### Modified +- Return source event data when a client configured with crypto is unable to decrypt it (can be not encrypted data or encrypted with different options). + ## v5.3.1 November 03 2023 diff --git a/Gemfile.lock b/Gemfile.lock index 3a37b87ca..cdffd7857 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - pubnub (5.3.1) + pubnub (5.3.2) addressable (>= 2.0.0) concurrent-ruby (~> 1.1.5) concurrent-ruby-edge (~> 0.5.0) diff --git a/VERSION b/VERSION index c7cb1311a..84197c894 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -5.3.1 +5.3.2 diff --git a/fixtures/vcr_cassettes/examples/history/crypto_1.yml b/fixtures/vcr_cassettes/examples/history/crypto_1.yml new file mode 100644 index 000000000..1079c8caa --- /dev/null +++ b/fixtures/vcr_cassettes/examples/history/crypto_1.yml @@ -0,0 +1,81 @@ +--- +http_interactions: + - request: + method: get + uri: http://ps.pndsn.com/publish/pub-a-mock-key/sub-a-mock-key/0/crypto_channel_11/0/%228vAFZgup2Ejp2Ny0d1iFlA==%22?ortt=%7B%22t%22:17006907085872960%7D&pnsdk=PubNub-Ruby/5.3.1&seqn=1&uuid=ruby-test-uuid-client-one + body: + encoding: UTF-8 + string: '' + headers: + User-Agent: + - HTTPClient/1.0 (2.8.3, ruby 3.2.2 (2023-03-30)) + Accept: + - "*/*" + Date: + - Wed, 22 Nov 2023 22:05:08 GMT + response: + status: + code: 200 + message: OK + headers: + Date: + - Wed, 22 Nov 2023 22:05:08 GMT + Content-Type: + - text/javascript; charset="UTF-8" + Content-Length: + - '30' + Connection: + - keep-alive + Cache-Control: + - no-cache + Access-Control-Allow-Origin: + - "*" + Access-Control-Allow-Methods: + - GET + body: + encoding: UTF-8 + string: '[1,"Sent","17006907088868199"]' + recorded_at: Wed, 22 Nov 2023 22:05:08 GMT + - request: + method: get + uri: http://ps.pndsn.com/v2/history/sub-key/sub-a-mock-key/channel/crypto_channel_11?include_meta=true&pnsdk=PubNub-Ruby/5.3.1&uuid=ruby-test-uuid-client-one + body: + encoding: UTF-8 + string: '' + headers: + User-Agent: + - HTTPClient/1.0 (2.8.3, ruby 3.2.2 (2023-03-30)) + Accept: + - "*/*" + Date: + - Thu, 23 Nov 2023 15:49:16 GMT + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 23 Nov 2023 15:49:17 GMT + Content-Type: + - text/javascript; charset="UTF-8" + Content-Length: + - '88' + Connection: + - keep-alive + Access-Control-Allow-Origin: + - "*" + Access-Control-Allow-Methods: + - GET, POST, DELETE, OPTIONS + Age: + - '0' + Server: + - Pubnub Storage + Cache-Control: + - no-cache + Accept-Ranges: + - bytes + body: + encoding: UTF-8 + string: '[[{"message":"8vAFZgup2Ejp2Ny0d1iFlA==","meta":""}],17006907088868199,17006907088868199]' + recorded_at: Thu, 23 Nov 2023 15:49:17 GMT +recorded_with: VCR 6.0.0 diff --git a/fixtures/vcr_cassettes/examples/history/crypto_2.yml b/fixtures/vcr_cassettes/examples/history/crypto_2.yml new file mode 100644 index 000000000..364b50a9d --- /dev/null +++ b/fixtures/vcr_cassettes/examples/history/crypto_2.yml @@ -0,0 +1,81 @@ +--- +http_interactions: + - request: + method: get + uri: http://ps.pndsn.com/publish/pub-a-mock-key/sub-a-mock-key/0/crypto_channel_12/0/%228vAFZgup2Ejp2Ny0d1iFlA==%22?ortt=%7B%22t%22:17007550043596480%7D&pnsdk=PubNub-Ruby/5.3.1&seqn=1&uuid=ruby-test-uuid-client-one + body: + encoding: UTF-8 + string: '' + headers: + User-Agent: + - HTTPClient/1.0 (2.8.3, ruby 3.2.2 (2023-03-30)) + Accept: + - "*/*" + Date: + - Thu, 23 Nov 2023 15:56:44 GMT + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 23 Nov 2023 15:56:44 GMT + Content-Type: + - text/javascript; charset="UTF-8" + Content-Length: + - '30' + Connection: + - keep-alive + Cache-Control: + - no-cache + Access-Control-Allow-Origin: + - "*" + Access-Control-Allow-Methods: + - GET + body: + encoding: UTF-8 + string: '[1,"Sent","17007550047732566"]' + recorded_at: Thu, 23 Nov 2023 15:56:44 GMT + - request: + method: get + uri: http://ps.pndsn.com/v2/history/sub-key/sub-a-mock-key/channel/crypto_channel_12?include_meta=true&pnsdk=PubNub-Ruby/5.3.1&uuid=ruby-test-uuid-client-one + body: + encoding: UTF-8 + string: '' + headers: + User-Agent: + - HTTPClient/1.0 (2.8.3, ruby 3.2.2 (2023-03-30)) + Accept: + - "*/*" + Date: + - Thu, 23 Nov 2023 15:56:52 GMT + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 23 Nov 2023 15:56:52 GMT + Content-Type: + - text/javascript; charset="UTF-8" + Content-Length: + - '157' + Connection: + - keep-alive + Access-Control-Allow-Origin: + - "*" + Access-Control-Allow-Methods: + - GET, POST, DELETE, OPTIONS + Age: + - '0' + Server: + - Pubnub Storage + Cache-Control: + - no-cache + Accept-Ranges: + - bytes + body: + encoding: UTF-8 + string: '[[{"message":"8vAFZgup2Ejp2Ny0d1iFlA==","meta":""}],17007548460124155,17007550047732566]' + recorded_at: Thu, 23 Nov 2023 15:56:52 GMT +recorded_with: VCR 6.0.0 diff --git a/fixtures/vcr_cassettes/examples/history/crypto_3.yml b/fixtures/vcr_cassettes/examples/history/crypto_3.yml new file mode 100644 index 000000000..a34915fa8 --- /dev/null +++ b/fixtures/vcr_cassettes/examples/history/crypto_3.yml @@ -0,0 +1,81 @@ +--- +http_interactions: + - request: + method: get + uri: http://ps.pndsn.com/publish/pub-a-mock-key/sub-a-mock-key/0/crypto_channel_13/0/%22Hello%20world%22?ortt=%7B%22t%22:17007555068916190%7D&pnsdk=PubNub-Ruby/5.3.1&seqn=1&uuid=ruby-test-uuid-client-one + body: + encoding: UTF-8 + string: '' + headers: + User-Agent: + - HTTPClient/1.0 (2.8.3, ruby 3.2.2 (2023-03-30)) + Accept: + - "*/*" + Date: + - Thu, 23 Nov 2023 16:05:06 GMT + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 23 Nov 2023 16:05:07 GMT + Content-Type: + - text/javascript; charset="UTF-8" + Content-Length: + - '30' + Connection: + - keep-alive + Cache-Control: + - no-cache + Access-Control-Allow-Origin: + - "*" + Access-Control-Allow-Methods: + - GET + body: + encoding: UTF-8 + string: '[1,"Sent","17007555072405073"]' + recorded_at: Thu, 23 Nov 2023 16:05:07 GMT + - request: + method: get + uri: http://ps.pndsn.com/v2/history/sub-key/sub-a-mock-key/channel/crypto_channel_13?include_meta=true&pnsdk=PubNub-Ruby/5.3.1&uuid=ruby-test-uuid-client-one + body: + encoding: UTF-8 + string: '' + headers: + User-Agent: + - HTTPClient/1.0 (2.8.3, ruby 3.2.2 (2023-03-30)) + Accept: + - "*/*" + Date: + - Thu, 23 Nov 2023 16:05:07 GMT + response: + status: + code: 200 + message: OK + headers: + Date: + - Thu, 23 Nov 2023 16:05:07 GMT + Content-Type: + - text/javascript; charset="UTF-8" + Content-Length: + - '111' + Connection: + - keep-alive + Access-Control-Allow-Origin: + - "*" + Access-Control-Allow-Methods: + - GET, POST, DELETE, OPTIONS + Age: + - '0' + Server: + - Pubnub Storage + Cache-Control: + - no-cache + Accept-Ranges: + - bytes + body: + encoding: UTF-8 + string: '[[{"message":"Hello world","meta":""}],17007554539617347,17007555072405073]' + recorded_at: Thu, 23 Nov 2023 16:05:07 GMT +recorded_with: VCR 6.0.0 diff --git a/lib/pubnub/events/history.rb b/lib/pubnub/events/history.rb index 5961080dc..b2a6a9d75 100644 --- a/lib/pubnub/events/history.rb +++ b/lib/pubnub/events/history.rb @@ -68,30 +68,26 @@ def parameters(*_args) def decrypt_history(message, crypto) if @include_token || @include_meta - encrypted_message = Base64.decode64(message['message']) + encrypted_message = Base64.strict_decode64(message['message']) message['message'] = JSON.parse(crypto.decrypt(encrypted_message), quirks_mode: true) - message else - encrypted_message = Base64.decode64(message) + encrypted_message = Base64.strict_decode64(message) JSON.parse(crypto.decrypt(encrypted_message), quirks_mode: true) end + rescue StandardError => e + puts "Pubnub :: DECRYPTION ERROR: #{e}" + message['decrypt_error'] = true if @include_token || @include_meta + message end def valid_envelope(parsed_response, req_res_objects) messages = parsed_response[0] - # TODO: Uncomment code below when cryptor implementations will be added. if crypto_module && messages crypto = crypto_module messages = messages.map { |message| decrypt_history(message, crypto) } end - # if (@cipher_key || @app.env[:cipher_key] || @cipher_key_selector || @app.env[:cipher_key_selector]) && messages - # cipher_key = compute_cipher_key(parsed_response) - # random_iv = compute_random_iv(parsed_response) - # crypto = Crypto.new(cipher_key, random_iv) - # messages = messages.map { |message| decrypt_history(message, crypto) } - # end start = parsed_response[1] finish = parsed_response[2] diff --git a/lib/pubnub/formatter.rb b/lib/pubnub/formatter.rb index bff735e4c..094c17691 100644 --- a/lib/pubnub/formatter.rb +++ b/lib/pubnub/formatter.rb @@ -41,7 +41,6 @@ def format_uuid(uuids, should_encode = true) end end - # TODO: Uncomment code below when cryptor implementations will be added. # Transforms message to json and encode it. # # @param message [Hash, String, Integer, Boolean] Message data which diff --git a/lib/pubnub/subscribe_event/formatter.rb b/lib/pubnub/subscribe_event/formatter.rb index a460db538..a30ae812f 100644 --- a/lib/pubnub/subscribe_event/formatter.rb +++ b/lib/pubnub/subscribe_event/formatter.rb @@ -33,10 +33,9 @@ def build_error_envelopes(_parsed_response, error, req_res_objects) end def decipher_payload(message) - # TODO: Uncomment code below when cryptor implementations will be added. return message[:payload] if message[:channel].end_with?('-pnpres') || crypto_module.nil? - encrypted_message = Base64.decode64(message[:payload]) + encrypted_message = Base64.strict_decode64(message[:payload]) JSON.parse(crypto_module.decrypt(encrypted_message), quirks_mode: true) rescue StandardError, UnknownCryptorError message[:payload] diff --git a/lib/pubnub/version.rb b/lib/pubnub/version.rb index 26ed0e6fa..1a69da4c9 100644 --- a/lib/pubnub/version.rb +++ b/lib/pubnub/version.rb @@ -1,4 +1,4 @@ # Toplevel Pubnub module. module Pubnub - VERSION = '5.3.1'.freeze + VERSION = '5.3.2'.freeze end diff --git a/spec/examples/history_examples_spec.rb b/spec/examples/history_examples_spec.rb index 291a40bac..cf3398524 100644 --- a/spec/examples/history_examples_spec.rb +++ b/spec/examples/history_examples_spec.rb @@ -20,6 +20,81 @@ example.run_with_retry retry: 10 end + it "fetch_encrypted_and_decrypt_with_same_key" do + VCR.use_cassette("examples/history/crypto_1", :record => :none) do + client = Pubnub.new( + publish_key: "pub-a-mock-key", + subscribe_key: "sub-a-mock-key", + user_id: "ruby-test-uuid-client-one", + cipher_key: "enigma", + random_iv: false + ) + + client.publish(channel: 'crypto_channel_11', message: 'Hello world', http_sync: true) + envelope = client.history(channel: 'crypto_channel_11', include_meta: true, http_sync: true) + + expect(envelope.result[:code]).to eq(200) + expect(envelope.result[:operation]).to eq(:history) + expect(envelope.result[:data]).to eq({ :messages => [{ "message" => "Hello world", "meta" => "" }], :end => 17006907088868199, :start => 17006907088868199 }) + expect(envelope.result[:data][:messages][0]['decrypt_error']).to be_nil + end + end + + it "fetch_encrypted_and_decrypt_with_different_key" do + VCR.use_cassette("examples/history/crypto_2", :record => :none) do + client = Pubnub.new( + publish_key: "pub-a-mock-key", + subscribe_key: "sub-a-mock-key", + user_id: "ruby-test-uuid-client-one", + cipher_key: "enigma", + random_iv: false + ) + + client.publish(channel: 'crypto_channel_12', message: 'Hello world', http_sync: true) + envelope = client.history(channel: 'crypto_channel_12', include_meta: true, cipher_key: "some-key", http_sync: true) + + expect(envelope.result[:code]).to eq(200) + expect(envelope.result[:operation]).to eq(:history) + expect(envelope.result[:data]).to eq({ + :messages => [{ + "decrypt_error" => true, + "message" => "8vAFZgup2Ejp2Ny0d1iFlA==", "meta" => "" + }], :end => 17007550047732566, :start => 17007548460124155 }) + expect(envelope.result[:data][:messages][0]['decrypt_error']).not_to be_nil + expect(envelope.result[:data][:messages][0]['decrypt_error']).to eq true + end + end + + it "fetch_decrypted_and_decrypt_with_some_key" do + VCR.use_cassette("examples/history/crypto_3", :record => :none) do + client = Pubnub.new( + publish_key: "pub-a-mock-key", + subscribe_key: "sub-a-mock-key", + user_id: "ruby-test-uuid-client-one" + ) + client.publish(channel: 'crypto_channel_13', message: 'Hello world', http_sync: true) + + client = Pubnub.new( + publish_key: "pub-a-mock-key", + subscribe_key: "sub-a-mock-key", + user_id: "ruby-test-uuid-client-one", + cipher_key: "enigma", + random_iv: false + ) + envelope = client.history(channel: 'crypto_channel_13', include_meta: true, http_sync: true) + + expect(envelope.result[:code]).to eq(200) + expect(envelope.result[:operation]).to eq(:history) + expect(envelope.result[:data]).to eq({ + :messages => [{ + "decrypt_error" => true, + "message" => "Hello world", "meta" => "" + }], :end => 17007555072405073, :start => 17007554539617347 }) + expect(envelope.result[:data][:messages][0]['decrypt_error']).not_to be_nil + expect(envelope.result[:data][:messages][0]['decrypt_error']).to eq true + end + end + it "__channel___demo___count__10___start__nil___end__nil___reverse__false___http_sync__true___callback__nil___include_meta__true_" do VCR.use_cassette("examples/history/100", :record => :none) do envelope = @pubnub.history(channel: :rubytest, include_meta: true, http_sync: true) @@ -28,11 +103,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"message" => {"message"=>"text"}, "meta" => {"metaKey"=>"metaValue"}, "timetoken" => 15965666789169854}], :end => 15965666789169854, :start => 15965666789169854}) + expect(envelope.result[:data]).to eq({ :messages => [{ "message" => { "message" => "text" }, "meta" => { "metaKey" => "metaValue" }, "timetoken" => 15965666789169854 }], :end => 15965666789169854, :start => 15965666789169854 }) end end @@ -53,11 +128,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [100], :end => 16148147101366576, :start => 16148147101366576}) + expect(envelope.result[:data]).to eq({ :messages => [100], :end => 16148147101366576, :start => 16148147101366576 }) end end @@ -78,11 +153,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"message" => 100, "meta" => "", "timetoken" => 16148149695171741}], :end => 16148149695171741, :start => 16148149695171741}) + expect(envelope.result[:data]).to eq({ :messages => [{ "message" => 100, "meta" => "", "timetoken" => 16148149695171741 }], :end => 16148149695171741, :start => 16148149695171741 }) end end @@ -103,11 +178,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"message" => 100, "timetoken" => 16148151241848372}], :end => 16148151241848372, :start => 16148151241848372}) + expect(envelope.result[:data]).to eq({ :messages => [{ "message" => 100, "timetoken" => 16148151241848372 }], :end => 16148151241848372, :start => 16148151241848372 }) end end @@ -127,11 +202,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [100], :end => 16148153795208310, :start => 16148153795208310}) + expect(envelope.result[:data]).to eq({ :messages => [100], :end => 16148153795208310, :start => 16148153795208310 }) end end @@ -151,11 +226,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"message" => 100, "meta" => "", "timetoken" => 16148154562721969}], :end => 16148154562721969, :start => 16148154562721969}) + expect(envelope.result[:data]).to eq({ :messages => [{ "message" => 100, "meta" => "", "timetoken" => 16148154562721969 }], :end => 16148154562721969, :start => 16148154562721969 }) end end @@ -175,11 +250,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"message" => 100, "timetoken" => 16148155532212500}], :end => 16148155532212500, :start => 16148155532212500}) + expect(envelope.result[:data]).to eq({ :messages => [{ "message" => 100, "timetoken" => 16148155532212500 }], :end => 16148155532212500, :start => 16148155532212500 }) end end @@ -191,11 +266,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -207,11 +282,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -223,11 +298,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -240,11 +315,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -257,11 +332,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -274,11 +349,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -290,11 +365,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -306,11 +381,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -322,11 +397,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -339,11 +414,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -356,11 +431,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -373,11 +448,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -389,11 +464,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -405,11 +480,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -421,11 +496,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -438,11 +513,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -455,11 +530,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -472,11 +547,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -488,11 +563,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -504,11 +579,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -520,11 +595,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -537,11 +612,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -554,11 +629,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -571,11 +646,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -587,11 +662,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -603,11 +678,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -619,11 +694,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -636,11 +711,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -653,11 +728,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -670,11 +745,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -686,11 +761,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -702,11 +777,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -718,11 +793,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -735,11 +810,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -752,11 +827,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -769,11 +844,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -785,11 +860,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -801,11 +876,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -817,11 +892,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -834,11 +909,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -851,11 +926,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -868,11 +943,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -884,11 +959,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -900,11 +975,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -916,11 +991,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -933,11 +1008,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -950,11 +1025,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -967,11 +1042,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -983,11 +1058,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -999,11 +1074,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1015,11 +1090,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1032,11 +1107,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1049,11 +1124,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1066,11 +1141,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1082,11 +1157,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1098,11 +1173,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1114,11 +1189,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1131,11 +1206,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1148,11 +1223,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1165,11 +1240,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1181,11 +1256,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1197,11 +1272,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1213,11 +1288,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1230,11 +1305,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1247,11 +1322,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1264,11 +1339,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1280,11 +1355,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1296,11 +1371,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1312,11 +1387,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1329,11 +1404,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1346,11 +1421,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1363,11 +1438,11 @@ expect(envelope.status[:code]).to eq(200) expect(envelope.status[:category]).to eq(:ack) - expect(envelope.status[:config]).to eq({:tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com"}) + expect(envelope.status[:config]).to eq({ :tls => false, :uuid => "ruby-test-uuid-client-one", :auth_key => "ruby-test-auth-client-one", :origin => "ps.pndsn.com" }) expect(envelope.result[:code]).to eq(200) expect(envelope.result[:operation]).to eq(:history) - expect(envelope.result[:data]).to eq({:messages => [{"text" => "Enter Message Here"}], :end => 14641838216911695, :start => 14641838216911695}) + expect(envelope.result[:data]).to eq({ :messages => [{ "text" => "Enter Message Here" }], :end => 14641838216911695, :start => 14641838216911695 }) end end @@ -1387,8 +1462,8 @@ expect(envelope.result[:operation]).to eq(:history) end - expect(envelopes[0].result[:data]).to eq({:messages => [{"text" => "Test message #9"}, {"text" => "Test message #10"}], :end => 16376216052005483, :start => 16376216012185785}) - expect(envelopes[1].result[:data]).to eq({:messages => [{"text" => "Test message #7"}, {"text" => "Test message #8"}], :end => 16376215974611464, :start => 16376215943848282}) + expect(envelopes[0].result[:data]).to eq({ :messages => [{ "text" => "Test message #9" }, { "text" => "Test message #10" }], :end => 16376216052005483, :start => 16376216012185785 }) + expect(envelopes[1].result[:data]).to eq({ :messages => [{ "text" => "Test message #7" }, { "text" => "Test message #8" }], :end => 16376215974611464, :start => 16376215943848282 }) end end @@ -1409,8 +1484,8 @@ expect(envelope.result[:operation]).to eq(:history) end - expect(envelopes[0].result[:data]).to eq({:messages => [{"text" => "Test message #9"}, {"text" => "Test message #10"}], :end => 16376216052005483, :start => 16376216012185785}) - expect(envelopes[1].result[:data]).to eq({:messages => [{"text" => "Test message #7"}, {"text" => "Test message #8"}], :end => 16376215974611464, :start => 16376215943848282}) + expect(envelopes[0].result[:data]).to eq({ :messages => [{ "text" => "Test message #9" }, { "text" => "Test message #10" }], :end => 16376216052005483, :start => 16376216012185785 }) + expect(envelopes[1].result[:data]).to eq({ :messages => [{ "text" => "Test message #7" }, { "text" => "Test message #8" }], :end => 16376215974611464, :start => 16376215943848282 }) end end @@ -1432,8 +1507,8 @@ expect(envelope.result[:operation]).to eq(:history) end - expect(envelopes[0].result[:data]).to eq({:messages => [{"text" => "Test message #2"}, {"text" => "Test message #3"}], :end => 16376215835141820, :start => 16376215812842130}) - expect(envelopes[1].result[:data]).to eq({:messages => [{"text" => "Test message #1"}], :end => 16376215769471824, :start => 16376215769471824}) + expect(envelopes[0].result[:data]).to eq({ :messages => [{ "text" => "Test message #2" }, { "text" => "Test message #3" }], :end => 16376215835141820, :start => 16376215812842130 }) + expect(envelopes[1].result[:data]).to eq({ :messages => [{ "text" => "Test message #1" }], :end => 16376215769471824, :start => 16376215769471824 }) end end @@ -1455,8 +1530,8 @@ expect(envelope.result[:operation]).to eq(:history) end - expect(envelopes[0].result[:data]).to eq({:messages => [{"text" => "Test message #8"}, {"text" => "Test message #9"}, {"text" => "Test message #10"}], :end => 16376216052005483, :start => 16376215974611464}) - expect(envelopes[1].result[:data]).to eq({:messages => [{"text" => "Test message #5"}, {"text" => "Test message #6"}, {"text" => "Test message #7"}], :end => 16376215943848282, :start => 16376215880582193}) + expect(envelopes[0].result[:data]).to eq({ :messages => [{ "text" => "Test message #8" }, { "text" => "Test message #9" }, { "text" => "Test message #10" }], :end => 16376216052005483, :start => 16376215974611464 }) + expect(envelopes[1].result[:data]).to eq({ :messages => [{ "text" => "Test message #5" }, { "text" => "Test message #6" }, { "text" => "Test message #7" }], :end => 16376215943848282, :start => 16376215880582193 }) end end @@ -1476,13 +1551,13 @@ expect(envelope.result[:operation]).to eq(:history) expect(envelope.result[:data]).to eq({ :messages => [ - {"message" => {"text" => "Test message #1"}, "timetoken" => 16376215769471824}, - {"message" => {"text" => "Test message #2"}, "timetoken" => 16376215812842130}, - {"message" => {"text" => "Test message #3"}, "timetoken" => 16376215835141820}, - {"message" => {"text" => "Test message #4"}, "timetoken" => 16376215858523321}, - {"message" => {"text" => "Test message #5"}, "timetoken" => 16376215880582193}, - {"message" => {"text" => "Test message #6"}, "timetoken" => 16376215916206736}, - {"message" => {"text" => "Test message #7"}, "timetoken" => 16376215943848282} + { "message" => { "text" => "Test message #1" }, "timetoken" => 16376215769471824 }, + { "message" => { "text" => "Test message #2" }, "timetoken" => 16376215812842130 }, + { "message" => { "text" => "Test message #3" }, "timetoken" => 16376215835141820 }, + { "message" => { "text" => "Test message #4" }, "timetoken" => 16376215858523321 }, + { "message" => { "text" => "Test message #5" }, "timetoken" => 16376215880582193 }, + { "message" => { "text" => "Test message #6" }, "timetoken" => 16376215916206736 }, + { "message" => { "text" => "Test message #7" }, "timetoken" => 16376215943848282 } ], :end => 16376215943848282, :start => 16376215769471824 }) @@ -1505,13 +1580,13 @@ expect(envelope.result[:operation]).to eq(:history) expect(envelope.result[:data]).to eq({ :messages => [ - {"message" => {"text" => "Test message #4"}, "timetoken" => 16376215858523321}, - {"message" => {"text" => "Test message #5"}, "timetoken" => 16376215880582193}, - {"message" => {"text" => "Test message #6"}, "timetoken" => 16376215916206736}, - {"message" => {"text" => "Test message #7"}, "timetoken" => 16376215943848282}, - {"message" => {"text" => "Test message #8"}, "timetoken" => 16376215974611464}, - {"message" => {"text" => "Test message #9"}, "timetoken" => 16376216012185785}, - {"message" => {"text" => "Test message #10"}, "timetoken" => 16376216052005483} + { "message" => { "text" => "Test message #4" }, "timetoken" => 16376215858523321 }, + { "message" => { "text" => "Test message #5" }, "timetoken" => 16376215880582193 }, + { "message" => { "text" => "Test message #6" }, "timetoken" => 16376215916206736 }, + { "message" => { "text" => "Test message #7" }, "timetoken" => 16376215943848282 }, + { "message" => { "text" => "Test message #8" }, "timetoken" => 16376215974611464 }, + { "message" => { "text" => "Test message #9" }, "timetoken" => 16376216012185785 }, + { "message" => { "text" => "Test message #10" }, "timetoken" => 16376216052005483 } ], :end => 16376216052005483, :start => 16376215858523321 }) @@ -1534,16 +1609,16 @@ expect(envelope.result[:operation]).to eq(:history) expect(envelope.result[:data]).to eq({ :messages => [ - {"message" => {"text" => "Test message #1"}, "timetoken" => 16377095731901577}, - {"message" => {"text" => "Test message #2"}, "timetoken" => 16377095753435756}, - {"message" => {"text" => "Test message #3"}, "timetoken" => 16377095776142785}, - {"message" => {"text" => "Test message #4"}, "timetoken" => 16377095796303676}, - {"message" => {"text" => "Test message #5"}, "timetoken" => 16377095818104733}, - {"message" => {"text" => "Test message #6"}, "timetoken" => 16377095850534863}, - {"message" => {"text" => "Test message #7"}, "timetoken" => 16377095883609014}, - {"message" => {"text" => "Test message #8"}, "timetoken" => 16377095912474163}, - {"message" => {"text" => "Test message #9"}, "timetoken" => 16377095941299801}, - {"message" => {"text" => "Test message #10"}, "timetoken" => 16377095974621056} + { "message" => { "text" => "Test message #1" }, "timetoken" => 16377095731901577 }, + { "message" => { "text" => "Test message #2" }, "timetoken" => 16377095753435756 }, + { "message" => { "text" => "Test message #3" }, "timetoken" => 16377095776142785 }, + { "message" => { "text" => "Test message #4" }, "timetoken" => 16377095796303676 }, + { "message" => { "text" => "Test message #5" }, "timetoken" => 16377095818104733 }, + { "message" => { "text" => "Test message #6" }, "timetoken" => 16377095850534863 }, + { "message" => { "text" => "Test message #7" }, "timetoken" => 16377095883609014 }, + { "message" => { "text" => "Test message #8" }, "timetoken" => 16377095912474163 }, + { "message" => { "text" => "Test message #9" }, "timetoken" => 16377095941299801 }, + { "message" => { "text" => "Test message #10" }, "timetoken" => 16377095974621056 } ], :end => 16377095974621056, :start => 16377095731901577 }) diff --git a/spec/helpers/spec_helper.rb b/spec/helpers/spec_helper.rb index d4724af86..3680942a1 100644 --- a/spec/helpers/spec_helper.rb +++ b/spec/helpers/spec_helper.rb @@ -83,8 +83,8 @@ def loop_it(interval, time_limit) VCR.configure do |c| ignored_params = [ - :pnsdk, :uuid, :ortt, :seqn, :t, :l_pres, :l_pub, :l_push, :l_pres, :l_pamv3, :l_hist, :l_mc, - :l_cg, :l_time, :l_obj, :l_msga, :signature, :timestamp ] + :pnsdk, :uuid, :ortt, :seqn, :t, :l_pres, :l_pub, :l_push, :l_pres, :l_pamv3, :l_hist, :l_mc, + :l_cg, :l_time, :l_obj, :l_msga, :signature, :timestamp, :ortt] c.allow_http_connections_when_no_cassette = true c.cassette_library_dir = "fixtures/vcr_cassettes" c.hook_into :webmock