File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
vtl-sdmx/src/test/java/fr/insee/vtl Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 1616import javax .script .ScriptEngineManager ;
1717import org .apache .spark .sql .SparkSession ;
1818import org .junit .jupiter .api .BeforeEach ;
19- import org .junit .jupiter .api .Disabled ;
2019import org .junit .jupiter .api .Test ;
2120
2221public 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" );
You can’t perform that action at this time.
0 commit comments