Sha256: 5ed7b18a8b513a959d07ddb63bb1f71800d4c80e97735933ea4341ac38aaccbc

Contents?: true

Size: 933 Bytes

Versions: 8

Compression:

Stored size: 933 Bytes

Contents

require "spec_helper"

RSpec.describe Digicert::ClientCertificate::EmailSecurityPlus do
  describe ".create" do
    it "creates a new order for a email security plus certificate" do
      stub_digicert_order_create_api(
        "client_email_security_plus", order_attributes
      )

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

      expect(order.id).not_to be_nil
    end
  end

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

        # 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/email_security_plus_spec.rb
digicert-0.5.0 spec/digicert/client_certificate/email_security_plus_spec.rb
digicert-0.4.1 spec/digicert/client_certificate/email_security_plus_spec.rb
digicert-0.4.0 spec/digicert/client_certificate/email_security_plus_spec.rb
digicert-0.3.1 spec/digicert/client_certificate/email_security_plus_spec.rb
digicert-0.3.0 spec/digicert/client_certificate/email_security_plus_spec.rb
digicert-0.2.0 spec/digicert/client_certificate/email_security_plus_spec.rb
digicert-0.1.2 spec/digicert/client_certificate/email_security_plus_spec.rb