-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
feat: reimplement rserve route
- Loading branch information
Showing
24 changed files
with
1,359 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
armadillo/src/test/java/org/molgenis/armadillo/metadata/ProfileConfigTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package org.molgenis.armadillo.metadata; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; | ||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
import static org.molgenis.armadillo.metadata.ProfileConfig.create; | ||
|
||
import java.util.HashMap; | ||
import java.util.HashSet; | ||
import org.junit.jupiter.api.Test; | ||
import org.molgenis.r.config.EnvironmentConfigProps; | ||
|
||
public class ProfileConfigTest { | ||
|
||
@Test | ||
public void testToEnvironmentConfigProps() { | ||
String name = "myName"; | ||
String img = "myImage"; | ||
String host = "localhost"; | ||
int port = 6311; | ||
ProfileConfig config = | ||
create(name, img, host, port, new HashSet<>(), new HashSet<>(), new HashMap<>()); | ||
EnvironmentConfigProps actual = config.toEnvironmentConfigProps(); | ||
assertEquals(img, actual.getImage()); | ||
} | ||
|
||
@Test | ||
public void testToEnvironmentConfigPropsDoesNotThrowErrorWhenImageNull() { | ||
ProfileConfig config = | ||
create( | ||
"myName", null, "localhost", 6311, new HashSet<>(), new HashSet<>(), new HashMap<>()); | ||
assertDoesNotThrow(config::toEnvironmentConfigProps); | ||
} | ||
|
||
@Test | ||
public void testCreateEmptyHost() { | ||
ProfileConfig config = | ||
create("myName", null, null, 6311, new HashSet<>(), new HashSet<>(), new HashMap<>()); | ||
assertEquals("localhost", config.getHost()); | ||
} | ||
|
||
@Test | ||
public void testCreateEmptyOptions() { | ||
ProfileConfig config = | ||
create("myName", null, null, 6311, new HashSet<>(), new HashSet<>(), null); | ||
assertEquals("java.util.ImmutableCollections$MapN", config.getOptions().getClass().getName()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,5 +27,3 @@ services: | |
xenon: | ||
hostname: xenon | ||
image: datashield/rock-dolomite-xenon:latest | ||
environment: | ||
DEBUG: "TRUE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.