Commit 2e4661a8 authored by Federico Sismondi's avatar Federico Sismondi

updated banners and doc

parent 5d752ccf
...@@ -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()
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment