Sha256: 406c3dfcd051301f238d48ad9edc29aa11c1aa180269f5fad7bb3b97c58e4732

Contents?: true

Size: 944 Bytes

Versions: 68

Compression:

Stored size: 944 Bytes

Contents

require_relative "test_helper"

# Internal: The test for Plaid::Webhooks.
class PlaidWebhooksTest < PlaidTest
  def test_get_verification_key
    key_id = "6c5516e1-92dc-479e-a8ff-5a51992e0001"

    webhook_verification_key_get_request = Plaid::WebhookVerificationKeyGetRequest.new
    webhook_verification_key_get_request.key_id = key_id

    webhook_verification_key_response = client.webhook_verification_key_get(webhook_verification_key_get_request)

    refute_empty(webhook_verification_key_response.key.to_hash)
    refute_empty(webhook_verification_key_response.key.alg)
    refute_empty(webhook_verification_key_response.key.crv)
    refute_empty(webhook_verification_key_response.key.kid)
    refute_empty(webhook_verification_key_response.key.kty)
    refute_empty(webhook_verification_key_response.key.use)
    refute_empty(webhook_verification_key_response.key.x)
    refute_empty(webhook_verification_key_response.key.y)
  end
end

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
plaid-21.1.0 test/test_webhooks.rb
plaid-21.0.0 test/test_webhooks.rb
plaid-20.0.0 test/test_webhooks.rb
plaid-19.1.0 test/test_webhooks.rb
plaid-19.0.0 test/test_webhooks.rb
plaid-18.1.0 test/test_webhooks.rb
plaid-18.0.0 test/test_webhooks.rb
plaid-17.4.0 test/test_webhooks.rb
plaid-17.3.0 test/test_webhooks.rb
plaid-17.2.0 test/test_webhooks.rb
plaid-17.1.0 test/test_webhooks.rb
plaid-17.0.0 test/test_webhooks.rb
plaid-16.0.0 test/test_webhooks.rb
plaid-15.11.0 test/test_webhooks.rb
plaid-15.10.0 test/test_webhooks.rb
plaid-15.9.0 test/test_webhooks.rb
plaid-15.8.0 test/test_webhooks.rb
plaid-15.7.0 test/test_webhooks.rb
plaid-15.6.0 test/test_webhooks.rb
plaid-15.5.0 test/test_webhooks.rb