Sha256: 8f7dac4cd6e8a27ea98dde81f2e08e0086d5d2b16505565acd5b2cb5cdb24c66

Contents?: true

Size: 809 Bytes

Versions: 8

Compression:

Stored size: 809 Bytes

Contents

require "spec_helper"

RSpec.describe Digicert::ClientCertificate::DigitalSignaturePlus do
  describe ".create" do
    it "creates a new order for a digital signature plus certificate" do
      stub_digicert_order_create_api(
        "client_digital_signature_plus", order_attributes
      )

      order = Digicert::ClientCertificate::DigitalSignaturePlus.create(
        order_attributes,
      )

      expect(order.id).not_to be_nil
    end
  end

  def order_attributes
    {
      certificate: {
        # Required for certificate
        emails: ["email@example.com", "email1@example.com"],
        common_name: "Full Name",
        signature_hash: "sha256",
      },
      organization: { id: 117483 },
      validity_years: 3,
      auto_renew: 10,
      renewal_of_order_id: 314152,
    }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
digicert-1.0.0 spec/digicert/client_certificate/digital_signature_plus_spec.rb
digicert-0.5.0 spec/digicert/client_certificate/digital_signature_plus_spec.rb
digicert-0.4.1 spec/digicert/client_certificate/digital_signature_plus_spec.rb
digicert-0.4.0 spec/digicert/client_certificate/digital_signature_plus_spec.rb
digicert-0.3.1 spec/digicert/client_certificate/digital_signature_plus_spec.rb
digicert-0.3.0 spec/digicert/client_certificate/digital_signature_plus_spec.rb
digicert-0.2.0 spec/digicert/client_certificate/digital_signature_plus_spec.rb
digicert-0.1.2 spec/digicert/client_certificate/digital_signature_plus_spec.rb