Skip to content

Add regression spec for redaction in ResolutionProofingJob#6905

Merged
zachmargolis merged 2 commits intojskinne3-json-nil-guardfrom
margolis-nil-ddp-result
Sep 1, 2022
Merged

Add regression spec for redaction in ResolutionProofingJob#6905
zachmargolis merged 2 commits intojskinne3-json-nil-guardfrom
margolis-nil-ddp-result

Conversation

@zachmargolis
Copy link
Contributor

small add-on to #6903

Copy link
Contributor

@jskinne3 jskinne3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, one comment

end

context 'nil response body from ddp' do
let(:ddp_result) { Proofing::Result.new }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be nice to explain in a comment that the response_body tacitly becomes nil here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated in a9f4b48

@zachmargolis zachmargolis merged commit f54f916 into jskinne3-json-nil-guard Sep 1, 2022
@zachmargolis zachmargolis deleted the margolis-nil-ddp-result branch September 1, 2022 22:47
jskinne3 added a commit that referenced this pull request Sep 1, 2022
* guard against non-hash arg input

* Add tests for logging redactor

* changelog: Internal, ThreatMetrix API, redacted logging tests

* Remove misnamed file

* Lint

* Document nil as an expected value with YARD

* Style suggestions in spec file

* Add regression spec for redaction in ResolutionProofingJob (#6905)

* Add regression spec for redaction in ResolutionProofingJob

* Add constructor to clarify nil response_body

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
Copy link
Contributor

@stevegsa stevegsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great

@exception = exception
@transaction_id = transaction_id
@reference = reference
@response_body = response_body
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

regretting I named this response_body since it's a hash

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just code, we can always rename it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants