Project

General

Profile

Revision 400832c6

Added by Thomas McKay over 5 years ago

fixes #16493 - create manifest in portal

View differences:

test/vcr_setup.rb
19 19
      c.ignore_hosts uri.host
20 20
    end
21 21

  
22
    if ENV['debug']
23
      c.debug_logger = File.open(ENV['debug'], 'w')
24
    end
25

  
22 26
    c.default_cassette_options = {
23 27
      :record => mode,
24 28
      :match_requests_on => [:method, :path, :params, :body_json],
......
49 53
    rescue
50 54
      #ignore the warning thrown about this matcher already being resgistered
51 55
    end
56

  
57
    if ENV['record'] == 'true' && mode != :none
58
      username = ENV['PORTALUSERNAME'] || 'username'
59
      password = ENV['PORTALPASSWORD'] || 'password'
60
      c.filter_sensitive_data('username:password') { "#{username}:#{password}" }
61
      c.filter_sensitive_data('subscription/users/username') { "subscription/users/#{username}" }
62
      c.filter_sensitive_data('"username":"username"') { "\"username\":\"#{username}\"" }
63
    end
52 64
    # rubocop:enable HandleExceptions
53 65
  end
54 66
end

Also available in: Unified diff