-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Log Filter Options for Savon #33
Conversation
@jheth Are you the main maintainer of the Soapforce gem? How do I get a review for my PR? Thanks! |
soapforce.gemspec
Outdated
@@ -21,6 +21,6 @@ Gem::Specification.new do |spec| | |||
spec.add_runtime_dependency "savon", ">= 2.3.0", '< 3.0.0' | |||
|
|||
spec.add_development_dependency 'rspec', '>= 2.14.0', '< 4.0.0' | |||
spec.add_development_dependency 'webmock', '>= 1.17.0', '< 2.0.0' | |||
spec.add_development_dependency 'webmock', '2.3.2' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why pin to a specific version? Can we do >= 2.3.2
?
@@ -319,7 +319,7 @@ | |||
|
|||
describe "#update" do | |||
before(:each) do | |||
@body = "<tns:update><tns:sObjects><ins0:type>Opportunity</ins0:type><ins0:Id>003ABCDE</ins0:Id><tns:Name>SOAPForce Opportunity</tns:Name><tns:CloseDate>2013-08-12</tns:CloseDate><tns:StageName>Closed Won</tns:StageName></tns:sObjects></tns:update>" | |||
@body = "<tns:update><tns:sObjects><ins0:type>Opportunity</ins0:type><tns:Id>003ABCDE</tns:Id><tns:Name>SOAPForce Opportunity</tns:Name><tns:CloseDate>2013-08-12</tns:CloseDate><tns:StageName>Closed Won</tns:StageName></tns:sObjects></tns:update>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't expect the namespace to change. Any idea why it did?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, not really, but it looks like a Savon issue savonrb/savon#830
spec/lib/client_spec.rb
Outdated
@@ -18,7 +18,7 @@ | |||
stub = stub_login_request({with_body: body}) | |||
stub.to_return(:status => 200, :body => fixture("login_response")) #, :headers => {}) | |||
|
|||
subject.login(username: 'testing', password: 'password_and_token') | |||
subject.login(username: 'testing', password: 'password_and_token', filters: []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding filters here doesn't look right. It's not used by the login
method, it's only used from initialize
.
@jheth Hi, any update on this? Thanks! |
Hey @lbblock2 , sorry for the delay. Forgot to click merge and then realized I don't have the right permissions. I've contacted the org to help me out. |
Added option to include filters for logs to Savon, to take advantage of https://github.com/savonrb/savon/blob/e76ecc00b84b998b012ecc33b55ca1edd443ec55/lib/savon/log_message.rb#L7 and thereby allow us to filter out passwords (as in https://github.com/savonrb/savon/blob/e76ecc00b84b998b012ecc33b55ca1edd443ec55/spec/savon/log_message_spec.rb#L44)