Skip to content

Commit f71d095

Browse files
committed
Activate vtl-sdmx testRefFromRepo
1 parent 3fd7851 commit f71d095

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

vtl-sdmx/src/test/java/fr/insee/vtl/SDMXVTLWorkflowTest.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import javax.script.ScriptEngineManager;
1717
import org.apache.spark.sql.SparkSession;
1818
import org.junit.jupiter.api.BeforeEach;
19-
import org.junit.jupiter.api.Disabled;
2019
import org.junit.jupiter.api.Test;
2120

2221
public class SDMXVTLWorkflowTest {
@@ -33,22 +32,16 @@ public void setUp() {
3332
engine.put(VtlScriptEngine.PROCESSING_ENGINE_NAMES, "spark");
3433
}
3534

36-
@Disabled
3735
@Test
3836
void testRefFromRepo() {
39-
// Works partially, the transformation does not pull in the ruleset. Maybe the transformation is
40-
// wrong and does not
41-
// reference ruleset?
37+
4238
String url =
4339
"https://registry.sdmx.io/sdmx/v2/structure/transformationscheme/FR1/BPE_CENSUS/+/?format=sdmx-3.0&references=all";
4440
ReadableDataLocation rdl = new ReadableDataLocationTmp(url);
4541
SDMXVTLWorkflow sdmxVtlWorkflow = new SDMXVTLWorkflow(engine, rdl, Map.of());
4642

4743
System.out.println(sdmxVtlWorkflow.getTransformationsVTL());
4844

49-
// Invalid step definition for:CHECK_MUNICIPALITY
50-
// - Caused by: fr.insee.vtl.engine.exceptions.UndefinedVariableException: undefined variable
51-
// UNIQUE_MUNICIPALITY
5245
engine.getBindings(ScriptContext.ENGINE_SCOPE).putAll(sdmxVtlWorkflow.getMappedEmptyDatasets());
5346
Map<String, PersistentDataset> result = sdmxVtlWorkflow.run();
5447
assertThat(result).containsKeys("BPE_CENSUS_NUTS3_2021", "BPE_MUNICIPALITY", "BPE_NUTS3");

0 commit comments

Comments
 (0)