-
Notifications
You must be signed in to change notification settings - Fork 75
Add tests data related to containers (EWF, VDI, VHD, VHDX and VMDK) #1495
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
william-billaud
wants to merge
20
commits into
fox-it:main
Choose a base branch
from
william-billaud:add_test_ewf
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 3 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
e25d5e3
Add tests related to ewf
william-billaud 01f0b4b
typo
william-billaud 9351800
Merge branch 'main' into add_test_ewf
william-billaud 34cb24d
Update tests/containers/test_ewf.py
william-billaud 1b7be5d
Update tests/containers/test_ewf.py
william-billaud ad8ee72
Add tests related to qcow2 container format
william-billaud 4eefc5e
Add tests related to qcow2 container format + enhance test
william-billaud c98caf7
Add tests related to split e01 files
william-billaud b7f24b3
Add tests related to VDI
william-billaud 76a9135
Enhance split container test
william-billaud 59b7d1c
Add vmdk and vhd tests
william-billaud 9b969f7
Add vhdx tests
william-billaud 1347fd0
Add missing data
william-billaud 17c81cd
Merge branch 'main' into add_test_ewf
william-billaud d241dc0
Replace os.SEEK with io.SEEK
william-billaud 76762d2
add instruction related to data generation
william-billaud 86891fd
add instruction related to data generation for ewf
william-billaud dc732da
Add tests using VFS, in order to test the extension based matching
william-billaud 75c0bfa
Merge branch 'main' into add_test_ewf
william-billaud 80e69d8
Merge branch 'main' into add_test_ewf
william-billaud 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
Git LFS file not shown
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,12 @@ | ||
| from dissect.target import container | ||
william-billaud marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| from dissect.target.containers.ewf import EwfContainer | ||
| from tests._utils import absolute_path | ||
|
|
||
|
|
||
| def test_ewf_container() -> None: | ||
william-billaud marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| path = absolute_path("_data/containers/ewf/small.E01") | ||
|
|
||
| fh = container.open(path) | ||
| assert isinstance(fh, EwfContainer) | ||
| a = fh.read(20) | ||
| assert a == b"testdissecte01\n" | ||
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.
Uh oh!
There was an error while loading. Please reload this page.