diff --git a/move2kube/m2k-func/src/test/java/dev/parodos/SaveTransformationFunctionIT.java b/move2kube/m2k-func/src/test/java/dev/parodos/SaveTransformationFunctionIT.java index 9ab28d6c..5ce89bd0 100644 --- a/move2kube/m2k-func/src/test/java/dev/parodos/SaveTransformationFunctionIT.java +++ b/move2kube/m2k-func/src/test/java/dev/parodos/SaveTransformationFunctionIT.java @@ -28,10 +28,12 @@ public static class OverridePropertiesTestProfile implements QuarkusTestProfile @Override public Map getConfigOverrides() { return Map.of( - "move2kube.api", "http://localhost:8080/api/v1" + "move2kube.api", "http://localhost:8080/api/v1", + "broker.url", "http://broker-ingress.knative-eventing.svc.cluster.local/m2k/default", + "ssh-priv-key-path", "/home/jboss/.ssh/id_rsa" ); } - } + } @Test @Disabled diff --git a/move2kube/m2k-func/src/test/java/dev/parodos/SaveTransformationFunctionTest.java b/move2kube/m2k-func/src/test/java/dev/parodos/SaveTransformationFunctionTest.java index 49f606c7..77abd775 100644 --- a/move2kube/m2k-func/src/test/java/dev/parodos/SaveTransformationFunctionTest.java +++ b/move2kube/m2k-func/src/test/java/dev/parodos/SaveTransformationFunctionTest.java @@ -43,6 +43,7 @@ import static org.mockito.Mockito.when; @QuarkusTest +@TestProfile(SaveTransformationFunctionTest.OverridePropertiesTestProfile.class) public class SaveTransformationFunctionTest { @InjectMock @@ -71,6 +72,18 @@ public class SaveTransformationFunctionTest { private Git git; + public static class OverridePropertiesTestProfile implements QuarkusTestProfile { + + @Override + public Map getConfigOverrides() { + return Map.of( + "move2kube.api", "http://localhost:8080/api/v1", + "broker.url", "http://broker-ingress.knative-eventing.svc.cluster.local/m2k/default", + "ssh-priv-key-path", "/home/jboss/.ssh/id_rsa" + ); + } + } + @BeforeEach public void setUp() throws GitAPIException, IOException { File tmpDir = Files.createTempDirectory("gitRepoTest").toFile();