Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[chore] moved vcr config to storages spec helper

Eric Schubertd029ca938650
diff --git a/modules/storages/spec/spec_helper.rb b/modules/storages/spec/spec_helper.rb
index 753262a9e2e..d614fd7bca8 100644
--- a/modules/storages/spec/spec_helper.rb
+++ b/modules/storages/spec/spec_helper.rb
@@ -39,6 +39,12 @@ require 'dry/container/stub'
# Record Storages Cassettes in module
VCR.configure do |config|
config.cassette_library_dir = 'modules/storages/spec/support/fixtures/vcr_cassettes'
+ config.filter_sensitive_data('<ACCESS_TOKEN>') do
+ ENV.fetch('ONE_DRIVE_TEST_OAUTH_CLIENT_ACCESS_TOKEN', 'MISSING_ONE_DRIVE_TEST_OAUTH_CLIENT_ACCESS_TOKEN')
+ end
+ config.filter_sensitive_data('<ACCESS_TOKEN>') do
+ ENV.fetch('NEXTCLOUD_LOCAL_OAUTH_CLIENT_ACCESS_TOKEN', 'MISSING_NEXTCLOUD_LOCAL_OAUTH_CLIENT_ACCESS_TOKEN')
+ end
end
# Loads files from relative support/ directory
diff --git a/spec/support/vcr.rb b/spec/support/vcr.rb
index 8d97d3d2dff..eec49cf7b7b 100644
--- a/spec/support/vcr.rb
+++ b/spec/support/vcr.rb
@@ -35,12 +35,6 @@ VCR.configure do |config|
config.before_record do |i|
i.response.body.force_encoding('UTF-8')
end
- config.filter_sensitive_data('<ACCESS_TOKEN>') do
- ENV.fetch('ONE_DRIVE_TEST_OAUTH_CLIENT_ACCESS_TOKEN', 'MISSING_ONE_DRIVE_TEST_OAUTH_CLIENT_ACCESS_TOKEN')
- end
- config.filter_sensitive_data('<ACCESS_TOKEN>') do
- ENV.fetch('NEXTCLOUD_LOCAL_OAUTH_CLIENT_ACCESS_TOKEN', 'MISSING_NEXTCLOUD_LOCAL_OAUTH_CLIENT_ACCESS_TOKEN')
- end
end
VCR.turn_off!