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

Issue 57170048: Add WindowsFileDelegateTest (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by Brett
Modified:
10 years, 2 months ago
Reviewers:
ejona, mifern, pjo
CC:
connector-cr_google.com
Visibility:
Public.

Description

This adds a basic WindowsFileDelegateTest. It tests newDocId() and most file system monitor functions using the local file system. It only runs on Windows. TODO: Add tests for ACL features. TODO: Add tests for DFS features.

Patch Set 1 #

Total comments: 8

Patch Set 2 : PJ's feedback #

Total comments: 26

Patch Set 3 : Eric's and Miguel's Feedback. #

Total comments: 6

Patch Set 4 : Eric's and Miguel's Feedback #

Total comments: 8

Patch Set 5 : Eric's Feedback. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -2 lines) Patch
M src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java View 1 2 3 4 5 chunks +21 lines, -2 lines 0 comments Download
A test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java View 1 2 3 4 1 chunk +292 lines, -0 lines 2 comments Download

Messages

Total messages: 22
Brett
10 years, 2 months ago (2014-02-07 21:59:28 UTC) #1
ejona
Only a cursory glance. https://codereview.appspot.com/57170048/diff/1/test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java File test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java (right): https://codereview.appspot.com/57170048/diff/1/test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java#newcode55 test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java:55: private BlockingQueue<Path> queue = new ...
10 years, 2 months ago (2014-02-08 01:10:29 UTC) #2
pjo
Thank you. Is there a way to remove the Thread.sleep calls? Can we block somehow ...
10 years, 2 months ago (2014-02-08 01:29:14 UTC) #3
Brett
> Is there a way to remove the Thread.sleep calls? It is taking Windows anywhere ...
10 years, 2 months ago (2014-02-08 03:01:42 UTC) #4
Brett
PJ's feedback
10 years, 2 months ago (2014-02-08 03:06:06 UTC) #5
pjo
> Waiting 50ms for the monitor > to start up is a drop in the ...
10 years, 2 months ago (2014-02-08 03:29:59 UTC) #6
ejona
https://codereview.appspot.com/57170048/diff/20001/test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java File test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java (right): https://codereview.appspot.com/57170048/diff/20001/test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java#newcode115 test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java:115: public void testNewDocIdLocalUncPaths() throws Exception { Does this require ...
10 years, 2 months ago (2014-02-11 00:01:43 UTC) #7
mifern
Needs more work. The wait(100) is not ideal since it does not guarantee that the ...
10 years, 2 months ago (2014-02-11 01:30:45 UTC) #8
ejona
I see absolutely no way to wait for changes, other than what is done in ...
10 years, 2 months ago (2014-02-11 01:35:39 UTC) #9
Brett
https://codereview.appspot.com/57170048/diff/20001/test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java File test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java (right): https://codereview.appspot.com/57170048/diff/20001/test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java#newcode92 test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java:92: assertTrue(id.contains(root.toString().replace('\\', '/'))); On 2014/02/11 01:30:45, mifern wrote: > Shouldn't ...
10 years, 2 months ago (2014-02-11 02:29:29 UTC) #10
Brett
Eric's and Miguel's Feedback.
10 years, 2 months ago (2014-02-11 02:30:58 UTC) #11
Brett
Eric's and Miguel's Feedback.
10 years, 2 months ago (2014-02-11 02:59:30 UTC) #12
mifern
A couple of additional tests are needed. https://codereview.appspot.com/57170048/diff/60001/test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java File test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java (right): https://codereview.appspot.com/57170048/diff/60001/test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java#newcode215 test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java:215: Need test ...
10 years, 2 months ago (2014-02-11 03:17:33 UTC) #13
ejona
https://codereview.appspot.com/57170048/diff/60001/src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java File src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java (right): https://codereview.appspot.com/57170048/diff/60001/src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java#newcode227 src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java:227: startMonitorPath(watchPath, queue, new CountDownLatch(0)); Why have the two versions ...
10 years, 2 months ago (2014-02-11 03:21:38 UTC) #14
Brett
Eric's and Miguel's Feedback
10 years, 2 months ago (2014-02-12 00:04:03 UTC) #15
Brett
https://codereview.appspot.com/57170048/diff/60001/src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java File src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java (right): https://codereview.appspot.com/57170048/diff/60001/src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java#newcode227 src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java:227: startMonitorPath(watchPath, queue, new CountDownLatch(0)); On 2014/02/11 03:21:38, ejona wrote: ...
10 years, 2 months ago (2014-02-12 23:27:55 UTC) #16
ejona
https://codereview.appspot.com/57170048/diff/80001/src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java File src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java (right): https://codereview.appspot.com/57170048/diff/80001/src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java#newcode17 src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java:17: import com.google.common.annotations.VisibleForTesting; Unused. https://codereview.appspot.com/57170048/diff/80001/test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java File test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java (right): https://codereview.appspot.com/57170048/diff/80001/test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java#newcode43 test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java:43: ...
10 years, 2 months ago (2014-02-13 19:22:09 UTC) #17
Brett
https://codereview.appspot.com/57170048/diff/80001/src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java File src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java (right): https://codereview.appspot.com/57170048/diff/80001/src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java#newcode17 src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java:17: import com.google.common.annotations.VisibleForTesting; On 2014/02/13 19:22:10, ejona wrote: > Unused. ...
10 years, 2 months ago (2014-02-13 23:54:51 UTC) #18
Brett
Eric's Feedback.
10 years, 2 months ago (2014-02-13 23:56:23 UTC) #19
ejona
LGTM. Please wait for Miguel's LGTM https://codereview.appspot.com/57170048/diff/80001/test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java File test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java (right): https://codereview.appspot.com/57170048/diff/80001/test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java#newcode272 test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java:272: long maxLatencyMillis = ...
10 years, 2 months ago (2014-02-14 21:58:17 UTC) #20
mifern
LGTM
10 years, 2 months ago (2014-02-14 22:47:06 UTC) #21
Brett
10 years, 2 months ago (2014-02-14 23:28:12 UTC) #22
Committed 14 February 2014 To https://code.google.com/p/plexi.fs/
   6c240cd..920b11a  master -> master

https://codereview.appspot.com/57170048/diff/100001/test/com/google/enterpris...
File test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java (right):

https://codereview.appspot.com/57170048/diff/100001/test/com/google/enterpris...
test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java:43: import
java.util.concurrent.CountDownLatch;
On 2014/02/14 21:58:18, ejona wrote:
> Still unused.

Done.
Sign in to reply to this message.

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