VCR to censor ENV['CHANGELOG_GITHUB_TOKEN']

This commit is contained in:
Olle Jonsson 2016-07-02 21:48:08 +02:00
parent d837f25beb
commit 88bcb872a6
13 changed files with 16 additions and 12 deletions
spec
spec_helper.rb
vcr/GitHubChangelogGenerator_OctoFetcher
_fetch_closed_issues_and_pr/when_API_call_is_valid
_fetch_closed_pull_requests/when_API_call_is_valid
_fetch_commit/when_API_call_is_valid
_fetch_date_of_tag/when_API_call_is_valid
_fetch_events_async/when_API_call_is_valid
_github_fetch_tags/when_API_call_is_valid

@ -48,6 +48,10 @@ VCR.configure do |c|
preserve_exact_body_bytes: true,
decode_compressed_response: true
}
c.filter_sensitive_data('<GITHUB_TOKEN>') {
"token #{ENV.fetch('CHANGELOG_GITHUB_TOKEN')}"
}
c.configure_rspec_metadata!
c.hook_into :webmock, :faraday