Skip to content
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

Break out PDF 526v2 test #18135

Merged
merged 13 commits into from
Sep 3, 2024
Merged

Break out PDF 526v2 test #18135

merged 13 commits into from
Sep 3, 2024

Conversation

acovrig
Copy link
Contributor

@acovrig acovrig commented Aug 21, 2024

Summary

  • Break v2 526 PDF specs to separate file

Related issue(s)

Testing done

  • New code is covered by unit tests

What areas of the site does it impact?

v2 526 request specs

Acceptance criteria

  • I fixed|updated|added unit tests and integration tests for each feature (if applicable).
  • No error nor warning in the console.
  • Events are being sent to the appropriate logging solution
  • Documentation has been updated (link to documentation)
  • No sensitive information (i.e. PII/credentials/internal URLs/etc.) is captured in logging, hardcoded, or specs
  • Feature/bug has a monitor built into Datadog (if applicable)
  • If app impacted requires authentication, did you login to a local build and verify all authenticated routes work as expected
  • I added a screenshot of the developed feature

@acovrig acovrig added the claimsApi modules/claims_api label Aug 21, 2024
@acovrig acovrig self-assigned this Aug 21, 2024
Copy link

github-actions bot commented Aug 21, 2024

1 Warning
⚠️ This PR changes 262 LoC (not counting whitespace/newlines).

In order to ensure each PR receives the proper attention it deserves, we recommend not exceeding
200. Expect some delays getting reviews.

File Summary

Files

  • modules/claims_api/app/controllers/claims_api/v2/veterans/disability_compensation_controller.rb (+1/-1)

  • modules/claims_api/spec/lib/claims_api/v2/disability_compensation_pdf_mapper_spec.rb (+2/-2)

  • modules/claims_api/spec/requests/v2/veterans/526_spec.rb (+72/-184)

    Note: We exclude files matching the following when considering PR size:

    *.csv, *.json, *.tsv, *.txt, *.md, Gemfile.lock, app/swagger, modules/mobile/docs, spec/fixtures/, spec/support/vcr_cassettes/, modules/mobile/spec/support/vcr_cassettes/, db/seeds, modules/vaos/app/docs, modules/meb_api/app/docs, modules/appeals_api/app/swagger/, *.bru, *.pdf
    

Big PRs are difficult to review, often become stale, and cause delays.

Generated by 🚫 Danger

end
end

def set_international_address(json, address_type)

Choose a reason for hiding this comment

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

Doesn't depend on instance state (maybe move it to another class?) - UtilityFunction

@acovrig acovrig marked this pull request as ready for review August 23, 2024 01:11
@acovrig acovrig requested a review from a team as a code owner August 23, 2024 01:11
Timecop.return
end

def set_international_address(json, address_type)

Choose a reason for hiding this comment

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

Doesn't depend on instance state (maybe move it to another class?) - UtilityFunction

@va-vfs-bot va-vfs-bot temporarily deployed to API-39275-526v2-pdf-specs/main/main August 23, 2024 01:23 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-39275-526v2-pdf-specs/main/main August 27, 2024 05:34 Inactive
end
end

describe 'POST #generatePDF/minimum-validations', vcr: 'claims_api/disability_comp' do
Copy link
Contributor

Choose a reason for hiding this comment

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

@acovrig I don't see a replacement for the minimum validations spec, nor do I see a dup in the whole file, I am curious as why you think we don't need this test?

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 got renamed, sorry for the confusion

@va-vfs-bot va-vfs-bot temporarily deployed to API-39275-526v2-pdf-specs/main/main August 30, 2024 20:57 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-39275-526v2-pdf-specs/main/main August 30, 2024 21:40 Inactive
Copy link
Contributor

@rockwellwindsor-va rockwellwindsor-va left a comment

Choose a reason for hiding this comment

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

Understand the nesting now on generatePDF, see the duplicate test, and thanks for cleaning up that method in the controller that I totally messed up.

Everything still looks covered and is still green

@acovrig acovrig merged commit 904b662 into master Sep 3, 2024
22 of 23 checks passed
@acovrig acovrig deleted the API-39275-526v2-pdf-specs branch September 3, 2024 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants