Sha256: 406c3dfcd051301f238d48ad9edc29aa11c1aa180269f5fad7bb3b97c58e4732

Contents?: true

Size: 944 Bytes

Versions: 67

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

67 entries across 67 versions & 1 rubygems

Version Path
plaid-35.0.0 test/test_webhooks.rb
plaid-34.0.0 test/test_webhooks.rb
plaid-33.0.0 test/test_webhooks.rb
plaid-32.0.0 test/test_webhooks.rb
plaid-31.0.0 test/test_webhooks.rb
plaid-30.0.0 test/test_webhooks.rb
plaid-29.0.0 test/test_webhooks.rb
plaid-27.0.0 test/test_webhooks.rb
plaid-26.0.1 test/test_webhooks.rb
plaid-26.0.0 test/test_webhooks.rb
plaid-25.0.0 test/test_webhooks.rb
plaid-24.4.0 test/test_webhooks.rb
plaid-24.3.0 test/test_webhooks.rb
plaid-24.2.0 test/test_webhooks.rb
plaid-24.0.0 test/test_webhooks.rb
plaid-23.0.0 test/test_webhooks.rb
plaid-22.0.0 test/test_webhooks.rb
plaid-21.3.0 test/test_webhooks.rb
plaid-21.2.0 test/test_webhooks.rb
plaid-21.1.0 test/test_webhooks.rb