-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[testing] Add e2e tests for unsupported directory names
This adds tests for unsupported directories ( directories which are either named '', or '.' or '..', or have '//', '/./', '/../' in their total path in their bucket. update documentation in semantics.md [debug] initialize log-file in fs_test [debug] add logs in bucket_handle list function update list implementation in fake bucket_handle improve util.go fix lint error in integration test [debug] add logfile in internal/fs/implicit_dir add walkdir test in internal/fs/implicit_dir [debug] remove earlier added internal/fs/implicit_dir test fix bucket_handle unit tests Remove tests for ., .., \0 Optimized test code. Restrict unsupported directory check to '/' [debug-fix] revert unsupported dir checks in fake-bucket Improve error-check in integration test add logs in internal/fs/implicit_dir [debug] add debug logs in fake bucket [debug] update debug logs in internal/fs/implicit_dir reenable fix for unsupportd dirs in fake/bucket Move the check for unsupported directory in fake/bucket [debug] log changes in fake/bucket add test for unsupported directories in fake/bucket reenable more paths in internal/fs/implicit_dir walk-dir test fix for unsupported dirs in fake/bucket [debug] log changes in fake/bucket remove commented out logic of unsupported directories in fake/bucket [debug] all logs from fake/bucket fix internal/fs/implicit_dir walkdir test add more test paths to internal/fs/implicit-dir walkdir test [debug] remove debug logs from internal/fs/implicit-dir walkdir test added comments in fake/bucket fix beefed up the unit test for unsupported names in fake/bucket Revert "[debug] remove earlier added internal/fs/implicit_dir test" This reverts commit f512982. Revert "[debug] all logs from fake/bucket" This reverts commit 0fcb4e3. Reapply "[debug] all logs from fake/bucket" This reverts commit 67621f8. fix linter errors merge isunsupported* functions into one code cleanup 1. Remove all logs, comments 2. Remove all commented out code 3. Remove all unnecessary changes temp fix case for unsupported objects add test for listing with MaxResults 1 in bucket_handle_test cleanup add more test cases in internal/fs/implicit_dir_test address self-review comments add more unsupported paths in fs/implicit_dir_tests address self-review comments add more details to semantics doc Remove integration test changes from this PR address some review comments fix test broken by last commit Add TestListObjectMethodWithOneMaxResult Test in bucket_handle_test.go for MaxResults=1 case. switch implementation disable other test files in internal/fs disable older preexisting tests in internal/fs/implicit_dirs_test.go fix failing tests code cleanup Revert "disable older preexisting tests in internal/fs/implicit_dirs_test.go" This reverts commit bd2dedc. Revert "disable other test files in internal/fs" This reverts commit cf00084. fix broken test address self-review comments move RemoveUnsupportedObjectsFromListing to util package add a code comment fix comment and shorten code remove code meant for follow-up branches fix linter error remove unnecessarily added test fix typo improve composite tests rerun presubmit Optimize a unit test fix comment Add test for unsupported objects in dir_test.go address a unit test update a unit test update in a unit test rerun presubmit Revert "Remove integration test changes from this PR" This reverts commit caa5342. Create unsupported name test objects with client Switching from earlier creating them with gcloud command remove unused constant remove dependence on create_objects.sh optimize runtime, fix comments address a review comment add fix build failure address a review comment address a review comment Pass package-context in all createObject calls fix bucket-handle unit tests fix dir_test units
- Loading branch information
1 parent
f866623
commit d2c4305
Showing
6 changed files
with
77 additions
and
42 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
26 changes: 0 additions & 26 deletions
26
...s/integration_tests/util/setup/implicit_and_explicit_dir_setup/testdata/create_objects.sh
This file was deleted.
Oops, something went wrong.