summaryrefslogtreecommitdiff
path: root/spec/factories/x509_certificate.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/x509_certificate.rb')
-rw-r--r--spec/factories/x509_certificate.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/factories/x509_certificate.rb b/spec/factories/x509_certificate.rb
new file mode 100644
index 00000000000..819ad0704dc
--- /dev/null
+++ b/spec/factories/x509_certificate.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+FactoryBot.define do
+ factory :x509_certificate do
+ subject_key_identifier { 'BC:BC:BC:BC:BC:BC:BC:BC:BC:BC:BC:BC:BC:BC:BC:BC:BC:BC:BC:BC' }
+ subject { 'CN=gitlab@example.org,OU=Example,O=World' }
+
+ email { 'gitlab@example.org' }
+ serial_number { 278969561018901340486471282831158785578 }
+ x509_issuer
+ end
+end