Commit 63efea8e authored by BhzErlb's avatar BhzErlb

Corrected bugs and typos in comments

parent 977565d6
Pipeline #2806 failed with stage
in 0 seconds
......@@ -8,6 +8,7 @@ RUN apt-get -y install python-pip
RUN apt-get -y install supervisor
RUN apt-get -y install iputils-ping
RUN apt-get -y install net-tools
RUN apt-get -y install wget
# Install libcoap API
RUN apt-get -y install libcoap-1-0
......@@ -24,10 +25,13 @@ ENV PATH="/ioppytest:$PATH"
WORKDIR /ioppytest
RUN mkdir automated_IUTs/coap_client_libcoap/file
# RUN wget https://raw.githubusercontent.com/obgm/libcoap/develop/examples/etsi_iot_01_largedata.txt -P automated_IUTs/coap_client_libcoap/file
ADD automated_IUTs/coap_client_libcoap/etsi_iot_01_largedata.txt
RUN wget https://raw.githubusercontent.com/obgm/libcoap/develop/examples/etsi_iot_01_largedata.txt -P automated_IUTs/coap_client_libcoap/file
# requirements on automated-iut python code
RUN python3 -m pip install -r automated_IUTs/requirements.txt
#py2 requirements
RUN python -m pip install -r agent/requirements.txt
RUN python -m pip install -r ioppytest/agent/requirements.txt
EXPOSE 5671 5672
......
......@@ -39,20 +39,20 @@ class LibcoapClient(AutomatedIUT):
for observing a resource /obs, we have to use the -s option followed by
the ammount of second we want to observe the specified resource,
e.g for 15 secondes :
- coap-client -s 15 coap://[bbbb::2]:5683/obs -T ABCD1234
- coap-client -s 15 "coap://[bbbb::2]:5683/obs" -T ABCD1234
At the end of this specified timeout, the IUT will deregister properly
using a GET request with observe option set to one.
for sending data to the server:
- coap-client -m POST -e 'some payload'
coap://[[bbbb::2]]:5683/large-create
"coap://[bbbb::2]:5683/large-create"
-t text/plain -T ABCD1234
- coap-client -m PUT -e '<xml>some payload</xml>'
coap://[bbbb::2]:5683/create-1
"coap://[bbbb::2]:5683/create-1"
-t application/xml -T ABCD1234
- coap-client -m PUT -f /path/to/file
coap://[bbbb::2]:5683/create-1
"coap://[bbbb::2]:5683/create-1"
-t application/xml -T ABCD1234
In CoAP protocol, the content-format option is mandatory with POST/PUT.
......@@ -445,7 +445,7 @@ class LibcoapClient(AutomatedIUT):
implemented_stimuli_list = list(stimuli_to_function_map.keys())
for aux_st in aux_stimuli_to_function_map:
implemented_stimuli_list.add(aux_st)
implemented_stimuli_list.append(aux_st)
def _execute_verify(self, verify_step_id):
logger.warning('Ignoring: %s.\
......
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