Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1193)

Issue 238080043: DCTM v3: Add tests for required groups and group sets (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 11 months ago by JohnL
Modified:
8 years, 11 months ago
Reviewers:
Srinivas, Brett, brett.michael.johnson
CC:
connector-cr_google.com
Visibility:
Public.

Description

Add tests for required groups and group sets. Add support for H2 in MockDmSession.getObject while preserving the use of JCR for legacy tests. Change MockDmAcl ID values from ints to strings, while preserving the existing constructor as an overload to avoid gratuitous changes in the existing tests. Related changes: * Make MockDmQuery.executeQuery public to create a real DctmAclList with an ICollection. This is short of creating the DctmAclList from DctmTraversalManager, but it's a start. * Filter out evil ACL entries with Read access but not AccessPermit, already fixed in v4. Other changes: * Remove javadoc tag for unthrown exception, also already fixed in v4.

Patch Set 1 #

Total comments: 6

Patch Set 2 : Brett's code review comments #

Patch Set 3 : Fix compilation error #

Messages

Total messages: 9
JohnL
8 years, 11 months ago (2015-05-09 02:03:41 UTC) #1
Brett
LGTM https://codereview.appspot.com/238080043/diff/1/projects/dctm-core/source/javatests/com/google/enterprise/connector/dctm/DctmMockAclListTest.java File projects/dctm-core/source/javatests/com/google/enterprise/connector/dctm/DctmMockAclListTest.java (right): https://codereview.appspot.com/238080043/diff/1/projects/dctm-core/source/javatests/com/google/enterprise/connector/dctm/DctmMockAclListTest.java#newcode202 projects/dctm-core/source/javatests/com/google/enterprise/connector/dctm/DctmMockAclListTest.java:202: delete blank line https://codereview.appspot.com/238080043/diff/1/projects/dctm-core/source/javatests/com/google/enterprise/connector/dctm/dctmmockwrap/MockDmQuery.java File projects/dctm-core/source/javatests/com/google/enterprise/connector/dctm/dctmmockwrap/MockDmQuery.java (right): https://codereview.appspot.com/238080043/diff/1/projects/dctm-core/source/javatests/com/google/enterprise/connector/dctm/dctmmockwrap/MockDmQuery.java#newcode156 ...
8 years, 11 months ago (2015-05-10 00:24:55 UTC) #2
Brett
https://codereview.appspot.com/238080043/diff/1/projects/dctm-core/source/javatests/com/google/enterprise/connector/dctm/dctmmockwrap/MockDmSession.java File projects/dctm-core/source/javatests/com/google/enterprise/connector/dctm/dctmmockwrap/MockDmSession.java (right): https://codereview.appspot.com/238080043/diff/1/projects/dctm-core/source/javatests/com/google/enterprise/connector/dctm/dctmmockwrap/MockDmSession.java#newcode126 projects/dctm-core/source/javatests/com/google/enterprise/connector/dctm/dctmmockwrap/MockDmSession.java:126: String table = objectTypes.get(id.substring(0, 2)); Add toUpper() or toLower() ...
8 years, 11 months ago (2015-05-10 04:05:18 UTC) #3
JohnL
Brett's code review comments
8 years, 11 months ago (2015-05-12 02:46:45 UTC) #4
JohnL
Handling Brett's comments. John L https://codereview.appspot.com/238080043/diff/1/projects/dctm-core/source/javatests/com/google/enterprise/connector/dctm/DctmMockAclListTest.java File projects/dctm-core/source/javatests/com/google/enterprise/connector/dctm/DctmMockAclListTest.java (right): https://codereview.appspot.com/238080043/diff/1/projects/dctm-core/source/javatests/com/google/enterprise/connector/dctm/DctmMockAclListTest.java#newcode202 projects/dctm-core/source/javatests/com/google/enterprise/connector/dctm/DctmMockAclListTest.java:202: On 2015/05/10 00:24:55, Brett ...
8 years, 11 months ago (2015-05-12 02:47:26 UTC) #5
JohnL
Fix compilation error
8 years, 11 months ago (2015-05-12 06:16:22 UTC) #6
Brett
LGTM
8 years, 11 months ago (2015-05-12 17:34:51 UTC) #7
Srinivas
On 2015/05/12 17:34:51, Brett wrote: > LGTM LGTM
8 years, 11 months ago (2015-05-27 01:46:32 UTC) #8
JohnL
8 years, 11 months ago (2015-05-29 06:20:58 UTC) #9

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b