-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prevent serialization of symlinks by default (#251)
* add serialization test for symlink model file Signed-off-by: Spencer Schrock <[email protected]> * prevent serialization of symlinks by default This can be changed via the allow_symlink argument in the various serialization initializers. Signed-off-by: Spencer Schrock <[email protected]> * convert symlink file fixture to symlink directory fixture Signed-off-by: Spencer Schrock <[email protected]> * Address style and documentation feedback Signed-off-by: Spencer Schrock <[email protected]> * add `Raises` section to serialize docstrings Signed-off-by: Spencer Schrock <[email protected]> --------- Signed-off-by: Spencer Schrock <[email protected]>
- Loading branch information
1 parent
c3c4110
commit 9798149
Showing
13 changed files
with
132 additions
and
18 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
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
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
1 change: 1 addition & 0 deletions
1
...igning/serialization/testdata/serialize_by_file/TestDigestSerializer/symlink_model_folder
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 @@ | ||
8372365be7578241d18db47ec83b735bb450a10a1b4298d9b7b0d8bf543b7271 |
1 change: 1 addition & 0 deletions
1
...ning/serialization/testdata/serialize_by_file/TestManifestSerializer/symlink_model_folder
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 @@ | ||
symlink_file:3aab065c7181a173b5dd9e9d32a9f79923440b413be1e1ffcdba26a7365f719b |
1 change: 1 addition & 0 deletions
1
.../serialization/testdata/serialize_by_file_shard/TestDigestSerializer/symlink_model_folder
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 @@ | ||
013322ae2977a76252119aa6a4d71044599c7c2d890f7ed96215b52308ee7142 |
1 change: 1 addition & 0 deletions
1
...n/testdata/serialize_by_file_shard/TestDigestSerializer/symlink_model_folder_small_shards
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 @@ | ||
de9d3fc1608836778e17540ac0332b42bf01730d4697767571b89460fae92fc3 |
1 change: 1 addition & 0 deletions
1
.../serialization/testdata/serialize_by_file_shard/TestManifestSerializer/symlink_model_file
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 @@ | ||
.:0:22:3aab065c7181a173b5dd9e9d32a9f79923440b413be1e1ffcdba26a7365f719b |
1 change: 1 addition & 0 deletions
1
...erialization/testdata/serialize_by_file_shard/TestManifestSerializer/symlink_model_folder
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 @@ | ||
symlink_file:0:22:3aab065c7181a173b5dd9e9d32a9f79923440b413be1e1ffcdba26a7365f719b |
3 changes: 3 additions & 0 deletions
3
...testdata/serialize_by_file_shard/TestManifestSerializer/symlink_model_folder_small_shards
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,3 @@ | ||
symlink_file:0:8:a37010c994067764d86540bf479d93b4d0c3bb3955de7b61f951caf2fd0301b0 | ||
symlink_file:8:16:bd762002a3528a27fb9a8822f822b949d3c9ab7e860af33039c9aa70ebbbe682 | ||
symlink_file:16:22:a791e1e893ea4260c77475725101fb4cc6ad85f6340f21f10b239184e318cd21 |
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 |
---|---|---|
|
@@ -39,6 +39,7 @@ | |
"empty_model_file", | ||
"empty_model_folder", | ||
"model_folder_with_empty_file", | ||
"symlink_model_folder", | ||
] | ||
|
||
|
||
|