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
utils
Commits
ca3764c7
Commit
ca3764c7
authored
Nov 09, 2017
by
Federico Sismondi
Browse files
added first UI message into lib, fixed some docstrings and rkeys
parent
8c872962
Changes
1
Hide whitespace changes
Inline
Side-by-side
messages.py
View file @
ca3764c7
...
...
@@ -257,9 +257,18 @@ class MsgErrorReply(MsgReply):
}
# # # # # # CORE API # # # # #
# # # # # # CORE API
messages
# # # # #
class
MsgOrchestratorVersionReq
(
Message
):
"""
Requirements: ...
Type: Event
Pub/Sub: UI -> SO
Description: Message for returning current version of SO
"""
routing_key
=
"control.orchestrator.service"
_msg_data_template
=
{
...
...
@@ -267,8 +276,31 @@ class MsgOrchestratorVersionReq(Message):
}
# # # # # # UI API messages # # # # # # # #
class
MsgUiRequestTextInput
(
Message
):
"""
Requirements: ...
Type: Event
Pub/Sub: TT -> UI
Description: Message for requesting action or information to user
"""
routing_key
=
"ui.any.request"
_msg_data_template
=
{
"_type"
:
"ui.any.request.text.input"
,
"fields"
:
[
{
"name"
:
"input_name"
,
"type"
:
"text"
},
]
}
# # # # # # AGENT MESSAGES # # # # # #
class
MsgAgentTunStart
(
Message
):
"""
Requirements: Testing Tool MAY implement (if IP tun needed)
...
...
@@ -1634,6 +1666,7 @@ class MsgInteropTestCaseAnalyzeReply(MsgReply):
- more values elements MAY be added to the list
"""
routing_key
=
MsgInteropTestCaseAnalyze
.
routing_key
+
".reply"
_msg_data_template
=
{
"_type"
:
"analysis.interop.testcase.analyze.reply"
,
...
...
@@ -1710,6 +1743,8 @@ class MsgDissectionDissectCaptureReply(MsgReply):
Description: TBD
"""
routing_key
=
MsgDissectionDissectCapture
.
routing_key
+
".reply"
_frames_example
=
[
{
"_type"
:
"frame"
,
...
...
@@ -2056,7 +2091,7 @@ message_types_dict = {
"testingtool.component.shutdown"
:
MsgTestingToolComponentShutdown
,
# Testing Tool internal
# TODO depricate this in favor of "testsuite.start"
"testcoordination.testsuite.start"
:
MsgTestSuiteStart
,
# GUI -> TestingTool
"testcoordination.testsuite.start"
:
MsgTestSuiteStart
,
# GUI -> TestingTool
"testcoordination.testsuite.started"
:
MsgTestSuiteStarted
,
# Testing Tool -> GUI
"testcoordination.testsuite.finish"
:
MsgTestSuiteFinish
,
# GUI -> TestingTool
...
...
@@ -2086,7 +2121,7 @@ message_types_dict = {
"testcoordination.testsuite.gettestcases"
:
MsgTestSuiteGetTestCases
,
# GUI -> TestingTool
"testcoordination.testsuite.gettestcases.reply"
:
MsgTestSuiteGetTestCasesReply
,
# TestingTool -> GUI (reply)
#TODO depricate this in favor of "testsuite.report"
#
TODO depricate this in favor of "testsuite.report"
"testcoordination.testsuite.report"
:
MsgTestSuiteReport
,
# TestingTool -> GUI
"sniffing.start"
:
MsgSniffingStart
,
# Testing Tool Internal
...
...
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