-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark operations unsupported by LakeFS filesystem (#1881)
* mark append as unsupported operation * include intellij project settings to running test from IDE * add the content of LakeFSFileSystem.java * Revert "include intellij project settings to running test from IDE" This reverts commit b47341b.
- Loading branch information
Showing
4 changed files
with
40 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
clients/hadoopfs/src/test/java/io/lakefs/FileSystemTest.java
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
clients/hadoopfs/src/test/java/io/lakefs/LakeFSFileSystemTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package io.lakefs; | ||
|
||
import org.junit.After; | ||
import org.junit.Assert; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
|
||
import java.io.IOException; | ||
import java.net.URI; | ||
|
||
public class LakeFSFileSystemTest { | ||
|
||
LakeFSFileSystem fs; | ||
|
||
@Before | ||
public void setUp() throws Exception { | ||
fs = new LakeFSFileSystem(); | ||
} | ||
|
||
@After | ||
public void tearDown() throws Exception { | ||
fs = null; | ||
} | ||
|
||
@Test | ||
public void getUri() { | ||
URI u = fs.getUri(); | ||
Assert.assertEquals(u.toString(), "lakefs://main"); | ||
} | ||
|
||
@Test(expected = UnsupportedOperationException.class) | ||
public void testAppend() throws IOException { | ||
fs.append(null, 0, null); | ||
} | ||
} |