Sha256: 609d9b855ffb477f7ab63e3a0088019e70fa4855b8b22625d5be845d014c2b72

Contents?: true

Size: 1.04 KB

Versions: 9

Compression:

Stored size: 1.04 KB

Contents

require "spec_helper"

RSpec.describe Digicert::SSLCertificate::SSLEVPlus do
  describe ".create" do
    it "creates a new order for a SSL EV Plus certificate" do
      stub_digicert_order_create_api("ssl_ev_plus", order_attributes)
      order = Digicert::SSLCertificate::SSLEVPlus.create(order_attributes)

      expect(order.id).not_to be_nil
      expect(order.requests.first.id).not_to be_nil
      expect(order.requests.first.status).to eq("pending")
    end
  end

  def order_attributes
    {
      certificate: {
        organization_units: ["Developer Operations"],
        server_platform: { id: 45 },
        profile_option: "some_ssl_profile",

        # Required for certificate
        csr: "------ [CSR HERE] ------",
        common_name: "digicert.com",
        signature_hash: "sha256",
      },
      organization: { id: 117483 },
      validity_years: 3,
      custom_expiration_date: "2017-05-18",
      comments: "Comments for the the approver",
      disable_renewal_notifications: false,
      renewal_of_order_id: 314152,
    }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
digicert-1.0.0 spec/digicert/ssl_certificate/ssl_ev_plus_spec.rb
digicert-0.5.0 spec/digicert/ssl_certificate/ssl_ev_plus_spec.rb
digicert-0.4.1 spec/digicert/ssl_certificate/ssl_ev_plus_spec.rb
digicert-0.4.0 spec/digicert/ssl_certificate/ssl_ev_plus_spec.rb
digicert-0.3.1 spec/digicert/ssl_certificate/ssl_ev_plus_spec.rb
digicert-0.3.0 spec/digicert/ssl_certificate/ssl_ev_plus_spec.rb
digicert-0.2.0 spec/digicert/ssl_certificate/ssl_ev_plus_spec.rb
digicert-0.1.2 spec/digicert/ssl_certificate/ssl_ev_plus_spec.rb
digicert-0.1.1 spec/digicert/ssl_certificate/ssl_ev_plus_spec.rb