This commit is contained in:
Yatsishin Ilya 2021-06-11 13:50:44 +03:00
parent d7fca4a6f2
commit fe712caa5c

View File

@ -16,7 +16,7 @@ def started_cluster():
def test_url_without_redirect(started_cluster): def test_url_without_redirect(started_cluster):
hdfs_api = start_cluster.hdfs_api hdfs_api = started_cluster.hdfs_api
hdfs_api.write_data("/simple_storage", "1\tMark\t72.53\n") hdfs_api.write_data("/simple_storage", "1\tMark\t72.53\n")
assert hdfs_api.read_data("/simple_storage") == "1\tMark\t72.53\n" assert hdfs_api.read_data("/simple_storage") == "1\tMark\t72.53\n"
@ -28,7 +28,7 @@ def test_url_without_redirect(started_cluster):
def test_url_with_globs(started_cluster): def test_url_with_globs(started_cluster):
hdfs_api = start_cluster.hdfs_api hdfs_api = started_cluster.hdfs_api
hdfs_api.write_data("/simple_storage_1_1", "1\n") hdfs_api.write_data("/simple_storage_1_1", "1\n")
hdfs_api.write_data("/simple_storage_1_2", "2\n") hdfs_api.write_data("/simple_storage_1_2", "2\n")
@ -43,7 +43,7 @@ def test_url_with_globs(started_cluster):
def test_url_with_globs_and_failover(started_cluster): def test_url_with_globs_and_failover(started_cluster):
hdfs_api = start_cluster.hdfs_api hdfs_api = started_cluster.hdfs_api
hdfs_api.write_data("/simple_storage_1_1", "1\n") hdfs_api.write_data("/simple_storage_1_1", "1\n")
hdfs_api.write_data("/simple_storage_1_2", "2\n") hdfs_api.write_data("/simple_storage_1_2", "2\n")
@ -58,7 +58,7 @@ def test_url_with_globs_and_failover(started_cluster):
def test_url_with_redirect_not_allowed(started_cluster): def test_url_with_redirect_not_allowed(started_cluster):
hdfs_api = start_cluster.hdfs_api hdfs_api = started_cluster.hdfs_api
hdfs_api.write_data("/simple_storage", "1\tMark\t72.53\n") hdfs_api.write_data("/simple_storage", "1\tMark\t72.53\n")
assert hdfs_api.read_data("/simple_storage") == "1\tMark\t72.53\n" assert hdfs_api.read_data("/simple_storage") == "1\tMark\t72.53\n"
@ -71,7 +71,7 @@ def test_url_with_redirect_not_allowed(started_cluster):
def test_url_with_redirect_allowed(started_cluster): def test_url_with_redirect_allowed(started_cluster):
hdfs_api = start_cluster.hdfs_api hdfs_api = started_cluster.hdfs_api
hdfs_api.write_data("/simple_storage", "1\tMark\t72.53\n") hdfs_api.write_data("/simple_storage", "1\tMark\t72.53\n")
assert hdfs_api.read_data("/simple_storage") == "1\tMark\t72.53\n" assert hdfs_api.read_data("/simple_storage") == "1\tMark\t72.53\n"