Pass thru error details from remote APIs
[portal/ric-dashboard.git] / webapp-backend / src / main / java / org / oransc / ric / portal / dashboard / config / E2ManagerMockConfiguration.java
index b05d817..334915c 100644 (file)
@@ -49,7 +49,7 @@ public class E2ManagerMockConfiguration {
        private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
 
        private final GetNodebResponse nodebResponse;
-       
+
        public E2ManagerMockConfiguration() {
                logger.info("Configuring mock E2 Manager");
                nodebResponse = new GetNodebResponse().ip("1.2.3.4").port(123).ranName("myRan");
@@ -62,7 +62,8 @@ public class E2ManagerMockConfiguration {
        }
 
        @Bean
-       public HealthCheckApi e2HealthCheckApi() {
+       // Use the same name as regular configuration
+       public HealthCheckApi e2MgrHealthCheckApi() {
                ApiClient apiClient = apiClient();
                HealthCheckApi mockApi = mock(HealthCheckApi.class);
                when(mockApi.getApiClient()).thenReturn(apiClient);
@@ -75,7 +76,8 @@ public class E2ManagerMockConfiguration {
        }
 
        @Bean
-       public NodebApi e2NodebApi() {
+       // Use the same name as regular configuration
+       public NodebApi e2MgrNodebApi() {
                ApiClient apiClient = apiClient();
                NodebApi mockApi = mock(NodebApi.class);
                when(mockApi.getApiClient()).thenReturn(apiClient);