Skip to content

Commit

Permalink
Scaffolding for #26 -- test fails.
Browse files Browse the repository at this point in the history
Needed to update the dockstore.version for it to build;
I think we cleaned out our Maven repo.
  • Loading branch information
coverbeck committed Jul 20, 2022
1 parent 98a4dee commit 84b7d71
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<properties>
<github.url>scm:git:[email protected]:galaxyproject/dockstore-galaxy-interface.git</github.url>
<dockstore.version>1.9.0-alpha.1</dockstore.version>
<dockstore.version>1.12.0</dockstore.version>
<slf4j.version>1.7.26</slf4j.version>
<plugin.id>${project.artifactId}</plugin.id>
<plugin.class>org.galaxyproject.dockstore_galaxy_interface.language.GalaxyWorkflowPlugin</plugin.class>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,21 @@ public void testTwoValidationIssues() {
Assert.assertTrue(validationProblem.contains("- .. WARNING"));
}

@Test
public void testPrestoImmuneValidation() {
final GalaxyWorkflowPlugin.GalaxyWorkflowPluginImpl plugin =
new GalaxyWorkflowPlugin.GalaxyWorkflowPluginImpl();
final ResourceFileReader reader = new ResourceFileReader("nebiolabs");
final String initialPath = "presto_immune_sequencing_v3.20.ga";
final String contents = reader.readFile(initialPath);
final Map<String, Pair<String, MinimalLanguageInterface.GenericFileType>> fileMap =
plugin.indexWorkflowFiles(initialPath, contents, reader);
Assert.assertEquals(0, fileMap.size());
final VersionTypeValidation wfValidation =
plugin.validateWorkflowSet(initialPath, contents, fileMap);
Assert.assertTrue(wfValidation.isValid());
}

@Test
public void testInitialPathPattern() {
// TODO: This doesn't seem to be called by Dockstore anywhere - is that right?
Expand Down

0 comments on commit 84b7d71

Please sign in to comment.