-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into MHV-63090-self-entered-data-api
- Loading branch information
Showing
18 changed files
with
419 additions
and
131 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,44 @@ | ||
betamocks: | ||
recording: false | ||
central_mail: | ||
upload: | ||
enabled: true | ||
check_in: | ||
authentication: | ||
retry_attempt_expiry: 604800 | ||
chip_api_v2: | ||
mock: false | ||
timeout: 30 | ||
lorota_v2: | ||
mock: false | ||
travel_reimbursement_api: | ||
redis_token_expiry: 3540 | ||
clamav: | ||
mock: false | ||
coverband: | ||
github_organization: department-of-veterans-affairs | ||
decision_review: | ||
mock: false | ||
pdf_validation: | ||
enabled: true | ||
dogstatsd: | ||
enabled: true | ||
evss: | ||
s3: | ||
uploads_enabled: true | ||
expiry_scanner: | ||
slack: | ||
channel_id: C24RH0W11 | ||
flipper: | ||
github_organization: department-of-veterans-affairs | ||
mute_logs: false | ||
form_10_10cg: | ||
poa: | ||
s3: | ||
enabled: true | ||
form526_backup: | ||
submission_method: single | ||
google_analytics_cvu: | ||
type: service_account | ||
hca: | ||
ca: [] |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -852,9 +852,11 @@ | |
end | ||
|
||
context 'veteran preparer' do | ||
it 'successful submission' do | ||
let(:expiration_date) { Time.zone.now } | ||
|
||
it 'sends the received email' do | ||
allow_any_instance_of(SimpleFormsApi::IntentToFile) | ||
.to receive(:submit).and_return([confirmation_number, Time.zone.now]) | ||
.to receive(:submit).and_return([confirmation_number, expiration_date]) | ||
allow_any_instance_of(SimpleFormsApi::IntentToFile) | ||
.to receive(:existing_intents) | ||
.and_return({ 'compensation' => 'false', 'pension' => 'false', 'survivor' => 'false' }) | ||
|
@@ -867,14 +869,16 @@ | |
|
||
expect(VANotify::EmailJob).to have_received(:perform_async).with( | ||
'[email protected]', | ||
'form21_0966_confirmation_email_template_id', | ||
'form21_0966_itf_api_received_email_template_id', | ||
{ | ||
'first_name' => 'Veteran', | ||
'date_submitted' => Time.zone.today.strftime('%B %d, %Y'), | ||
'confirmation_number' => confirmation_number, | ||
'lighthouse_updated_at' => nil, | ||
'intent_to_file_benefits' => 'Survivors Pension and/or Dependency and Indemnity Compensation (DIC)' \ | ||
' (VA Form 21P-534 or VA Form 21P-534EZ)' | ||
'intent_to_file_benefits' => 'survivors pension benefits', | ||
'intent_to_file_benefits_links' => '[Apply for DIC, Survivors Pension, and/or Accrued Benefits ' \ | ||
'(VA Form 21P-534EZ)](https://www.va.gov/find-forms/about-form-21p-534ez/)', | ||
'itf_api_expiration_date' => expiration_date | ||
} | ||
) | ||
end | ||
|
@@ -897,8 +901,10 @@ | |
'date_submitted' => Time.zone.today.strftime('%B %d, %Y'), | ||
'confirmation_number' => confirmation_number, | ||
'lighthouse_updated_at' => nil, | ||
'intent_to_file_benefits' => 'Survivors Pension and/or Dependency and Indemnity Compensation (DIC)' \ | ||
' (VA Form 21P-534 or VA Form 21P-534EZ)' | ||
'intent_to_file_benefits' => 'survivors pension benefits', | ||
'intent_to_file_benefits_links' => '[Apply for DIC, Survivors Pension, and/or Accrued Benefits ' \ | ||
'(VA Form 21P-534EZ)](https://www.va.gov/find-forms/about-form-21p-534ez/)', | ||
'itf_api_expiration_date' => nil | ||
} | ||
) | ||
end | ||
|
Oops, something went wrong.