Test Report : TEST-user_remove_test-20240331122521.xml
Test Suite: user_remove_test-20240331122521
Results
| Duration | 93.531 sec |
| Tests | 1 |
| Failures | 0 |
Tests
user_remove_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 93.531 sec |
| Failed | None |
None
Suite stdout:
[1711887921803] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1711887921804] [DBG] DEV-3996365522 enter <function device_base.set_hub at 0x7f688ace5800> (<uclient.hub.HUB object at 0x7f688ae2a950>,)
[1711887921804] [DBG] DEV-3996365522 exit <function device_base.set_hub at 0x7f688ace5800> ret: None
[1711887921804] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f688a1867a0> ('<48:3f:da:55:07:5b/status', '-1')
[1711887921804] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f688a1867a0> ret: None
[1711887921804] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f688a186a20> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f688ae2a950>>,)
[1711887921804] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f688a186a20> ret: None
[1711887921804] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f688a1868e0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f688ae2a950>>,)
[1711887921804] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f688a1868e0> ret: None
[1711887921804] [WARN] HUB Try to connect without uri-schema
[1711887921804] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f688a187060> ('x.ks.ua',)
[1711887922808] [INFO] HUB Connected
[1711887922808] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f688a186de0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f688ae2a950>>)
[1711887922854] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f688a186de0> ret: None
[1711887922854] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f688a186de0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f688ae2a950>>)
[1711887922898] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f688a186de0> ret: None
[1711887922898] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1711887922899] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f688a186de0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f688ae2a950>>)
[1711887922942] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f688a186de0> ret: None
[1711887922942] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1711887922942] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f688a186de0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f688ae2a950>>)
[1711887922986] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f688a186de0> ret: None
[1711887922986] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1711887922987] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f688a186de0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f688ae2a950>>)
[1711887923030] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f688a186de0> ret: None
[1711887923030] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1711887923030] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f688a186de0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f688ae2a950>>)
[1711887923074] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f688a186de0> ret: None
[1711887923074] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1711887923074] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f688a186de0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f688ae2a950>>)
[1711887923118] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f688a186de0> ret: None
[1711887923119] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f688a187060> ret: None
[1711887923119] [DBG] HUB Step, state: 0 (next: 1711887924119)
[1711887923119] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1711887923119] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f688a186f20> ('/reg', '48:3f:da:55:07:5b')
[1711887923163] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f688a186f20> ret: None
[1711887923206] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1711887923166 }
[1711887923206] [INFO] HUB Registration finish, time: 1711887923166
[1711887923206] [DBG] DEV-3996365522 enter <function device_base.register at 0x7f688ace5d00> (1711887923,)
[1711887923206] [INFO] DEV-3996365522 Device 3996365522 registration on the server @ 1711887923
[1711887923206] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1711887923206] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f688a186de0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f688ae2a950>>)
[1711887923250] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f688a186de0> ret: None
[1711887923250] [DBG] DEV-3996365522 exit <function device_base.register at 0x7f688ace5d00> ret: None
[1711887924119] [DBG] HUB Step, state: 1 (next: 1711887925119)
[1711887924119] [DBG] DEV-3996365522 enter <function device_base.info_req at 0x7f688ace65c0> ()
[1711887924119] [DBG] DEV-3996365522 exit <function device_base.info_req at 0x7f688ace65c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1711887923}}
[1711887924119] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240331;master;5183e637011d54c26955b17b85024fc74d20124c", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711887923}}]} }
[1711887924119] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f688a186f20> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240331;master;5183e637011d54c26955b17b85024fc74d20124c", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711887923}}]}')
[1711887924119] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f688a186f20> ret: None
[1711887924143] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1711887924145] [INFO] DEV-3996365522 User created. User count: 1
[1711887924146] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1711887924146] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f688a186f20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1711887924146] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f688a186f20> ret: None
[1711887925196] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "W4TqXIwTRAGNDPRQNsV6IJL5+tOFs6ml6RgUZFr7ejsZ9LeW4VuvlialyeQ/snH2.sfmSFrGl6Y5MD17RjUs6rF8JSGRKLwRIgrtproaYFyk=" }
[1711887955205] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "2la6XBVOsB/a7OFnUPmup1DVdaQIXChIc7ussLRDKPkfrHvUJ26XXUyV4ROjjM4Igr9b1PU4vL214bn7HMtYjOHjD9ZqjijGx2bQvKl0n3ARDM/QaA51fFNYuVv0GrHSU0kUnoLktTWSsb3HEOHwYA==.jq7xfdhAtxVDnzBwqyH1FHygKycEvGNgn9LQ3Bz7hDc=" }
[1711887955207] [INFO] DEV-3996365522 User created. User count: 2
[1711887955207] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1711887955207] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f688a186f20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1711887955207] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f688a186f20> ret: None
[1711887955213] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "2la6XBVOsB/a7OFnUPmup1DVdaQIXChIc7ussLRDKPns5FnV9y73GnB2QBoofQtI.YSMV2qH4tPbCdpmTo5v5/MqeNg7QM28tKVTWqwyH96g=" }
[1711887955213] [INFO] HUB Publish message: { topic: 3996365522/user/remove, value: "LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng=" }
[1711887955214] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f688a186f20> ('<48:3f:da:55:07:5b/3996365522/user/remove', '"LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng="')
[1711887955215] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f688a186f20> ret: None
[1711887955266] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "ceSpe/Lpgr67Z1Jle9JZR5pN7cQOIHAdaNxVtDuVUSdZUz75tfpuMSo4dKwnSFDaGEJH43iXz5ShteiCXedXwUi49uj5qv0/PEoQnDIjKWMG9R3kDLe2U1DmRUY0L5zVdRjnkG+ZDCvc8ugYgMgMZw==.qEkkDb+YJj9rhh629IsZiPHr0p75XdN4S9vrOTdeaSU=" }
[1711887955267] [INFO] DEV-3996365522 User created. User count: 2
[1711887955267] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1711887955267] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f688a186f20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1711887955267] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f688a186f20> ret: None
[1711887955318] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "v2Fa3IU+ETDfpuBfIltsVbBTW7uVQfACpqn/8rsZDyB73uzla5P4IP8KTNHfk9Qa.Q5pSVYyFz4xQDOThzZvg27XjHfBoAym8xCRjOO4y3Es=" }
[1711887955319] [ERR] DEV-3996365522 User (likeable.michael@vegaiot.com (10fc98a2ff8f9c226c7dad397bf546aae03e6550e66f2d99358092ea96fcf72a)) don't have permission to remove users
[1711887984119] [DBG] HUB Step, state: 2 (next: 1711888044119)
[1711887984119] [INFO] HUB Publish message: { topic: status, value: 4 }
[1711887984119] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f688a186f20> ('/48:3f:da:55:07:5b/status', 4)
[1711887984119] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f688a186f20> ret: None
[1711887984119] [DBG] DEV-3996365522 enter <function device_base.publish_status at 0x7f688ace5bc0> ()
[1711887984119] [INFO] HUB Publish message: { topic: 3996365522/status, value: 4 }
[1711887984119] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f688a186f20> ('<48:3f:da:55:07:5b/3996365522/status', 4)
[1711887984119] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f688a186f20> ret: None
[1711887984119] [DBG] DEV-3996365522 exit <function device_base.publish_status at 0x7f688ace5bc0> ret: None
[1711887985324] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "t4A0rgiyQGewXHe34p0tZrReXsqBu0LlUs2Clpw24bhRVXnIoHyWsb2dhIHDSV9E.gRC+lb9eqDYZntPUQiKgAQBJYvrm831Q8+Qa4N+Dsu0=" }
[1711887985325] [ERR] DEV-3996365522 User can't remove himself
[1711888015332] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f688a186b60> ()
[1711888015333] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f688a186b60> ret: None
Suite stderr:
2024-03-31 12:25:24,129 - TEST - INFO - OP take: 1009.967 ms
2024-03-31 12:25:24,136 - TEST - INFO - Connected with result code: 0
2024-03-31 12:25:24,142 - TEST - INFO - OP take: 10.107 ms
2024-03-31 12:25:24,142 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2024-03-31 12:25:24,143 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2024-03-31 12:25:24,191 - TEST - INFO - OP take: 40.592 ms
2024-03-31 12:25:24,192 - TEST - INFO - User created: "OK"
2024-03-31 12:25:25,194 - TEST - INFO - ##### Unknown user remove test #####
2024-03-31 12:25:25,195 - TEST - INFO - [dev] => { 'user/remove' : 'W4TqXIwTRAGNDPRQNsV6IJL5+tOFs6ml' }
2024-03-31 12:25:55,200 - TEST - INFO - Error was returned as planned
2024-03-31 12:25:55,202 - TEST - INFO - ##### Known user remove test #####
2024-03-31 12:25:55,203 - TEST - INFO - Create user: amiable.michael@outlook.com pwd: cgfm9mgx user_id: b730c570684fa73d7aaef542e08f6a904d2c62999ed0aaae338938ad4676174a
2024-03-31 12:25:55,204 - TEST - INFO - [dev] => { 'user/add' : '2la6XBVOsB/a7OFnUPmup1DVdaQIXChI' }
2024-03-31 12:25:55,211 - TEST - INFO - OP take: 0.002 ms
2024-03-31 12:25:55,212 - TEST - INFO - User created: "OK"
2024-03-31 12:25:55,212 - TEST - INFO - [dev] => { 'user/remove' : '2la6XBVOsB/a7OFnUPmup1DVdaQIXChI' }
2024-03-31 12:25:55,265 - TEST - INFO - OP take: 50.504 ms
2024-03-31 12:25:55,265 - TEST - INFO - User removed. OK
2024-03-31 12:25:55,265 - TEST - INFO - ##### Known user remove without permissions test #####
2024-03-31 12:25:55,265 - TEST - INFO - Create user: likeable.michael@vegaiot.com pwd: frjlvb2h user_id: 10fc98a2ff8f9c226c7dad397bf546aae03e6550e66f2d99358092ea96fcf72a
2024-03-31 12:25:55,265 - TEST - INFO - [dev] => { 'user/add' : 'ceSpe/Lpgr67Z1Jle9JZR5pN7cQOIHAd' }
2024-03-31 12:25:55,316 - TEST - INFO - OP take: 50.664 ms
2024-03-31 12:25:55,317 - TEST - INFO - User created: "OK"
2024-03-31 12:25:55,317 - TEST - INFO - [dev] => { 'user/remove' : 'v2Fa3IU+ETDfpuBfIltsVbBTW7uVQfAC' }
2024-03-31 12:26:25,321 - TEST - INFO - Error was returned as planned
2024-03-31 12:26:25,322 - TEST - INFO - ##### Removing myself test #####
2024-03-31 12:26:25,323 - TEST - INFO - [dev] => { 'user/remove' : 't4A0rgiyQGewXHe34p0tZrReXsqBu0Ll' }
2024-03-31 12:26:55,329 - TEST - INFO - Error was returned as planned
2024-03-31 12:26:55,334 - TEST - WARNING - Disconecting from broker