test: lwm2m: Implement missing test case 103
Testcase 103 required "Disabled" functionality. Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
This commit is contained in:
parent
51869b3e45
commit
725ceb72b7
2 changed files with 12 additions and 1 deletions
|
@ -135,7 +135,7 @@ Tests are written from test spec;
|
|||
|LightweightM2M-1.1-int-9 - Bootstrap and Configuration Consistency | |testcase not implemented |
|
||||
|LightweightM2M-1.1-int-101 - Initial Registration |:white_check_mark:| |
|
||||
|LightweightM2M-1.1-int-102 - Registration Update |:white_check_mark:| |
|
||||
|LightweightM2M-1.1-int-103 - Deregistration |:large_orange_diamond:|We don't have "disabled" functionality in server object|
|
||||
|LightweightM2M-1.1-int-103 - Deregistration |:white_check_mark:| |
|
||||
|LightweightM2M-1.1-int-104 - Registration Update Trigge |:white_check_mark:| |
|
||||
|LightweightM2M-1.1-int-105 - Discarded Register Update |:white_check_mark:| |
|
||||
|LightweightM2M-1.1-int-107 - Extending the lifetime of a registration |:white_check_mark:| |
|
||||
|
|
|
@ -44,6 +44,17 @@ def test_LightweightM2M_1_1_int_102(shell: Shell, dut: DeviceAdapter, leshan: Le
|
|||
assert latest["lifetime"] == lifetime
|
||||
shell.exec_command('lwm2m write 1/0/1 -u32 86400')
|
||||
|
||||
def test_LightweightM2M_1_1_int_103(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str):
|
||||
"""LightweightM2M-1.1-int-103 - Deregistration"""
|
||||
leshan.execute(endpoint, '1/0/4')
|
||||
dut.readlines_until(regex='LwM2M server disabled', timeout=5.0)
|
||||
dut.readlines_until(regex='Deregistration success', timeout=5.0)
|
||||
# Reset timers by restarting the client
|
||||
shell.exec_command('lwm2m stop')
|
||||
time.sleep(1)
|
||||
shell.exec_command(f'lwm2m start {endpoint}')
|
||||
dut.readlines_until(regex='.*Registration Done', timeout=5.0)
|
||||
|
||||
def test_LightweightM2M_1_1_int_104(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str):
|
||||
"""LightweightM2M-1.1-int-104 - Registration Update Trigger"""
|
||||
shell.exec_command('lwm2m update')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue