Created
March 18, 2019 20:29
-
-
Save calh/5e8052cd195664d39a286e7bbd15c8af to your computer and use it in GitHub Desktop.
test/functional/consumer_controller_test.rb test_edit_account_with_missing_portal_slug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DEBUG] [Ticket] Loaded config file statsd into PID 29463 | |
[DEBUG] [Ticket] Loaded config file memcached into PID 29463 | |
[DEBUG] [Ticket] New MC connection to ["authdb.fbsdata.com:11211", "authdb.fbsdata.com:11212", "authdb.fbsdata.com:11213"] | |
[DEBUG] [Ticket] Loaded config file mysql into PID 29463 | |
[DEBUG] [Ticket] New master mysql connection to zoidberg.fbsdata.com in PID 29463 | |
[DEBUG] [Ticket] Loaded config file prefs into PID 29463 | |
[DEBUG] [Ticket] Loaded config file mysql_auth into PID 29463 | |
[DEBUG] [Ticket] Loaded config file cookies into PID 29463 | |
[DEBUG] [Ticket] New slave mysql connection to zoidberg.fbsdata.com in PID 29463 | |
[DEBUG] MOPED: 192.168.74.21:27018 COMMAND database=admin command={:ismaster=>1} (16.6070ms) | |
[DEBUG] MOPED: 192.168.74.21:27018 COMMAND database=twilio_cal command={:drop=>"sms_message"} (0.6344ms) | |
[DEBUG] MOPED: 192.168.74.21:27018 COMMAND database=twilio_cal command={:drop=>"voice_call"} (0.4909ms) | |
[DEBUG] MOPED: 192.168.74.21:27018 INSERT database=twilio_cal collection=system.indexes documents=[{:ns=>"twilio_cal.sms_message", :key=>{:date_sent=>1}, :name=>"date_sent_1"}] flags=[] (0.1073ms) | |
[DEBUG] MOPED: 192.168.74.21:27018 INSERT database=twilio_cal collection=system.indexes documents=[{:ns=>"twilio_cal.sms_message", :key=>{:to=>1}, :name=>"to_1"}] flags=[] (0.0646ms) | |
[DEBUG] MOPED: 192.168.74.21:27018 INSERT database=twilio_cal collection=system.indexes documents=[{:ns=>"twilio_cal.voice_call", :key=>{:start_time=>1}, :name=>"start_time_1"}] flags=[] (0.1118ms) | |
[DEBUG] MOPED: 192.168.74.21:27018 INSERT database=twilio_cal collection=system.indexes documents=[{:ns=>"twilio_cal.voice_call", :key=>{:to=>1}, :name=>"to_1"}] flags=[] (0.0920ms) | |
[INFO] Processing by ConsumerController#edit as HTML | |
[INFO] identity_username=ticket.testguy2 identity_id=20190318152912921745300000 | |
[DEBUG] HttpAuth.get: fetching "http://internal.dev.fbsdata.com/httpauth/portal_from_slug/tord?" without cache | |
[ERROR] | |
WebMock::NetConnectNotAllowedError Real HTTP connections are disabled. Unregistered request: GET http://internal.dev.fbsdata.com/flexiapi/coi_status?email_address=ticket.testguy2 with headers {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization'=>'Basic ZmxleGlhcGlfY2xpZW50OnN0MG4zZDN2ZWxvcG0zbnQ=', 'Content-Type'=>'application/json', 'User-Agent'=>'Flexiapi', 'X-Flexiapi-User-Agent'=>'ticket_auth', 'X-Flexiapi-Userid'=>'20140314180340540632000000'} | |
You can stub this request with the following snippet: | |
stub_request(:get, "http://internal.dev.fbsdata.com/flexiapi/coi_status?email_address=ticket.testguy2"). | |
with( | |
headers: { | |
'Accept'=>'application/json', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'Basic ZmxleGlhcGlfY2xpZW50OnN0MG4zZDN2ZWxvcG0zbnQ=', | |
'Content-Type'=>'application/json', | |
'User-Agent'=>'Flexiapi', | |
'X-Flexiapi-User-Agent'=>'ticket_auth', | |
'X-Flexiapi-Userid'=>'20140314180340540632000000' | |
}). | |
to_return(status: 200, body: "", headers: {}) | |
registered request stubs: | |
stub_request(:get, "http://apps.flexmls.com/user_agent/lookup.json?ua=Mozilla/5.0%20(CPU%20iPhone%20OS%208%20like%20Mac%20OS%20X)%20Mobile%20flexmlsMobile/1.6.4%20(test)") | |
stub_request(:get, "http://apps.flexmls.com/user_agent/lookup.json?ua=Mozilla/5.0%20(CPU%20iPhone%20OS%2010%20like%20Mac%20OS%20X)%20Mobile%20flexmlsMobile/2.6.6%20(test)") | |
stub_request(:post, "https://api.dev.fbsdata.com/v1/oauth2/grant"). | |
with( | |
body: " {\"client_id\":\"cpyfzq94e0kpj6llczezfc0ec\",\"client_secret\":\"c6a7p8jgd1318srifrjxc11eb\",\n \"grant_type\":\"password\",\"username\":\"ticket.testguy1\",\"password\":\"1234\",\n \"portal_url\":\"/r/login/tord\"}\n BODY,\n headers: {\n 'Accept'=>'*/*',\n 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3',\n 'Content-Type'=>'application/json',\n 'User-Agent'=>'Ticket Auth Testing',\n 'X-Sparkapi-User-Agent'=>'Ticket Auth Testing'\n }).\nto_return(status: 400, headers: { 'Content-Type' => 'application/json' },\n body: <<~BODY\n {\"error\":\"invalid_request\"}\n") | |
stub_request(:get, "http://internal.dev.fbsdata.com/httpauth/portal_from_id/20140314180340540632000000"). | |
with( | |
headers: { | |
'Authorization'=>'Basic c29hX3JlYWRlcjpzaW5hdHJhNHRoZXcxbg==', | |
'Content-Type'=>'application/json', | |
'Host'=>'internal.dev.fbsdata.com' | |
}) | |
stub_request(:post, "https://api.dev.fbsdata.com/v1/consumers/20190318152912921745300000/agents"). | |
with( | |
body: {"D"=>{"Id"=>"20140314180340540632000000", "Portal"=>{"Name"=>"tord"}, "ContactId"=>"20131223213456043060000000"}}, | |
headers: { | |
'Accept'=>'*/*', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'OAuth 98sgw3uebrcz145ms7a8vcllk', | |
'Content-Type'=>'application/json', | |
'User-Agent'=>'Ticket Auth Testing', | |
'X-Sparkapi-User-Agent'=>'Ticket Auth Testing' | |
}) | |
stub_request(:post, "https://api.dev.fbsdata.com/v1/consumers/20170123132806080626700000/agents"). | |
with( | |
body: {"D"=>{"Contact"=>{"GivenName"=>"Fake", "FamilyName"=>"Name", "HomeStreetAddress"=>"123 Test Dr", "HomeLocality"=>"Wherever", "HomeRegion"=>"MN", "HomePostalCode"=>"56560", "PrimaryPhoneNumber"=>"867-5309", "DisplayName"=>"Fake Name", "PrimaryEmail"=>"[email protected]", "Tags"=>["IDX Lead"]}, "Portal"=>{"Name"=>"tord"}}}, | |
headers: { | |
'Accept'=>'*/*', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'OAuth 98sgw3uebrcz145ms7a8vcllk', | |
'Content-Type'=>'application/json', | |
'User-Agent'=>'Ticket Auth Testing', | |
'X-Sparkapi-User-Agent'=>'Ticket Auth Testing' | |
}) | |
stub_request(:get, "https://api.dev.fbsdata.com/v1/contacts?ApiUser=20140314180340540632000000&_expand=Portal,VowExists&_filter=PortalLoginName%20Eq%20'[email protected]'&_select=Id,DisplayName"). | |
with( | |
headers: { | |
'Accept'=>'*/*', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'OAuth 98sgw3uebrcz145ms7a8vcllk', | |
'Content-Type'=>'application/json', | |
'User-Agent'=>'Ticket Auth Testing', | |
'X-Sparkapi-User-Agent'=>'Ticket Auth Testing' | |
}) | |
stub_request(:get, "https://api.dev.fbsdata.com/v1/contacts?ApiUser=20140314180340540632000000&_expand=Portal,VowExists&_filter=PrimaryEmail%20Eq%20'[email protected]'&_select=Id,DisplayName"). | |
with( | |
headers: { | |
'Accept'=>'*/*', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'OAuth 98sgw3uebrcz145ms7a8vcllk', | |
'Content-Type'=>'application/json', | |
'User-Agent'=>'Ticket Auth Testing', | |
'X-Sparkapi-User-Agent'=>'Ticket Auth Testing' | |
}) | |
stub_request(:get, "https://api.dev.fbsdata.com/v1/contacts?ApiUser=20140314180340540632000000&_expand=Portal,VowExists&_filter=PortalLoginName%20Eq%20'[email protected]'&_select=Id,DisplayName"). | |
with( | |
headers: { | |
'Accept'=>'*/*', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'OAuth 98sgw3uebrcz145ms7a8vcllk', | |
'Content-Type'=>'application/json', | |
'User-Agent'=>'Ticket Auth Testing', | |
'X-Sparkapi-User-Agent'=>'Ticket Auth Testing' | |
}) | |
stub_request(:get, "https://api.dev.fbsdata.com/v1/contacts?ApiUser=20140314180340540632000000&_expand=Portal,VowExists&_filter=PrimaryEmail%20Eq%20'[email protected]'&_select=Id,DisplayName"). | |
with( | |
headers: { | |
'Accept'=>'*/*', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'OAuth 98sgw3uebrcz145ms7a8vcllk', | |
'Content-Type'=>'application/json', | |
'User-Agent'=>'Ticket Auth Testing', | |
'X-Sparkapi-User-Agent'=>'Ticket Auth Testing' | |
}) | |
stub_request(:get, "https://api.dev.fbsdata.com/v1/contacts?ApiUser=20140314180340540632000000&_expand=Portal,VowExists&_filter=PortalLoginName%20Eq%20'ticket.testguy2'&_select=Id,DisplayName"). | |
with( | |
headers: { | |
'Accept'=>'*/*', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'OAuth 98sgw3uebrcz145ms7a8vcllk', | |
'Content-Type'=>'application/json', | |
'User-Agent'=>'Ticket Auth Testing', | |
'X-Sparkapi-User-Agent'=>'Ticket Auth Testing' | |
}) | |
stub_request(:get, "https://api.dev.fbsdata.com/v1/contacts?ApiUser=20140314180340540632000000&_expand=Portal,VowExists&_filter=PrimaryEmail%20Eq%20'ticket.testguy2'&_select=Id,DisplayName"). | |
with( | |
headers: { | |
'Accept'=>'*/*', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'OAuth 98sgw3uebrcz145ms7a8vcllk', | |
'Content-Type'=>'application/json', | |
'User-Agent'=>'Ticket Auth Testing', | |
'X-Sparkapi-User-Agent'=>'Ticket Auth Testing' | |
}) | |
stub_request(:get, "http://internal.dev.fbsdata.com/flexiapi/my/account"). | |
with( | |
headers: { | |
'Accept'=>'application/json', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'Basic ZmxleGlhcGlfY2xpZW50OnN0MG4zZDN2ZWxvcG0zbnQ=', | |
'Content-Type'=>'application/json', | |
'User-Agent'=>'Flexiapi', | |
'X-Flexiapi-User-Agent'=>'ticket_auth', | |
'X-Flexiapi-Userid'=>'20140314180340540632000000' | |
}) | |
stub_request(:get, "http://internal.dev.fbsdata.com/flexiapi/my/account"). | |
with( | |
headers: { | |
'Accept'=>'application/json', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'Basic ZmxleGlhcGlfY2xpZW50OnN0MG4zZDN2ZWxvcG0zbnQ=', | |
'Content-Type'=>'application/json', | |
'User-Agent'=>'Flexiapi', | |
'X-Flexiapi-User-Agent'=>'ticket_auth', | |
'X-Flexiapi-Userid'=>'20000426143505724628000000' | |
}) | |
stub_request(:get, "http://internal.dev.fbsdata.com/accounts/20140314180340540632000000/products/idx"). | |
with( | |
headers: { | |
'Authorization'=>'Basic c29hX3JlYWRlcjpzaW5hdHJhNHRoZXcxbg==', | |
'Content-Type'=>'application/json', | |
'Host'=>'internal.dev.fbsdata.com' | |
}) | |
stub_request(:get, "https://api.dev.fbsdata.com/v1/accounts/20140314180340540632000000/profile/report?ApiUser=20140314180340540632000000&_expand=Associations"). | |
with( | |
headers: { | |
'Accept'=>'*/*', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'OAuth 98sgw3uebrcz145ms7a8vcllk', | |
'Content-Type'=>'application/json', | |
'User-Agent'=>'Ticket Auth Testing', | |
'X-Sparkapi-User-Agent'=>'Ticket Auth Testing' | |
}) | |
stub_request(:get, "http://fl.flexmls.com/") | |
stub_request(:get, "http://fgo.flexmls.com/") | |
stub_request(:get, "https://api.dev.fbsdata.com/v1/consumers/20190318152912921745300000/agents/20140314180340540632000000/contacts?ApiUser=20140314180340540632000000"). | |
with( | |
headers: { | |
'Accept'=>'*/*', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'OAuth 98sgw3uebrcz145ms7a8vcllk', | |
'Content-Type'=>'application/json', | |
'User-Agent'=>'Ticket Auth Testing', | |
'X-Sparkapi-User-Agent'=>'Ticket Auth Testing' | |
}) | |
stub_request(:post, "https://api.twilio.com/2010-04-01/Accounts/AC203e38de567cc1f7e6e562650e8c7991/Messages.json"). | |
with( | |
body: {"Body"=>"test body", "ForceDelivery"=>"false", "From"=>"+15005550006", "To"=>"+15005550004"}, | |
headers: { | |
'Accept'=>'application/json', | |
'Accept-Charset'=>'utf-8', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'Basic QUMyMDNlMzhkZTU2N2NjMWY3ZTZlNTYyNjUwZThjNzk5MTphZjYwZTFkOWNjMGI0MTJkMjQ4YzE2NDU4NzBjMDc1MQ==', | |
'Content-Type'=>'application/x-www-form-urlencoded' | |
}) | |
stub_request(:post, "https://api.twilio.com/2010-04-01/Accounts/AC203e38de567cc1f7e6e562650e8c7991/Messages.json"). | |
with( | |
body: {"Body"=>"Your login code is 553987", "ForceDelivery"=>"false", "From"=>"+15005550006", "To"=>"7012610577"}, | |
headers: { | |
'Accept'=>'application/json', | |
'Accept-Charset'=>'utf-8', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'Basic QUMyMDNlMzhkZTU2N2NjMWY3ZTZlNTYyNjUwZThjNzk5MTphZjYwZTFkOWNjMGI0MTJkMjQ4YzE2NDU4NzBjMDc1MQ==', | |
'Content-Type'=>'application/x-www-form-urlencoded' | |
}) | |
stub_request(:post, "https://api.twilio.com/2010-04-01/Accounts/AC203e38de567cc1f7e6e562650e8c7991/Messages.json"). | |
with( | |
body: {"Body"=>"Your login code is 602601", "ForceDelivery"=>"false", "From"=>"+15005550006", "To"=>"7012610577"}, | |
headers: { | |
'Accept'=>'application/json', | |
'Accept-Charset'=>'utf-8', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'Basic QUMyMDNlMzhkZTU2N2NjMWY3ZTZlNTYyNjUwZThjNzk5MTphZjYwZTFkOWNjMGI0MTJkMjQ4YzE2NDU4NzBjMDc1MQ==', | |
'Content-Type'=>'application/x-www-form-urlencoded' | |
}) | |
stub_request(:post, "https://api.twilio.com/2010-04-01/Accounts/AC203e38de567cc1f7e6e562650e8c7991/Messages.json"). | |
with( | |
body: {"Body"=>"Your login code is 904925", "ForceDelivery"=>"false", "From"=>"+15005550006", "To"=>"15005550004"}, | |
headers: { | |
'Accept'=>'application/json', | |
'Accept-Charset'=>'utf-8', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'Basic QUMyMDNlMzhkZTU2N2NjMWY3ZTZlNTYyNjUwZThjNzk5MTphZjYwZTFkOWNjMGI0MTJkMjQ4YzE2NDU4NzBjMDc1MQ==', | |
'Content-Type'=>'application/x-www-form-urlencoded' | |
}) | |
stub_request(:post, "https://api.twilio.com/2010-04-01/Accounts/AC203e38de567cc1f7e6e562650e8c7991/Messages.json"). | |
with( | |
body: "Body=test+body&ForceDelivery=false&From=%2B15005550006&To=%2B15005550009", | |
headers: { | |
'Accept'=>'application/json', | |
'Accept-Charset'=>'utf-8', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'Basic QUMyMDNlMzhkZTU2N2NjMWY3ZTZlNTYyNjUwZThjNzk5MTphZjYwZTFkOWNjMGI0MTJkMjQ4YzE2NDU4NzBjMDc1MQ==', | |
'Content-Type'=>'application/x-www-form-urlencoded' | |
}) | |
stub_request(:post, "http://dev.fbsdata.com/cgi-bin/mainmenu.cgi"). | |
with( | |
body: "cmd=url%2Btest%2Fusertest1.json&command_line_mode=true", | |
headers: { | |
'Host'=>'dev.fbsdata.com', | |
'Referer'=>'http://dev.fbsdata.com' | |
}) | |
stub_request(:get, "http://internal.dev.fbsdata.com/httpauth//find_identity/20131223213456043060000000"). | |
with( | |
headers: { | |
'Authorization'=>'Basic c29hX3JlYWRlcjpzaW5hdHJhNHRoZXcxbg==', | |
'Content-Type'=>'application/json', | |
'Host'=>'internal.dev.fbsdata.com' | |
}) | |
stub_request(:get, "http://internal.dev.fbsdata.com/httpauth/identity_public_logon/20190318152912931571500000/agent/20140314180340540632000000"). | |
with( | |
headers: { | |
'Authorization'=>'Basic c29hX3JlYWRlcjpzaW5hdHJhNHRoZXcxbg==', | |
'Content-Type'=>'application/json', | |
'Host'=>'internal.dev.fbsdata.com' | |
}) | |
stub_request(:get, "http://internal.dev.fbsdata.com/httpauth/identity_public_logon/20190318152912921745300000/agent/20140314180340540632000000"). | |
with( | |
headers: { | |
'Authorization'=>'Basic c29hX3JlYWRlcjpzaW5hdHJhNHRoZXcxbg==', | |
'Content-Type'=>'application/json', | |
'Host'=>'internal.dev.fbsdata.com' | |
}) | |
stub_request(:post, "http://worker.dev.fbsdata.com/gabby_gale/flexmail/templated/flexmls_consumer_account"). | |
with( | |
body: {"agent_id"=>"20140314180340540632000000", "contact_email"=>"[email protected]", "contact_id"=>"1234567890", "contact_name"=>"Fake Name", "mail_type"=>"create", "portal_slug"=>"tord"}, | |
headers: { | |
'Accept'=>'*/*', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'Basic ZkwzeG00MUw6ZzRiYnlfZzRMM19yMHg=', | |
'Content-Type'=>'application/json', | |
'User-Agent'=>'Faraday v0.9.2' | |
}) | |
stub_request(:post, "http://worker.dev.fbsdata.com/gabby_gale/flexmail/templated/flexmls_consumer_account"). | |
with( | |
body: {"agent_id"=>"20140314180340540632000000", "contact_email"=>"[email protected]", "contact_id"=>nil, "contact_name"=>nil, "mail_type"=>"create", "portal_slug"=>"tord"}, | |
headers: { | |
'Accept'=>'*/*', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'Basic ZkwzeG00MUw6ZzRiYnlfZzRMM19yMHg=', | |
'Content-Type'=>'application/json', | |
'User-Agent'=>'Faraday v0.9.2' | |
}) | |
stub_request(:post, "http://worker.dev.fbsdata.com/gabby_gale/flexmail/templated/flexmls_consumer_account"). | |
with( | |
body: {"agent_id"=>"20140314180340540632000000", "contact_email"=>"ticket.testguy2", "contact_id"=>"20140314180340540632000000", "contact_name"=>"Open Guy", "mail_type"=>"password_reset", "portal_slug"=>"tord", "voucher"=>"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6InRpY2tldC50ZXN0Z3V5MiIsImV4cCI6MTUzODYwMzQ4MX0.i7GlLQ_4bQ6dr1NyeMl_CTnRwh_76oxWB_dUTOlsylA"}, | |
headers: { | |
'Accept'=>'*/*', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'Basic ZkwzeG00MUw6ZzRiYnlfZzRMM19yMHg=', | |
'Content-Type'=>'application/json', | |
'User-Agent'=>'Faraday v0.9.2' | |
}) | |
stub_request(:get, "http://internal.dev.fbsdata.com/httpauth/portal_from_slug/tord"). | |
with( | |
headers: { | |
'Authorization'=>'Basic c29hX3JlYWRlcjpzaW5hdHJhNHRoZXcxbg==', | |
'Content-Type'=>'application/json', | |
'Host'=>'internal.dev.fbsdata.com' | |
}) | |
stub_request(:get, "http://internal.dev.fbsdata.com/flexiapi/prefs/portal_req_fields"). | |
with( | |
headers: { | |
'Accept'=>'application/json', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'Basic ZmxleGlhcGlfY2xpZW50OnN0MG4zZDN2ZWxvcG0zbnQ=', | |
'Content-Type'=>'application/json', | |
'User-Agent'=>'Flexiapi', | |
'X-Flexiapi-User-Agent'=>'ticket_auth', | |
'X-Flexiapi-Userid'=>'20010309142049653123000000' | |
}) | |
stub_request(:get, "http://internal.dev.fbsdata.com/flexiapi/prefs/portal_req_fields"). | |
with( | |
headers: { | |
'Accept'=>'application/json', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'Basic ZmxleGlhcGlfY2xpZW50OnN0MG4zZDN2ZWxvcG0zbnQ=', | |
'Content-Type'=>'application/json', | |
'User-Agent'=>'Flexiapi', | |
'X-Flexiapi-User-Agent'=>'ticket_auth', | |
'X-Flexiapi-Userid'=>'20000809145531659995000000' | |
}) | |
stub_request(:get, "http://internal.dev.fbsdata.com/flexiapi/prefs/portal_req_fields"). | |
with( | |
headers: { | |
'Accept'=>'application/json', | |
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', | |
'Authorization'=>'Basic ZmxleGlhcGlfY2xpZW50OnN0MG4zZDN2ZWxvcG0zbnQ=', | |
'Content-Type'=>'application/json', | |
'User-Agent'=>'Flexiapi', | |
'X-Flexiapi-User-Agent'=>'ticket_auth', | |
'X-Flexiapi-Userid'=>'20140314180340540632000000' | |
}) | |
stub_request(:get, "http://internal.dev.fbsdata.com/httpauth//user/20140314180340540632000000"). | |
with( | |
headers: { | |
'Authorization'=>'Basic c29hX3JlYWRlcjpzaW5hdHJhNHRoZXcxbg==', | |
'Content-Type'=>'application/json', | |
'Host'=>'internal.dev.fbsdata.com' | |
}) | |
stub_request(:get, "http://apps.flexmls.com/user_agent/lookup.json?ua=Rails%20Testing") | |
============================================================ | |
vendor/bundle/ruby/2.3.0/gems/webmock-3.4.2/lib/webmock/http_lib_adapters/net_http.rb:114:in `request' | |
/opt/ruby23/lib64/ruby/2.3.0/net/http.rb:1156:in `get' | |
/home/cal/ticket_auth/vendor/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:80:in `perform_request' | |
/home/cal/ticket_auth/vendor/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:40:in `block in call' | |
/home/cal/ticket_auth/vendor/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:87:in `with_net_http_connection' | |
[INFO] Rendered vendor/bundle/ruby/2.3.0/gems/flexmls_rails_http_status-0.1.5/app/views/http_status/500.erb within layouts/http_status (1.9ms) | |
[INFO] Completed 500 Internal Server Error in 53.1ms (Views: 11.0ms) | |
[DEBUG] MOPED: 192.168.74.21:27018 COMMAND database=twilio_cal command={:drop=>"sms_message"} (9.6476ms) | |
[DEBUG] MOPED: 192.168.74.21:27018 COMMAND database=twilio_cal command={:drop=>"voice_call"} (7.7374ms) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment