Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
utils
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
f-interop-contributors
utils
Commits
59576e5d
Commit
59576e5d
authored
Jan 11, 2018
by
Federico Sismondi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated mapping table between rkeys patterns ->messages types
parent
4cadf3c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
messages.py
messages.py
+7
-3
No files found.
messages.py
View file @
59576e5d
...
...
@@ -333,7 +333,7 @@ class RoutingKeyToMessageMap:
for
key
in
self
.
rkey_to_message_dict
.
keys
():
if
self
.
equals
(
key
,
routing_key
):
return
self
.
rkey_to_message_dict
[
key
]
raise
KeyError
(
"
%
s not found"
%
routing_key
)
raise
KeyError
(
"
%
s not found
in mapping rkey patterns -> messages table
"
%
routing_key
)
@
classmethod
def
equals
(
cls
,
r1
,
r2
):
...
...
@@ -1147,7 +1147,7 @@ class MsgTestingToolConfigured(Message):
"testing_tools"
:
"f-interop/interoperability-coap"
,
}
# TODO deprecate this message
class
MsgSessionCreated
(
Message
):
"""
Requirements: Session Orchestrator MUST publish message on common-services channel (on every session creation)
...
...
@@ -1159,7 +1159,7 @@ class MsgSessionCreated(Message):
Description: The goal is to notify viz tools about new sessions
"""
routing_key
=
"session.created"
routing_key
=
"
orchestrator.
session.created"
_msg_data_template
=
{
"description"
:
"A new session has been created"
,
...
...
@@ -2507,10 +2507,14 @@ rk_pattern_to_message_type_map = RoutingKeyToMessageMap(
"orchestrator.tests.get.request"
:
MsgOrchestratorTestsGet
,
# any -> SO
"orchestrator.tests.get_contributor_name.request"
:
MsgOrchestratorTestsGetContributorName
,
# any -> SO
# TODO deprecate this
"orchestrator.session.created"
:
MsgSessionCreated
,
# SO -> any
# CORE API: TT <-> GUI
"ui.core.session.get.request"
:
MsgUiRequestSessionConfiguration
,
# TT -> GUI
"ui.user.*.display"
:
MsgUiDisplay
,
# TT -> GUI
"ui.user.*.request"
:
MsgUiRequest
,
# TT -> GUI
"ui.user.*.reply"
:
MsgUiReply
,
# GUI -> TT
# misc
"log.*.*"
:
MsgSessionLog
,
# Any -> Any
...
...
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