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
ioppytest
Commits
52f89c9c
Commit
52f89c9c
authored
Jan 27, 2017
by
Federico Sismondi
Browse files
fix for bug introduced with iut node temrs change
parent
7a300320
Changes
1
Hide whitespace changes
Inline
Side-by-side
coap_testing_tool/test_coordinator/coordinator.py
View file @
52f89c9c
...
...
@@ -256,7 +256,7 @@ class TestConfig:
class
Step
():
# TODO check step id uniqueness
def
__init__
(
self
,
step_id
,
type
,
description
,
iut
=
None
):
def
__init__
(
self
,
step_id
,
type
,
description
,
node
=
None
):
self
.
id
=
step_id
assert
type
in
(
"stimuli"
,
"check"
,
"verify"
)
# TODO sth else might need to be defined for conformance testing TBD (inject? drop packet?)..
...
...
@@ -265,8 +265,8 @@ class Step():
# stimuli and verify step MUST have a iut field in the YAML file
if
type
==
'stimuli'
or
type
==
'verify'
:
assert
iut
is
not
None
self
.
iut
=
Iut
(
iut
)
assert
node
is
not
None
self
.
iut
=
Iut
(
node
)
# Check and verify steps need a partial verdict
self
.
partial_verdict
=
Verdict
()
...
...
@@ -351,7 +351,7 @@ class TestCase:
try
:
assert
"step_id"
and
"description"
and
"type"
in
s
if
s
[
'type'
]
==
'stimuli'
:
assert
"
iut
"
in
s
assert
"
node
"
in
s
self
.
sequence
.
append
(
Step
(
**
s
))
except
:
logger
.
error
(
"Error found while trying to parse: %s"
%
str
(
s
))
...
...
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