From 84b7d71cb85c66ca8311f876e929dd99c9ebe70a Mon Sep 17 00:00:00 2001 From: Charles Overbeck Date: Wed, 20 Jul 2022 09:18:16 -0700 Subject: [PATCH] Scaffolding for #26 -- test fails. Needed to update the dockstore.version for it to build; I think we cleaned out our Maven repo. --- pom.xml | 2 +- .../GalaxyWorkflowLanguagePluginTest.java | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 8e8870fc..26acd305 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ scm:git:git@github.com:galaxyproject/dockstore-galaxy-interface.git - 1.9.0-alpha.1 + 1.12.0 1.7.26 ${project.artifactId} org.galaxyproject.dockstore_galaxy_interface.language.GalaxyWorkflowPlugin diff --git a/src/test/java/org/galaxyproject/dockstore_galaxy_interface/language/GalaxyWorkflowLanguagePluginTest.java b/src/test/java/org/galaxyproject/dockstore_galaxy_interface/language/GalaxyWorkflowLanguagePluginTest.java index 2478fd91..07a3379b 100644 --- a/src/test/java/org/galaxyproject/dockstore_galaxy_interface/language/GalaxyWorkflowLanguagePluginTest.java +++ b/src/test/java/org/galaxyproject/dockstore_galaxy_interface/language/GalaxyWorkflowLanguagePluginTest.java @@ -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> 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?