Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TEST] ReferenceLinks are not supported in Mondrian 4 yet (MONDRIAN-133... #341

Merged
merged 1 commit into from
Jun 25, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions testsrc/main/mondrian/test/AccessControlTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1658,28 +1658,28 @@ public void testPartialRollupParentChildHierarchy() {
+ " member=\"[Employees].[All Employees].[Sheri Nowmer].[Darren Stanz]\"\n"
+ " access=\"all\"/>\n"
+ " </HierarchyGrant>\n"
+ " <HierarchyGrant hierarchy=\"[Stores]\" access=\"custom\"\n"
+ " <HierarchyGrant hierarchy=\"[Time]\" access=\"custom\"\n"
+ " rollupPolicy=\"partial\">\n"
+ " <MemberGrant member=\"[Store].[All Stores].[USA].[CA]\" access=\"all\"/>\n"
+ " <MemberGrant member=\"[Time].[1997].[Q1]\" access=\"all\"/>\n"
+ " </HierarchyGrant>\n"
+ " </CubeGrant>\n"
+ " </SchemaGrant>\n"
+ "</Role>")
.withRole("Buggy Role");

final String mdx = "select\n"
+ " {[Measures].[Number of Employees]} on columns,\n"
+ " {[Stores]} on rows\n"
+ " {[Measures].[Org Salary]} on columns,\n"
+ " {[Time].[Time].[1997]} on rows\n"
+ "from HR";
testContext.assertQueryReturns(
mdx,
"Axis #0:\n"
+ "{}\n"
+ "Axis #1:\n"
+ "{[Measures].[Number of Employees]}\n"
+ "{[Measures].[Org Salary]}\n"
+ "Axis #2:\n"
+ "{[Store].[Stores].[All Stores]}\n"
+ "Row #0: 1\n");
+ "{[Time].[Time].[1997]}\n"
+ "Row #0: $208.17\n");
checkQuery(testContext, mdx);

final String mdx2 = "select\n"
Expand All @@ -1693,7 +1693,7 @@ public void testPartialRollupParentChildHierarchy() {
+ "Axis #1:\n"
+ "{[Measures].[Number of Employees]}\n"
+ "Axis #2:\n"
+ "{[Employees].[All Employees]}\n"
+ "{[Employee].[Employees].[All Employees]}\n"
+ "Row #0: 1\n");
checkQuery(testContext, mdx2);
}
Expand Down