Skip to content

Commit e4cbf7b

Browse files
committed
Sanitize VCR "access_token" value
1 parent ef513bf commit e4cbf7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def replace_ssh_keys(response)
2525
# Replace the contents of the token before writing to file.
2626
def replace_token_contents(interaction)
2727
data = JSON.parse(interaction.response.body, :symbolize_names => true)
28-
data.merge!({:refresh_token => 'REFRESH_TOKEN', :ims_user_id => '22222', :expiration => Date.new(2100, 1, 1).to_time.to_i})
28+
data.merge!({:access_token => 'ACCESS_TOKEN', :refresh_token => 'REFRESH_TOKEN', :ims_user_id => '22222', :expiration => Date.new(2100, 1, 1).to_time.to_i})
2929
interaction.response.body = data.to_json.force_encoding('ASCII-8BIT')
3030

3131
transient_headers = %w[].freeze

0 commit comments

Comments
 (0)