summaryrefslogtreecommitdiff
path: root/spec/factories/pages_domain_acme_orders.rb
blob: 7f9ee1c8f9c233f496e8a14606ad344cde0063d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

FactoryBot.define do
  factory :pages_domain_acme_order do
    pages_domain
    url { 'https://example.com/' }
    expires_at { 1.day.from_now }
    challenge_token { 'challenge_token' }
    challenge_file_content { 'filecontent' }

    private_key { OpenSSL::PKey::RSA.new(4096).to_pem }

    trait :expired do
      expires_at { 1.day.ago }
    end
  end
end