File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
tensorflow_io/core/plugins Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,12 @@ void TF_InitPlugin(TF_FilesystemPluginInfo* info) {
35
35
tensorflow::io::hdfs::ProvideFilesystemSupportFor (&info->ops [3 ], " hdfse" );
36
36
tensorflow::io::hdfs::ProvideFilesystemSupportFor (&info->ops [4 ], " viewfse" );
37
37
tensorflow::io::hdfs::ProvideFilesystemSupportFor (&info->ops [5 ], " hare" );
38
+ tensorflow::io::gs::ProvideFilesystemSupportFor (&info->ops [6 ], " gse" );
38
39
} else {
39
40
tensorflow::io::s3::ProvideFilesystemSupportFor (&info->ops [2 ], " s3" );
40
41
tensorflow::io::hdfs::ProvideFilesystemSupportFor (&info->ops [3 ], " hdfs" );
41
42
tensorflow::io::hdfs::ProvideFilesystemSupportFor (&info->ops [4 ], " viewfs" );
42
43
tensorflow::io::hdfs::ProvideFilesystemSupportFor (&info->ops [5 ], " har" );
44
+ tensorflow::io::gs::ProvideFilesystemSupportFor (&info->ops [6 ], " gs" );
43
45
}
44
- tensorflow::io::gs::ProvideFilesystemSupportFor (&info->ops [6 ], " gse" );
45
46
}
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ def test_read_file():
45
45
46
46
# Setup the GCS bucket and key
47
47
key_name = "TEST"
48
- bucket_name = "gse {}e" .format (int (time .time ()))
48
+ bucket_name = "gs {}e" .format (int (time .time ()))
49
49
bucket = client .create_bucket (bucket_name )
50
50
51
51
blob = bucket .blob (key_name )
@@ -56,5 +56,5 @@ def test_read_file():
56
56
57
57
os .environ ["CLOUD_STORAGE_TESTBENCH_ENDPOINT" ] = "http://localhost:9099"
58
58
59
- content = tf .io .read_file ("gse ://{}/{}" .format (bucket_name , key_name ))
59
+ content = tf .io .read_file ("gs ://{}/{}" .format (bucket_name , key_name ))
60
60
assert content == body
You can’t perform that action at this time.
0 commit comments