about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2018-04-12 03:30:57 -0500
committerDavid Yip <yipdw@member.fsf.org>2018-04-12 03:30:57 -0500
commita817f084eafaf5527445c29ab1d68f42b1a2872f (patch)
treef146e6c8ff958d60804e33e40e1970784f5b7b90 /config
parenteb72c3398cd70c6b595fae5a0cb6730a3e49bd61 (diff)
parent8e88a18316d45a459a31d67487bccc247592d187 (diff)
Merge remote-tracking branch 'tootsuite/master'
  Conflicts:
 	app/controllers/statuses_controller.rb
Diffstat (limited to 'config')
-rw-r--r--config/environments/test.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/environments/test.rb b/config/environments/test.rb
index 7d77a170e..122634d5b 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -59,3 +59,14 @@ Rails.application.configure do
 end
 
 Paperclip::Attachment.default_options[:path] = "#{Rails.root}/spec/test_files/:class/:id_partition/:style.:extension"
+
+# set fake_data for pam, don't do real calls, just use fake data
+if ENV['PAM_ENABLED'] == 'true'
+  Rpam2.fake_data =
+    {
+      usernames: Set['pam_user1', 'pam_user2'],
+      servicenames: Set['pam_test', 'pam_test_controlled'],
+      password: '123456',
+      env: { email: 'pam@example.com' }
+    }
+end