Skip to content

Commit

Permalink
API 38954 Enable EBenefitsBnftClaimStatusWebService (#18015)
Browse files Browse the repository at this point in the history
* Enable EBenefitsBnftClaimStatusWebService
  • Loading branch information
acovrig authored Sep 4, 2024
1 parent 5e3fa8a commit 1fa3343
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/claims_api/lib/bgs_service/local_bgs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module ClaimsApi
class LocalBGS
CACHED_SERVICES = %w[
ClaimantServiceBean/ClaimantWebService
EBenefitsBnftClaimStatusWebServiceBean/EBenefitsBnftClaimStatusWebService
IntentToFileWebServiceBean/IntentToFileWebService
OrgWebServiceBean/OrgWebService
PersonWebServiceBean/PersonWebService
Expand Down
20 changes: 20 additions & 0 deletions modules/claims_api/spec/lib/claims_api/find_definition_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@
end

context 'EBenefitsBnftClaimStatusWebServiceBean' do
let(:endpoint) { 'EBenefitsBnftClaimStatusWebServiceBean/EBenefitsBnftClaimStatusWebService' }
let(:action) { 'findBenefitClaimsStatusByPtcpntId' }
let(:key) { 'BenefitClaimsDTO' }

it 'response with the correct attributes' do
result = subject.for_action(endpoint, action)
parsed_result = JSON.parse(result.to_json)
expect(parsed_result['service']['bean']['path']).to eq 'EBenefitsBnftClaimStatusWebServiceBean'
expect(parsed_result['service']['path']).to eq 'EBenefitsBnftClaimStatusWebService'
expect(parsed_result['service']['bean']['namespaces']['target']).to eq 'http://claimstatus.services.ebenefits.vba.va.gov/'
end
end

context 'IntentToFileWebServiceBean' do
Expand Down Expand Up @@ -240,6 +251,15 @@
end

context 'EBenefitsBnftClaimStatusWebServiceBean' do
let(:endpoint) { 'EBenefitsBnftClaimStatusWebServiceBean/EBenefitsBnftClaimStatusWebService' }

it 'response with the correct namespace' do
result = subject.for_service(endpoint)
parsed_result = JSON.parse(result.to_json)
expect(parsed_result['bean']['path']).to eq 'EBenefitsBnftClaimStatusWebServiceBean'
expect(parsed_result['path']).to eq 'EBenefitsBnftClaimStatusWebService'
expect(parsed_result['bean']['namespaces']['target']).to eq 'http://claimstatus.services.ebenefits.vba.va.gov/'
end
end

context 'IntentToFileWebServiceBean' do
Expand Down

0 comments on commit 1fa3343

Please sign in to comment.