summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorVladimir Shushlin <vshushlin@gitlab.com>2019-05-31 05:22:55 +0000
committerStan Hu <stanhu@gmail.com>2019-05-31 05:22:55 +0000
commit39e21fb2661693fed914012a39fb3a53b2b687c2 (patch)
tree70a5fdd93cea81aed9c1638bc32513a1fdf84bb7 /spec/support
parentc8c08d326942f30ad87d0702cc8b9c5896d296ad (diff)
downloadgitlab-ce-39e21fb2661693fed914012a39fb3a53b2b687c2.tar.gz
Generate lets_encrypt_private_key on the fly
Remove migration generating lets encrypt key Don't generate private_key if database is readonly For reference: This reverts commit 988a7f70489b99383b95e9f271a2caf6bb5b3a44. This reverts commit 21acbe531592d55caf0e5b8716a3b551dafd6233.
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/matchers/eq_pem.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/support/matchers/eq_pem.rb b/spec/support/matchers/eq_pem.rb
new file mode 100644
index 00000000000..158281e4a19
--- /dev/null
+++ b/spec/support/matchers/eq_pem.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+RSpec::Matchers.define :eq_pem do |expected_pem_string|
+ match do |actual|
+ actual.to_pem == expected_pem_string
+ end
+
+ description do
+ "contain pem #{expected_pem_string}"
+ end
+end