From 5a18cb49d378eeb17a40d794d68df42b94e5b939 Mon Sep 17 00:00:00 2001
From: Khoa Nguyen <134089461+Khoa-V-Nguyen@users.noreply.github.com>
Date: Mon, 8 Apr 2024 16:10:46 -0600
Subject: [PATCH] Updated veis path (#16243)

Co-authored-by: khoa-v-nguyen <khoa.nguyen@oddball.io>
---
 config/settings.yml                                  | 2 +-
 modules/ask_va_api/app/services/crm/service.rb       | 2 +-
 modules/ask_va_api/spec/services/crm/service_spec.rb | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/config/settings.yml b/config/settings.yml
index 42419c70fdd..065cca2a433 100644
--- a/config/settings.yml
+++ b/config/settings.yml
@@ -610,7 +610,7 @@ ask_va_api:
     client_id: client_id
     client_secret: secret
     resource: resource
-    veis_api_path: veis/vagov.lob.ava/api
+    veis_api_path: eis/vagov.lob.ava/api
     tenant_id: abcdefgh-1234-5678-12345-11e8b8ce491e
     ocp_apim_subscription_key: subscription_key
     redis_token_expiry: 3540 # 59 minutes
diff --git a/modules/ask_va_api/app/services/crm/service.rb b/modules/ask_va_api/app/services/crm/service.rb
index d8858d11fc7..aa69ec2eb56 100644
--- a/modules/ask_va_api/app/services/crm/service.rb
+++ b/modules/ask_va_api/app/services/crm/service.rb
@@ -7,7 +7,7 @@ class Service
     attr_reader :icn, :logger, :settings, :base_uri, :token
 
     BASE_URI = 'https://dev.integration.d365.va.gov'
-    VEIS_API_PATH = 'veis/vagov.lob.ava/api'
+    VEIS_API_PATH = 'eis/vagov.lob.ava/api'
 
     def_delegators :settings,
                    :base_url,
diff --git a/modules/ask_va_api/spec/services/crm/service_spec.rb b/modules/ask_va_api/spec/services/crm/service_spec.rb
index 6d7391c85c3..ba7f2e4dd8b 100644
--- a/modules/ask_va_api/spec/services/crm/service_spec.rb
+++ b/modules/ask_va_api/spec/services/crm/service_spec.rb
@@ -51,7 +51,7 @@ def mock_response(status:, body:)
 
         before do
           allow_any_instance_of(Crm::CrmToken).to receive(:call).and_return('token')
-          allow_any_instance_of(Faraday::Connection).to receive(:get).with('veis/vagov.lob.ava/api/inquiries',
+          allow_any_instance_of(Faraday::Connection).to receive(:get).with('eis/vagov.lob.ava/api/inquiries',
                                                                            icn: '123',
                                                                            organizationName: 'iris-dev')
                                                                      .and_return(response)
@@ -99,7 +99,7 @@ def mock_response(status:, body:)
 
       before do
         allow_any_instance_of(Crm::CrmToken).to receive(:call).and_return('token')
-        allow_any_instance_of(Faraday::Connection).to receive(:get).with('veis/vagov.lob.ava/api/inquiries',
+        allow_any_instance_of(Faraday::Connection).to receive(:get).with('eis/vagov.lob.ava/api/inquiries',
                                                                          { icn: '123',
                                                                            organizationName: 'iris-dev' })
                                                                    .and_raise(exception)