Exemplo n.º 1
0
def test_simple(hdfs_cluster):
    w = WebHDFS(hdfs_cluster, user="******")
    home = w.home_directory()
    assert home == "/user/testuser"
    with pytest.raises(PermissionError):
        w.mkdir("/root")
Exemplo n.º 2
0
def test_simple(hdfs_cluster):
    w = WebHDFS(hdfs_cluster, user='******')
    home = w.home_directory()
    assert home == '/user/testuser'
    with pytest.raises(PermissionError):
        w.mkdir('/root')
Exemplo n.º 3
0
def test_simple(hdfs_cluster):
    w = WebHDFS(hdfs_cluster, user='******')
    home = w.home_directory()
    assert home == '/user/testuser'