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

API-35479-526-mock-data #16719

Merged
merged 14 commits into from
May 16, 2024
Merged

API-35479-526-mock-data #16719

merged 14 commits into from
May 16, 2024

Conversation

stiehlrod
Copy link
Contributor

@stiehlrod stiehlrod commented May 13, 2024

Summary

  • Adds mocking for 526 pdf generator.
  • Adds mock service for s3 upload

Related issue(s)

Testing done

  • New code is covered by unit tests

  • How to test in Postman

    1. {{uri}}/services/claims/v2/veterans/{{veteran_id}}/526/synchronous
    2. no headers, ccg
    3. settings.claims_api.benefits_documents.use_mocks: true
    4. Settings.evss.mock_claims: true
    5. "scope": "system/526.override system/526-pdf.override system/claim.write system/claim.read claim.write claim.read"

What areas of

the site does it impact?
modified: modules/claims_api/app/sidekiq/claims_api/v2/disability_compensation_benefits_documents_uploader.rb
modified: modules/claims_api/app/sidekiq/claims_api/v2/disability_compensation_pdf_generator.rb
modified: modules/claims_api/spec/sidekiq/v2/disability_compensation_pdf_generator_spec.rb
modified: modules/claims_api/spec/requests/v2/veterans/disability_compensation_request_spec.rb
modified: modules/claims_api/spec/sidekiq/v2/disability_compensation_benefits_documents_uploader_spec.rb

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 or Grafana (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

@stiehlrod stiehlrod added the claimsApi modules/claims_api label May 13, 2024
@va-vfs-bot va-vfs-bot temporarily deployed to API-35479-526-mock-data/main/main May 13, 2024 19:15 Inactive
…for pdf_generator. Switches conditional statements to be positive.
@va-vfs-bot va-vfs-bot temporarily deployed to API-35479-526-mock-data/main/main May 14, 2024 17:11 Inactive
@stiehlrod stiehlrod marked this pull request as ready for review May 15, 2024 14:12
@stiehlrod stiehlrod requested a review from a team as a code owner May 15, 2024 14:12
@va-vfs-bot va-vfs-bot temporarily deployed to API-35479-526-mock-data/main/main May 15, 2024 14:23 Inactive
Copy link
Contributor

@mchristiansonVA mchristiansonVA left a comment

Choose a reason for hiding this comment

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

Tested 526 submissions locally using the new pdf_generator_526 setting set to true, then confirmed expected mocking behavior and associated logging. Looks good, but deferring approval for your review of comments I added.

@va-vfs-bot va-vfs-bot temporarily deployed to API-35479-526-mock-data/main/main May 15, 2024 17:13 Inactive
@stiehlrod stiehlrod marked this pull request as draft May 15, 2024 18:06
@stiehlrod stiehlrod marked this pull request as ready for review May 15, 2024 19:20
@va-vfs-bot va-vfs-bot temporarily deployed to API-35479-526-mock-data/main/main May 15, 2024 19:22 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-35479-526-mock-data/main/main May 15, 2024 19:56 Inactive
@stiehlrod stiehlrod marked this pull request as draft May 15, 2024 20:04
@stiehlrod stiehlrod marked this pull request as ready for review May 15, 2024 20:28
Copy link
Contributor

@mchristiansonVA mchristiansonVA left a comment

Choose a reason for hiding this comment

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

Tested locally in Postman with local settings updated as noted. Successful requests for synchronous and non-synchronous calls; confirmed pdf generation and s3 upload are skipped. Looks good to me!

@stiehlrod stiehlrod merged commit c3dc79c into master May 16, 2024
19 checks passed
@stiehlrod stiehlrod deleted the API-35479-526-mock-data branch May 16, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
claimsApi modules/claims_api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants