Skip to content

Commit

Permalink
Fixing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
adityakalia committed Aug 23, 2016
1 parent 8ba25ab commit e206376
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class Smb2ConnectionBuilder extends ConnectionBuilder implements Overther
public static final String SMB2_PORT = "cifsPort";

/**
* The Windows Domain to authenticate the user against. If not set, bla bla bla
* The Windows Domain to authenticate the user against. If not set blank value will be used
*/
public static final String DOMAIN = "domain";

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/xebialabs/overthere/smb2/Smb2File.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,17 @@ public boolean exists() {

@Override
public boolean canRead() {
return checkAccessMask(AccessMask.GENERIC_READ);
return checkAccessMask(AccessMask.FILE_READ_DATA);
}

@Override
public boolean canWrite() {
return checkAccessMask(AccessMask.GENERIC_WRITE);
return checkAccessMask(AccessMask.FILE_APPEND_DATA);
}

@Override
public boolean canExecute() {
return checkAccessMask(AccessMask.GENERIC_EXECUTE);
return canRead();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ protected ConnectionOptions getOptions() {

@Override
protected String getExpectedConnectionClassName() {
return CifsWinRmConnection.class.getName();
return Smb2WinRmConnection.class.getName();
}
}

0 comments on commit e206376

Please sign in to comment.