X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-backend%2Fsrc%2Ftest%2Fjava%2Forg%2Foransc%2Fric%2Fportal%2Fdashboard%2Fconfig%2FCaasIngressMockConfiguration.java;fp=webapp-backend%2Fsrc%2Ftest%2Fjava%2Forg%2Foransc%2Fric%2Fportal%2Fdashboard%2Fconfig%2FCaasIngressMockConfiguration.java;h=56a01ab2cf5cad9bf7511b262afc6359593b12bb;hb=6dd828008e1c553b5b4ac6e45af0ccf73c2ed92e;hp=bd94c2eb657f1485f1c54d98cd3d342bccb8a54d;hpb=5594b03f1ff0e01627b4bbd9fbc7bb27529afe4c;p=portal%2Fric-dashboard.git diff --git a/webapp-backend/src/test/java/org/oransc/ric/portal/dashboard/config/CaasIngressMockConfiguration.java b/webapp-backend/src/test/java/org/oransc/ric/portal/dashboard/config/CaasIngressMockConfiguration.java index bd94c2eb..56a01ab2 100644 --- a/webapp-backend/src/test/java/org/oransc/ric/portal/dashboard/config/CaasIngressMockConfiguration.java +++ b/webapp-backend/src/test/java/org/oransc/ric/portal/dashboard/config/CaasIngressMockConfiguration.java @@ -50,13 +50,11 @@ public class CaasIngressMockConfiguration { @Value("${mock.config.delay:0}") private int delayMs; - private final String auxPods; private final String pltPods; public CaasIngressMockConfiguration() throws IOException { logger.info("Configuring mock CAAS-Ingres clients"); // Files in src/test/resources - auxPods = readDataFromPath("caas-ingress-ricaux-pods.json"); pltPods = readDataFromPath("caas-ingress-ricplt-pods.json"); } @@ -78,17 +76,6 @@ public class CaasIngressMockConfiguration { return sb.toString(); } - @Bean - // Use the same name as regular configuration - public SimpleKubernetesClient ciAuxApi() throws IOException { - SimpleKubernetesClient mockClient = mock(SimpleKubernetesClient.class); - doAnswer(inv -> { - logger.debug("listPods for aux"); - return auxPods; - }).when(mockClient).listPods("ricaux"); - return mockClient; - } - @Bean // Use the same name as regular configuration public SimpleKubernetesClient ciPltApi() throws IOException {