Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Michal Čihař
proxy
Commits
91c2f440
Commit
91c2f440
authored
Aug 10, 2017
by
Michal Horejsek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed tests
parent
c4bed565
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test_honeypot_proxy.py
test_honeypot_proxy.py
+3
-3
No files found.
test_honeypot_proxy.py
View file @
91c2f440
...
...
@@ -14,7 +14,7 @@ from honeypot_proxy import force_text, ProxySSHSession
@
pytest
.
fixture
def
cmd_args
():
return
mock
.
Mock
(
user_id
=
42
,
device_token
=
42
,
honeypot_host
=
'localhost'
,
honeypot_port
=
2222
,
)
...
...
@@ -56,8 +56,8 @@ def test_honeypot_ssh_arguments(proxy_ssh_session):
def
test_mangle_password
(
proxy_ssh_session
):
assert
json
.
loads
(
proxy_ssh_session
.
mangled_password
)
==
{
'pass
word
'
:
'pass'
,
'
user_id
'
:
42
,
'pass'
:
'pass'
,
'
device_token
'
:
42
,
'remote'
:
'hacker'
,
'remote_port'
:
12345
,
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment