diff --git a/MsAdomdClientTester/Program.cs b/MsAdomdClientTester/Program.cs index 0c7320ab..5bfb8113 100644 --- a/MsAdomdClientTester/Program.cs +++ b/MsAdomdClientTester/Program.cs @@ -30,7 +30,7 @@ class Program // // // - // Adventure Works DW 2008 SE + // MyCatalog // // // @@ -38,16 +38,16 @@ class Program // // // - // Adventure Works + // MyCube // // // // Examples: - // "Data source=http://bi.syncfusion.com/olap/msmdpump.dll" schema MDSCHEMA_CUBES - // "Data source=http://bi.syncfusion.com/olap/msmdpump.dll" schema MDSCHEMA_CUBES "" "Adventure Works" - // "Data source=http://bi.syncfusion.com/olap/msmdpump.dll" schema MDSCHEMA_CUBES "Adventure Works DW 2008 SE" "Adventure Works" - // "Data source=http://bi.syncfusion.com/olap/msmdpump.dll" query "select from [Adventure Works]" - // "Data source=http://bi.syncfusion.com/olap/msmdpump.dll" query "select from [Adventure Works]" "Adventure Works DW 2008 SE" + // "Data source=https://my-server/olap/msmdpump.dll" schema MDSCHEMA_CUBES + // "Data source=https://my-server/olap/msmdpump.dll" schema MDSCHEMA_CUBES "" "MyCube" + // "Data source=https://my-server/olap/msmdpump.dll" schema MDSCHEMA_CUBES "MyCatalog" "MyCube" + // "Data source=https://my-server/olap/msmdpump.dll" query "select from [MyCube]" + // "Data source=https://my-server/olap/msmdpump.dll" query "select from [MyCube]" "MyCatalog" static void Main(string[] args) { if (args.Length > 0) diff --git a/MsAdomdClientTester/README.MD b/MsAdomdClientTester/README.MD index 4be6b726..54c314a1 100644 --- a/MsAdomdClientTester/README.MD +++ b/MsAdomdClientTester/README.MD @@ -42,15 +42,15 @@ dotnet run See parameters description in Program.cs Examples: -dotnet run "Data source=http://bi.syncfusion.com/olap/msmdpump.dll;UID=Domain\User;PWD=UserDomainPassword" schema MDSCHEMA_CUBES +dotnet run "Data source=https://my-server/olap/msmdpump.dll;UID=Domain\User;PWD=UserDomainPassword" schema MDSCHEMA_CUBES -dotnet run "Data source=http://bi.syncfusion.com/olap/msmdpump.dll;UID=Domain\User;PWD=UserDomainPassword" schema MDSCHEMA_CUBES "" "Adventure Works" +dotnet run "Data source=https://my-server/olap/msmdpump.dll;UID=Domain\User;PWD=UserDomainPassword" schema MDSCHEMA_CUBES "" "MyCube" -dotnet run "Data source=http://bi.syncfusion.com/olap/msmdpump.dll;UID=Domain\User;PWD=UserDomainPassword" schema MDSCHEMA_CUBES "Adventure Works DW 2008 SE" "Adventure Works" +dotnet run "Data source=https://my-server/olap/msmdpump.dll;UID=Domain\User;PWD=UserDomainPassword" schema MDSCHEMA_CUBES "MyCatalog" "MyCube" -dotnet run "Data source=http://bi.syncfusion.com/olap/msmdpump.dll;UID=Domain\User;PWD=UserDomainPassword" query "select from [Adventure Works]" +dotnet run "Data source=https://my-server/olap/msmdpump.dll;UID=Domain\User;PWD=UserDomainPassword" query "select from [MyCube]" -dotnet run "Data source=http://bi.syncfusion.com/olap/msmdpump.dll;UID=Domain\User;PWD=UserDomainPassword" query "select from [Adventure Works]" "Adventure Works DW 2008 SE" +dotnet run "Data source=https://my-server/olap/msmdpump.dll;UID=Domain\User;PWD=UserDomainPassword" query "select from [MyCube]" "MyCatalog" ----- @@ -60,7 +60,7 @@ dotnet add package Microsoft.AnalysisServices.AdomdClient.NetCore.retail.amd64 - dotnet build MsAdomdClientTester.csproj /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary -dotnet bin/Debug/net6.0/MsAdomdClientTester.dll "Data source=http://bi.syncfusion.com/olap/msmdpump.dll;UID=Domain\User;PWD=UserDomainPassword" schema MDSCHEMA_CUBES +dotnet bin/Debug/net6.0/MsAdomdClientTester.dll "Data source=https://my-server/olap/msmdpump.dll;UID=Domain\User;PWD=UserDomainPassword" schema MDSCHEMA_CUBES dotnet add package Microsoft.AnalysisServices.AdomdClient.retail.amd64 --version 19.46.0 diff --git a/model/csdl/v2/bi/model/bi.ecore b/model/csdl/v2/bi/model/bi.ecore index 8f319d2b..8aa3f503 100644 --- a/model/csdl/v2/bi/model/bi.ecore +++ b/model/csdl/v2/bi/model/bi.ecore @@ -175,7 +175,7 @@ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" volatile="true" transient="true" derived="true"> -
+
diff --git a/model/engine/model/engine.ecore b/model/engine/model/engine.ecore index 50657dc5..9e6c36cf 100644 --- a/model/engine/model/engine.ecore +++ b/model/engine/model/engine.ecore @@ -14,7 +14,7 @@ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="engine" nsURI="http://schemas.microsoft.com/analysisservices/2003/engine" nsPrefix="engine"> -
+
diff --git a/model/io/src/main/java/org/eclipse/daanse/xmla/model/io/DiscoverRequestReader.java b/model/io/src/main/java/org/eclipse/daanse/xmla/model/io/DiscoverRequestReader.java index 7b1f51c6..676e51e3 100644 --- a/model/io/src/main/java/org/eclipse/daanse/xmla/model/io/DiscoverRequestReader.java +++ b/model/io/src/main/java/org/eclipse/daanse/xmla/model/io/DiscoverRequestReader.java @@ -113,9 +113,9 @@ private static void readRestrictions(XMLStreamReader in, Restrictions into) thro *

* Both mean the same thing and both become one entry per value, so a caller * cannot tell which client it is talking to — which is the point. Reading this - * with {@code getElementText()} throws on the second form, so a real Excel - * connect was refused with a parse error before its first - * {@code DISCOVER_PROPERTIES} was answered. + * with {@code getElementText()} throws on the second form, so such a reader + * refuses an Excel connect with a parse error before its first + * {@code DISCOVER_PROPERTIES} gets an answer. */ private static void readRestrictionValues(XMLStreamReader in, String name, Restrictions into) throws XMLStreamException { diff --git a/model/io/src/main/java/org/eclipse/daanse/xmla/model/io/RowsetCatalog.java b/model/io/src/main/java/org/eclipse/daanse/xmla/model/io/RowsetCatalog.java index 4a30a692..9dc886a3 100644 --- a/model/io/src/main/java/org/eclipse/daanse/xmla/model/io/RowsetCatalog.java +++ b/model/io/src/main/java/org/eclipse/daanse/xmla/model/io/RowsetCatalog.java @@ -176,8 +176,7 @@ public static Optional guidOf(EClass eClass) { * {@code PROPRIETARY} or {@code OBSERVED}. *

* {@code OBSERVED} is the weakest: no specification describes the rowset, and - * the columns are those a real server answered with. The {@code observedFrom} - * detail beside it names the recorded answer. + * the columns are those Analysis Services answers with. */ public static Optional sourceOf(EClass eClass) { return Optional.ofNullable(detail(eClass, "source")); diff --git a/model/io/src/test/java/org/eclipse/daanse/xmla/model/io/GuidCatalogTest.java b/model/io/src/test/java/org/eclipse/daanse/xmla/model/io/GuidCatalogTest.java index 7e12272e..ff05c3cd 100644 --- a/model/io/src/test/java/org/eclipse/daanse/xmla/model/io/GuidCatalogTest.java +++ b/model/io/src/test/java/org/eclipse/daanse/xmla/model/io/GuidCatalogTest.java @@ -59,6 +59,14 @@ class GuidCatalogTest { private static final Set SHARE_ONE_GUID = Set.of("DMSCHEMA_MINING_MODEL_XML", "DMSCHEMA_MINING_MODEL_CONTENT_PMML"); + /** The statements an {@code evidence} detail may make about a GUID. */ + private static final Set EVIDENCE = Set.of( + "Analysis Services lists this GUID in DISCOVER_SCHEMA_ROWSETS, and ADOMD.NET declares the same value.", + "Analysis Services lists this GUID in DISCOVER_SCHEMA_ROWSETS.", + "Analysis Services lists this GUID in DISCOVER_SCHEMA_ROWSETS and refuses the rowset in " + + "multidimensional mode.", + "ADOMD.NET declares this GUID."); + private static Optional detail(EClass eClass, String key) { EAnnotation annotation = eClass.getEAnnotation(RowsetCatalog.ANNOTATION); return annotation == null ? Optional.empty() : Optional.ofNullable(annotation.getDetails().get(key)); @@ -120,9 +128,9 @@ void noTwoRowsetsShareAGuidExceptTheOnePairThatMust() { *

* [MS-SSAS] publishes no rowset GUIDs at all — a {@code source=MS-SSAS-*} on a * rowset says where its columns come from. So any GUID we carry was - * either read off a real server, taken from a decompiled client, or taken from - * OLE DB; and which of the three it was is the only thing that lets a later - * reader weigh it. + * either listed by Analysis Services in {@code DISCOVER_SCHEMA_ROWSETS}, + * declared by ADOMD.NET, or taken from OLE DB; and which of the three it was + * is the only thing that lets a later reader weigh it. */ @Test void aGuidNoSpecificationStatesSaysWhereItCameFrom() { @@ -141,4 +149,33 @@ void aGuidNoSpecificationStatesSaysWhereItCameFrom() { assertThat(unattributed).as("these carry a GUID that no specification states and no note attributes, " + "so nobody can tell whether it is right").isEmpty(); } + + /** + * What is known about a GUID no specification states, in one of a few fixed + * sentences. + *

+ * The {@code evidence} detail beside {@code guidSource} states what confirms + * the value - Analysis Services listing it, ADOMD.NET declaring it, or both - + * and nothing about how that was found out, so a reader can weigh it from the + * model alone. One statement per rowset: a second one under the same key would + * be hidden behind the first. + */ + @Test + void theEvidenceForAGuidIsOneOfTheFixedStatements() { + List off = new ArrayList<>(); + for (Map.Entry rowset : rowsets().entrySet()) { + EAnnotation annotation = rowset.getValue().getEAnnotation(RowsetCatalog.ANNOTATION); + List evidence = annotation == null ? List.of() + : annotation.getDetails().stream().filter(entry -> "evidence".equals(entry.getKey())) + .map(Map.Entry::getValue).toList(); + boolean attributed = detail(rowset.getValue(), "guidSource").isPresent(); + boolean fixed = evidence.size() == 1 && EVIDENCE.contains(evidence.get(0)); + if (attributed ? !fixed : !evidence.isEmpty()) { + off.add(rowset.getKey() + " " + evidence); + } + } + + assertThat(off).as("a GUID with a guidSource carries exactly one evidence detail, worded as one of " + + "the fixed statements, and a rowset without a guidSource carries none").isEmpty(); + } } diff --git a/model/mddataset/model/mddataset.ecore b/model/mddataset/model/mddataset.ecore index 46783b62..20c24558 100644 --- a/model/mddataset/model/mddataset.ecore +++ b/model/mddataset/model/mddataset.ecore @@ -910,7 +910,7 @@ -

+
diff --git a/model/rowset.core/model/rowset-core.ecore b/model/rowset.core/model/rowset-core.ecore index 7d01be5b..f9563d13 100644 --- a/model/rowset.core/model/rowset-core.ecore +++ b/model/rowset.core/model/rowset-core.ecore @@ -61,7 +61,7 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/model/rowset.mining/model/rowset-mining.ecore b/model/rowset.mining/model/rowset-mining.ecore index ef6ece61..a6b1ada4 100644 --- a/model/rowset.mining/model/rowset-mining.ecore +++ b/model/rowset.mining/model/rowset-mining.ecore @@ -14,7 +14,7 @@ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="mining" nsURI="urn:schemas-microsoft-com:xml-analysis:rowset:mining" nsPrefix="rsmin"> -
+
@@ -35,7 +35,7 @@
-
+
@@ -465,7 +465,7 @@
-
+
@@ -556,7 +556,7 @@
-
+
@@ -768,7 +768,7 @@
-
+
@@ -991,7 +991,7 @@
-
+
@@ -1080,7 +1080,7 @@
-
+
@@ -1169,7 +1169,7 @@
-
+
@@ -1466,7 +1466,7 @@
-
+
@@ -1587,7 +1587,7 @@
-
+
@@ -1755,7 +1755,7 @@
-
+
diff --git a/model/rowset.multidimensional/model/rowset-multidimensional.ecore b/model/rowset.multidimensional/model/rowset-multidimensional.ecore index 1713bdce..bde490f8 100644 --- a/model/rowset.multidimensional/model/rowset-multidimensional.ecore +++ b/model/rowset.multidimensional/model/rowset-multidimensional.ecore @@ -14,7 +14,7 @@ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="multidimensional" nsURI="urn:schemas-microsoft-com:xml-analysis:rowset:multidimensional" nsPrefix="rsmd"> -
+
@@ -34,7 +34,7 @@
-
+
@@ -161,7 +161,7 @@
-
+
@@ -360,7 +360,7 @@
-
+
@@ -538,7 +538,7 @@
-
+
@@ -706,7 +706,7 @@
-
+
@@ -984,8 +984,8 @@
-
-
+
+
@@ -1094,7 +1094,7 @@
-
+
@@ -1291,7 +1291,7 @@
-
+
@@ -1548,7 +1548,7 @@
-
+
@@ -1625,7 +1625,7 @@
-
+
@@ -1745,7 +1745,7 @@
-
+
@@ -1964,7 +1964,7 @@
-
+
@@ -2193,7 +2193,8 @@
-
+
+
@@ -2432,7 +2433,7 @@
-
+
diff --git a/model/rowset.relational/model/rowset-relational.ecore b/model/rowset.relational/model/rowset-relational.ecore index 9ed5d347..6ec557be 100644 --- a/model/rowset.relational/model/rowset-relational.ecore +++ b/model/rowset.relational/model/rowset-relational.ecore @@ -14,7 +14,7 @@ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="relational" nsURI="urn:schemas-microsoft-com:xml-analysis:rowset:relational" nsPrefix="rsrel"> -
+
@@ -88,7 +88,7 @@
-
+
@@ -510,7 +510,7 @@
-
+
@@ -1886,7 +1886,7 @@
-
+
@@ -2398,7 +2398,7 @@
-
+
diff --git a/model/rowset.server/model/rowset-server.ecore b/model/rowset.server/model/rowset-server.ecore index 6ab6c5db..87dc7d43 100644 --- a/model/rowset.server/model/rowset-server.ecore +++ b/model/rowset.server/model/rowset-server.ecore @@ -14,7 +14,7 @@ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="server" nsURI="urn:schemas-microsoft-com:xml-analysis:rowset:server" nsPrefix="rssrv"> -
+
@@ -35,7 +35,7 @@
-
+
@@ -141,7 +141,7 @@
-
+
@@ -267,8 +267,8 @@
-
-
+
+
@@ -412,7 +412,7 @@
-
+
@@ -586,7 +586,7 @@
-
+
-
+
@@ -734,7 +734,7 @@
-
+
@@ -894,7 +894,7 @@
-
+
@@ -950,7 +950,7 @@
-
+
@@ -996,7 +996,7 @@
-
+
@@ -1092,7 +1092,7 @@
-
+
@@ -1196,7 +1196,7 @@
-
+
@@ -1292,7 +1292,7 @@
-
+
@@ -1318,7 +1318,7 @@
-
+
@@ -1404,7 +1404,7 @@
-
+
@@ -1560,7 +1560,7 @@
-
+
@@ -1686,8 +1686,7 @@
-
-
+
@@ -1724,7 +1723,7 @@
-
+
@@ -1891,7 +1890,7 @@
-
+
@@ -1947,7 +1946,7 @@
-
+
@@ -2077,7 +2076,7 @@
-
+
@@ -2171,7 +2170,7 @@
-
+
@@ -2235,7 +2234,7 @@
-
+
@@ -2270,9 +2269,8 @@
-
+
-
@@ -2397,7 +2395,7 @@
-
+
@@ -2493,7 +2491,7 @@
-
+
@@ -2784,7 +2782,7 @@
-
+
@@ -2888,7 +2886,7 @@
-
+
@@ -3087,7 +3085,7 @@
-
+
@@ -3294,7 +3292,7 @@
-
+
@@ -3400,7 +3398,7 @@
-
+
@@ -3426,7 +3424,7 @@
-
+
@@ -3452,7 +3450,7 @@
-
+
@@ -3478,7 +3476,7 @@
-
+
@@ -3545,7 +3543,7 @@
-
+
@@ -3651,7 +3649,7 @@
-
+
@@ -3777,7 +3775,7 @@
-
+
@@ -3843,7 +3841,7 @@
-
+
@@ -4020,7 +4018,7 @@
-
+
@@ -4094,7 +4092,7 @@
-
+
@@ -4119,7 +4117,7 @@
-
+
@@ -5093,7 +5091,7 @@ -
+
@@ -5981,7 +5979,7 @@
-
+
@@ -6034,7 +6032,7 @@
-
+
@@ -6079,7 +6077,7 @@
-
+
diff --git a/model/rowset.tabular/model/rowset-tabular.ecore b/model/rowset.tabular/model/rowset-tabular.ecore index acd674ed..38ef3daf 100644 --- a/model/rowset.tabular/model/rowset-tabular.ecore +++ b/model/rowset.tabular/model/rowset-tabular.ecore @@ -36,7 +36,7 @@
-
+
@@ -278,7 +278,7 @@
-
+
@@ -422,7 +422,7 @@
-
+
@@ -594,7 +594,7 @@
-
+
@@ -920,7 +920,7 @@
-
+
@@ -980,7 +980,7 @@
-
+
@@ -1173,7 +1173,7 @@
-
+
@@ -1331,7 +1331,7 @@
-
+
@@ -1489,7 +1489,7 @@
-
+
@@ -1605,7 +1605,7 @@
-
+
@@ -1686,7 +1686,7 @@
-
+
@@ -1746,7 +1746,7 @@
-
+
@@ -1855,7 +1855,7 @@
-
+
@@ -1915,7 +1915,7 @@
-
+
@@ -1989,7 +1989,7 @@
-
+
@@ -2042,7 +2042,7 @@
-
+
@@ -2095,7 +2095,7 @@
-
+
@@ -2148,7 +2148,7 @@
-
+
@@ -2194,7 +2194,7 @@
-
+
@@ -2240,7 +2240,7 @@
-
+
@@ -2286,7 +2286,7 @@
-
+
@@ -2346,7 +2346,7 @@
-
+
@@ -2413,7 +2413,7 @@
-
+
@@ -2487,7 +2487,7 @@
-
+
@@ -2562,7 +2562,7 @@
-
+
@@ -2630,7 +2630,7 @@
-
+
@@ -2747,7 +2747,7 @@
-
+
@@ -2801,7 +2801,7 @@
-
+
@@ -2869,7 +2869,7 @@
-
+
@@ -2923,7 +2923,7 @@
-
+
@@ -3012,7 +3012,7 @@
-
+
@@ -3080,7 +3080,7 @@
-
+
@@ -3127,7 +3127,7 @@
-
+
@@ -3230,7 +3230,7 @@
-
+
@@ -3277,7 +3277,7 @@
-
+
@@ -3317,7 +3317,7 @@
-
+
@@ -3364,7 +3364,7 @@
-
+
@@ -3418,7 +3418,7 @@
-
+
@@ -3514,7 +3514,7 @@
-
+
@@ -3561,7 +3561,7 @@
-
+
@@ -3601,7 +3601,7 @@
-
+
@@ -3648,7 +3648,7 @@
-
+
@@ -3716,7 +3716,7 @@
-
+
@@ -3798,7 +3798,7 @@
-
+
@@ -3866,7 +3866,7 @@
-
+
@@ -3913,7 +3913,7 @@
-
+
@@ -3967,7 +3967,7 @@
-
+
@@ -4070,7 +4070,7 @@
-
+
diff --git a/model/rowset.tabular/src/test/java/org/eclipse/daanse/xmla/model/rowset/tabular/TabularModelShapeTest.java b/model/rowset.tabular/src/test/java/org/eclipse/daanse/xmla/model/rowset/tabular/TabularModelShapeTest.java index 1ce13b69..fba8afbe 100644 --- a/model/rowset.tabular/src/test/java/org/eclipse/daanse/xmla/model/rowset/tabular/TabularModelShapeTest.java +++ b/model/rowset.tabular/src/test/java/org/eclipse/daanse/xmla/model/rowset/tabular/TabularModelShapeTest.java @@ -136,7 +136,7 @@ void everyRowsetIsPlacedInTheBatchAndTheOrderIsGapless() { } assertThat(order).as("the position in the client's batch is the only thing that ties an answer " - + "to a request; it has to be recorded, and it has to be 0..47 without a hole") + + "to a request; it has to be stated, and it has to be 0..47 without a hole") .containsExactlyInAnyOrderElementsOf(java.util.stream.IntStream.range(0, ROWSETS).boxed().toList()); } diff --git a/model/soap/model/soap.ecore b/model/soap/model/soap.ecore index ec606c76..b8aaab7a 100644 --- a/model/soap/model/soap.ecore +++ b/model/soap/model/soap.ecore @@ -133,7 +133,7 @@ -
+
@@ -159,7 +159,7 @@ -
+
diff --git a/model/xmla/model/xmla.ecore b/model/xmla/model/xmla.ecore index 4bcf2081..128817b6 100644 --- a/model/xmla/model/xmla.ecore +++ b/model/xmla/model/xmla.ecore @@ -1243,7 +1243,7 @@
-
+
diff --git a/server/adapter.emf/src/test/java/org/eclipse/daanse/xmla/server/adapter/emf/EmptyHeaderTest.java b/server/adapter.emf/src/test/java/org/eclipse/daanse/xmla/server/adapter/emf/EmptyHeaderTest.java index ffbfa7b5..2714e7ee 100644 --- a/server/adapter.emf/src/test/java/org/eclipse/daanse/xmla/server/adapter/emf/EmptyHeaderTest.java +++ b/server/adapter.emf/src/test/java/org/eclipse/daanse/xmla/server/adapter/emf/EmptyHeaderTest.java @@ -35,9 +35,9 @@ * {@code ReadEndElement} consumes the entire element on the first call, then * takes the next end element with the second. From there it is one * element out of step for the whole document and eventually reads past the end, - * which surfaces as a parse failure at the last byte, nowhere near the cause. A - * recorded Analysis Services writes {@code } with no - * header at all. + * which surfaces as a parse failure at the last byte, nowhere near the cause. + * Analysis Services writes {@code } with no header at + * all. */ class EmptyHeaderTest { diff --git a/server/adapter.emf/src/test/java/org/eclipse/daanse/xmla/server/adapter/emf/SessionOpenedByARealRequestTest.java b/server/adapter.emf/src/test/java/org/eclipse/daanse/xmla/server/adapter/emf/SessionOpenedByARealRequestTest.java index 7fd40f73..dcf989ba 100644 --- a/server/adapter.emf/src/test/java/org/eclipse/daanse/xmla/server/adapter/emf/SessionOpenedByARealRequestTest.java +++ b/server/adapter.emf/src/test/java/org/eclipse/daanse/xmla/server/adapter/emf/SessionOpenedByARealRequestTest.java @@ -41,7 +41,7 @@ * What happens when {@code BeginSession} rides on a request that actually asks * for something. *

- * Every recorded client opens its session with an {@code Execute} whose command + * The common clients open their session with an {@code Execute} whose command * is an empty {@code }, and it is easy to read that as the rule. It * is not. XMLA 1.1 p. 29 says the statement may be empty and that this * can be used to carry the header; [MS-SSAS] 3.1.3.1 shows @@ -69,7 +69,7 @@ class SessionOpenedByARealRequestTest { private static final String BEGIN = ""; /** - * Not the empty statement every recorded client uses: a real rowset request. + * Not the empty statement the common clients use: a real rowset request. */ private static final String CUBES = """ \ @@ -80,7 +80,7 @@ class SessionOpenedByARealRequestTest { /** Nor an empty command: a real query. */ private static final String MDX = """ \ - SELECT [Measures].MEMBERS ON 0 FROM [Adventure Works]\ + SELECT [Measures].MEMBERS ON 0 FROM [Shipments]\ """; private final Sessions sessions = new Sessions(); @@ -118,8 +118,8 @@ private static final class Connector implements XmlaConnector { public List discover(Discover request, XmlaRequest context) { sawSession.add(context.sessionId()); MdschemaCubesRow row = RowsetMultidimensionalFactory.eINSTANCE.createMdschemaCubesRow(); - row.setCatalogName("Adventure Works DW"); - row.setCubeName("Adventure Works"); + row.setCatalogName("Logistics"); + row.setCubeName("Shipments"); return List.of(row); } @@ -154,7 +154,7 @@ void aRealDiscoverOpensTheSessionAndAnswersInTheSameMessage() { assertThat(answer).doesNotContain("Fault"); // Both halves come back together: there is no second round trip for the rows. assertThat(sessionIdOf(answer)).as("the new session id").isNotNull(); - assertThat(answer).as("and the rows that were asked for").contains("Adventure Works"); + assertThat(answer).as("and the rows that were asked for").contains("Shipments"); } @Test