Sha256: 2f71c6233c39cdc47018543b9f45ba593509409e7764c79ab28abedf01f526bf

Contents?: true

Size: 917 Bytes

Versions: 8

Compression:

Stored size: 917 Bytes

Contents

require "spec_helper"

RSpec.describe "Order client email security plus" do
  describe "ordering client email security plus", api_call: true do
    it "creates a new order for client email security plus" do
      product_name_id = "email_security_plus"

      # Reqeust a new email security plus using the order creation
      # interface with `product_name_id` and required attributes
      #
      order_request = Digicert::Order.create(
        product_name_id, order_attributes
      )

      puts order_request
    end
  end

  def ribose_inc
    @ribose_inc ||= Digicert::Organization.all.first
  end

  def order_attributes
    {
      validity_years: 3,
      certificate: certificate_attributes,
      organization: { id: ribose_inc.id },
    }
  end

  def certificate_attributes
    {
      common_name: "John Doe",
      signature_hash: "sha256",
      emails: ["johndoe@ribosetest.com"],
    }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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