Skip to content
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

test1451: add SMB support to the testbed #1630

Closed
wants to merge 2 commits into from

Conversation

maxdymond
Copy link
Contributor

Add test 1451 which does some very basic SMB testing using the impacket SMB server.

The exciting commit here is the second one which actually adds the server functionality - the first commit just commits the Python module impacket to the codebase.

By adding this server, coverage of lib/smb.c is increased from 0.0% to 69.2%.

@mention-bot
Copy link

@maxdymond, thanks for your PR! By analyzing the history of the files in this pull request, we identified @yangtse, @bagder and @dfandrich to be potential reviewers.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.2%) to 75.167% when pulling a571c30 on maxdymond:smb/impacket into d24838d on curl:master.

@bagder
Copy link
Member

bagder commented Jul 1, 2017

Yay, this looks like an excellent start! I think it would be good to trim off more unused stuff from it before merging though. For example I could do rm -rf ldap dcerpc krb5 examples and test case 1451 still worked fine.

Another third of all lines (15K) could be removed if we could make it not use the three huge *errors.py files.

Import impacket 0.9.15 for use in SMB testing. This was generated by
doing "pip2.7 install -t . impacket"

Unnecessary files for current testing were deleted.
Add test 1451 which does some very basic SMB testing using the impacket
SMB server.
@maxdymond
Copy link
Contributor Author

I've removed all files that weren't necessary to make test 1451 run - down to 12 in total.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.2%) to 75.159% when pulling 0576395 on maxdymond:smb/impacket into 3a48a13 on curl:master.

Copy link
Member

@bagder bagder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@bagder bagder closed this in a6f8d27 Jul 4, 2017
@bagder
Copy link
Member

bagder commented Jul 4, 2017

Thanks!

@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
@bagder bagder added the SMB label May 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

None yet

4 participants