@@ -83,11 +83,11 @@ module VCAP::Services::ServiceBrokers::V2
8383 it 'logs the default headers' do
8484 make_request
8585 expect ( fake_logger ) . to have_received ( :debug ) . with ( match ( %r{Accept" => "application/json} ) )
86- expect ( fake_logger ) . to have_received ( :debug ) . with ( match ( /X-VCAP-Request-ID"=> "[[:alnum:]-]+/ ) )
87- expect ( fake_logger ) . to have_received ( :debug ) . with ( match ( /X-Broker-API-Request-Identity"=> "[[:alnum:]-]+/ ) )
88- expect ( fake_logger ) . to have_received ( :debug ) . with ( match ( /X-Broker-Api-Version"=> "2\. 15/ ) )
86+ expect ( fake_logger ) . to have_received ( :debug ) . with ( match ( /X-VCAP-Request-ID" => "[[:alnum:]-]+/ ) )
87+ expect ( fake_logger ) . to have_received ( :debug ) . with ( match ( /X-Broker-API-Request-Identity" => "[[:alnum:]-]+/ ) )
88+ expect ( fake_logger ) . to have_received ( :debug ) . with ( match ( /X-Broker-Api-Version" => "2\. 15/ ) )
8989 api_info_path = TestConfig . config [ :temporary_enable_v2 ] ? '/v2/info' : '/'
90- expect ( fake_logger ) . to have_received ( :debug ) . with ( match ( /X-Api-Info-Location"=> "api2\. vcap\. me#{ api_info_path } / ) )
90+ expect ( fake_logger ) . to have_received ( :debug ) . with ( match ( /X-Api-Info-Location" => "api2\. vcap\. me#{ api_info_path } / ) )
9191 end
9292
9393 context 'when an https URL is used' do
@@ -357,12 +357,12 @@ def expect_timeout_to_be(timeout)
357357
358358 it 'redacts credentials from response body' do
359359 make_request
360- expect ( fake_logger ) . to have_received ( :debug ) . with ( /"credentials"=> "\[ REDACTED\] "/ )
360+ expect ( fake_logger ) . to have_received ( :debug ) . with ( /"credentials" => "\[ REDACTED\] "/ )
361361 end
362362
363363 it 'does not redact other keys' do
364364 make_request
365- expect ( fake_logger ) . to have_received ( :debug ) . with ( %r{"syslog_drain_url"=> "example.com/1234"} )
365+ expect ( fake_logger ) . to have_received ( :debug ) . with ( %r{"syslog_drain_url" => "example.com/1234"} )
366366 end
367367
368368 context 'non-json responses' do
@@ -507,7 +507,7 @@ def expect_timeout_to_be(timeout)
507507
508508 it 'logs the Content-Type Header' do
509509 make_request
510- expect ( fake_logger ) . to have_received ( :debug ) . with ( match ( %r{"Content-Type"=> "application/json"} ) )
510+ expect ( fake_logger ) . to have_received ( :debug ) . with ( match ( %r{"Content-Type" => "application/json"} ) )
511511 end
512512
513513 it 'has a content body' do
@@ -584,7 +584,7 @@ def expect_timeout_to_be(timeout)
584584
585585 it 'logs the Content-Type Header' do
586586 make_request
587- expect ( fake_logger ) . to have_received ( :debug ) . with ( match ( %r{"Content-Type"=> "application/json"} ) )
587+ expect ( fake_logger ) . to have_received ( :debug ) . with ( match ( %r{"Content-Type" => "application/json"} ) )
588588 end
589589
590590 it 'has a content body' do
0 commit comments