Skip to content

Commit

Permalink
Fix M2K Kfunc test after removal of default values
Browse files Browse the repository at this point in the history
Signed-off-by: gabriel-farache <[email protected]>
  • Loading branch information
gabriel-farache committed Sep 26, 2024
1 parent 04d072b commit 06aa15d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ public static class OverridePropertiesTestProfile implements QuarkusTestProfile
@Override
public Map<String, String> 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import static org.mockito.Mockito.when;

@QuarkusTest
@TestProfile(SaveTransformationFunctionTest.OverridePropertiesTestProfile.class)
public class SaveTransformationFunctionTest {

@InjectMock
Expand Down Expand Up @@ -71,6 +72,18 @@ public class SaveTransformationFunctionTest {

private Git git;

public static class OverridePropertiesTestProfile implements QuarkusTestProfile {

@Override
public Map<String, String> 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();
Expand Down

0 comments on commit 06aa15d

Please sign in to comment.