-
Notifications
You must be signed in to change notification settings - Fork 0
Tests/interop complete #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sagar448
wants to merge
20
commits into
main
Choose a base branch
from
tests/interop-complete
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
94a84dd
Add interoperability tests between Python and TypeScript using Redis
bigboateng ee69d3d
Update interop tests to work with proper Python and TypeScript ES mod…
bigboateng 0411d08
Update run_tests.sh scripts to activate virtual environments
bigboateng 5b79daf
Add tsconfig.json and update TypeScript command to use npx ts-node
bigboateng 9f8c36e
Update TypeScript files to use .mjs extension
bigboateng dfff7c2
Update imports to use dist folder for TypeScript
bigboateng 1157056
Fix TypeScript imports to use index.js
bigboateng 8c11a2c
Add ioredis dependency installation to run_tests.sh scripts
bigboateng 96976ec
Fix localStorage detection in interop tests by using absolute paths a…
bigboateng d55978a
Add explicit assertions to fail immediately if any verification step …
bigboateng e77f42d
Fix: Updated RedisStorage to use ZIP format to match TypeScript imple…
bigboateng 843586a
Chore: Added .gitignore for virtual environments and Redis dump files
bigboateng 9dff345
Chore: Added ioredis dependency to TypeScript-Redis-Python tests
bigboateng 446d9db
Chore: Removed debug and test import files that are not needed
bigboateng 1305b88
Fix: Improved Redis key format validation for interoperability
bigboateng 3999a45
Added chrome-redis-safari test, chrome and safari localStorage is dif…
sagar448 cbbb137
Added the python version for chrome and safari
sagar448 681737f
COmbination of interop tests
sagar448 6543287
Finished adding all tests
sagar448 127bd83
Finished matrix interop testing, runs through combination of cross-la…
sagar448 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,21 @@ | ||
| #!/usr/bin/env python3 | ||
| import argparse | ||
| import asyncio | ||
| from test_browser_state import create_state, verify_state | ||
|
|
||
| def parse_args(): | ||
| parser = argparse.ArgumentParser(description="Python BrowserState Test Runner") | ||
| parser.add_argument("--mode", choices=["create", "verify"], required=True, help="Test mode: create or verify state") | ||
| parser.add_argument("--browser", choices=["chromium", "webkit", "firefox"], required=True, help="Browser to use") | ||
| parser.add_argument("--session", required=True, help="Session ID to use for test") | ||
| return parser.parse_args() | ||
|
|
||
| async def main(): | ||
| args = parse_args() | ||
| if args.mode == "create": | ||
| await create_state(args.browser, args.session) | ||
| elif args.mode == "verify": | ||
| await verify_state(args.browser, args.session) | ||
|
|
||
| if __name__ == "__main__": | ||
| asyncio.run(main()) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potential Zip Slip vulnerability: The ZIP extraction does not verify file paths. Consider validating entries before extraction to prevent path traversal.