From ebec2df7ad20e539539afabffa2c8f90c268fa77 Mon Sep 17 00:00:00 2001 From: Jennica Stiehl <25069483+stiehlrod@users.noreply.github.com> Date: Wed, 4 Dec 2024 12:59:16 -0700 Subject: [PATCH] Renames org web service and removes unneeded methods. --- .../claims_api/bgs_client/definitions.rb | 19 +------------ .../lib/claims_api/find_definition_spec.rb | 27 ------------------- 2 files changed, 1 insertion(+), 45 deletions(-) diff --git a/modules/claims_api/app/clients/claims_api/bgs_client/definitions.rb b/modules/claims_api/app/clients/claims_api/bgs_client/definitions.rb index fe659ead6bc..54e1b381b25 100644 --- a/modules/claims_api/app/clients/claims_api/bgs_client/definitions.rb +++ b/modules/claims_api/app/clients/claims_api/bgs_client/definitions.rb @@ -118,7 +118,7 @@ module FindIntentToFileByPtcpntIdItfTypeCd ## # OrgWebServiceBean # - module OrgWebServiceBean + module OrgWebService DEFINITION = Bean.new( path: 'OrgWebServiceBean', @@ -129,23 +129,6 @@ module OrgWebServiceBean ) end - module OrgWebService - DEFINITION = - Service.new( - bean: OrgWebServiceBean::DEFINITION, - path: 'OrgWebService' - ) - - module FindOrgBySSN - DEFINITION = - Action.new( - service: OrgWebService::DEFINITION, - name: 'findPoaHistoryByPtcpntId', - key: 'PoaHistory' - ) - end - end - ## # PersonWebServiceBean # diff --git a/modules/claims_api/spec/lib/claims_api/find_definition_spec.rb b/modules/claims_api/spec/lib/claims_api/find_definition_spec.rb index cdd7ca8f873..7a9c1e3f090 100644 --- a/modules/claims_api/spec/lib/claims_api/find_definition_spec.rb +++ b/modules/claims_api/spec/lib/claims_api/find_definition_spec.rb @@ -30,21 +30,6 @@ end end - context 'OrgWebServiceBean' do - let(:endpoint) { 'OrgWebServiceBean/OrgWebService' } - let(:action) { 'findPoaHistoryByPtcpntId' } - let(:key) { 'PoaHistory' } - - it 'response with the correct attributes for OrgWebServiceBean' do - result = subject.for_action(endpoint, action) - parsed_result = JSON.parse(result.to_json) - - expect(parsed_result['service']['bean']['path']).to eq 'OrgWebServiceBean' - expect(parsed_result['service']['path']).to eq 'OrgWebService' - expect(parsed_result['service']['bean']['namespaces']['target']).to eq 'http://org.services.vetsnet.vba.va.gov/' - end - end - context 'PersonWebServiceBean' do let(:endpoint) { 'PersonWebServiceBean/PersonWebService' } let(:action) { 'findPersonBySSN' } @@ -220,18 +205,6 @@ end end - context 'OrgWebService' do - let(:endpoint) { 'OrgWebServiceBean/OrgWebService' } - - 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 'OrgWebServiceBean' - expect(parsed_result['path']).to eq 'OrgWebService' - expect(parsed_result['bean']['namespaces']['target']).to eq 'http://org.services.vetsnet.vba.va.gov/' - end - end - context 'PersonWebService' do let(:endpoint) { 'PersonWebServiceBean/PersonWebService' }