Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
f-interop-contributors
agent
Commits
2e4661a8
Commit
2e4661a8
authored
Apr 07, 2018
by
Federico Sismondi
Browse files
updated banners and doc
parent
5d752ccf
Changes
2
Hide whitespace changes
Inline
Side-by-side
agent.py
View file @
2e4661a8
...
@@ -23,6 +23,7 @@ Features of the agent
...
@@ -23,6 +23,7 @@ Features of the agent
* The agent isn't the way the user interact with test coordinator/manager. It simply connects to backend to establish a
* The agent isn't the way the user interact with test coordinator/manager. It simply connects to backend to establish a
sort of virtual network.
sort of virtual network.
"""
"""
import
sys
import
logging
import
logging
import
click
import
click
import
uuid
import
uuid
...
@@ -33,7 +34,7 @@ from connectors.core import CoreConnector
...
@@ -33,7 +34,7 @@ from connectors.core import CoreConnector
from
connectors.http
import
HTTPConnector
from
connectors.http
import
HTTPConnector
from
connectors.serialconn
import
SerialConnector
from
connectors.serialconn
import
SerialConnector
from
utils
import
arrow_down
,
arrow_up
,
finterop
_banner
from
utils
import
arrow_down
,
arrow_up
,
ioppytest
_banner
from
utils.packet_dumper
import
launch_amqp_data_to_pcap_dumper
from
utils.packet_dumper
import
launch_amqp_data_to_pcap_dumper
try
:
try
:
...
@@ -55,8 +56,10 @@ class Agent(object):
...
@@ -55,8 +56,10 @@ class Agent(object):
"""
"""
header
=
"""
header
=
"""
Agent (~VPN client) for connecting your implementation under test (IUT) to the private network of the remote interop
Agent (~VPN client) is a component which connects to testing tool using the AMQP bus. This component is part of the
session.
ioppytest framework ecosystem. This components needs to run in the user's host and must share some kind on interface
with the implementation under test (IUT), it will enable the creation of a private network between all devices in the
session.
Some examples on the different modes of running the agent (depending on the cabling and networking of your IUT):
Some examples on the different modes of running the agent (depending on the cabling and networking of your IUT):
...
@@ -139,7 +142,7 @@ For more information: README.md
...
@@ -139,7 +142,7 @@ For more information: README.md
def
__init__
(
self
):
def
__init__
(
self
):
print
(
finterop
_banner
)
print
(
ioppytest
_banner
)
self
.
cli
=
click
.
Group
(
self
.
cli
=
click
.
Group
(
add_help_option
=
Agent
.
header
,
add_help_option
=
Agent
.
header
,
...
@@ -268,6 +271,9 @@ For more information: README.md
...
@@ -268,6 +271,9 @@ For more information: README.md
self
.
cli
()
self
.
cli
()
if
__name__
==
"__
main
__"
:
def
main
()
:
agent
=
Agent
()
agent
=
Agent
()
agent
.
run
()
agent
.
run
()
if
__name__
==
"__main__"
:
main
()
utils/__init__.py
View file @
2e4661a8
...
@@ -64,4 +64,15 @@ finterop_banner = \
...
@@ -64,4 +64,15 @@ finterop_banner = \
|_| |_____|_| |_|
\\
__
\\
___|_|
\\
___/| .__/
|_| |_____|_| |_|
\\
__
\\
___|_|
\\
___/| .__/
| |
| |
|_|
|_|
"""
"""
\ No newline at end of file
ioppytest_banner
=
\
"""
_ _ _ _
(_) ___ _ __ _ __ _ _ | |_ ___ ___ | |_ __ _ __ _ ___ _ __ | |_
| | / _
\\
| '_
\\
| '_
\\
| | | || __|/ _
\\
/ __|| __|_____ / _` | / _` | / _
\\
| '_
\\
| __|
| || (_) || |_) || |_) || |_| || |_| __/
\\
__
\\
| |_|_____|| (_| || (_| || __/| | | || |_
|_|
\\
___/ | .__/ | .__/
\\
__, |
\\
__|
\\
___||___/
\\
__|
\\
__,_|
\\
__, |
\\
___||_| |_|
\\
__|
|_| |_| |___/ |___/
"""
\ No newline at end of file
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