Test Report : TEST-user_remove_test-20231112202927.xml

  • user_remove_test

Test Suite: user_remove_test-20231112202927

Results

Duration93.554 sec
Tests1
Failures0

Tests

user_remove_test

Test case:test
Outcome:Passed
Duration:93.554 sec
FailedNone
None

Suite stdout:

[1699820967943] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1699820967943]  [DBG] DEV-3996365522  enter <function device_base.set_hub at 0x7f77a6735800> (<uclient.hub.HUB object at 0x7f77a5a4f1d0>,)
[1699820967943]  [DBG] DEV-3996365522  exit <function device_base.set_hub at 0x7f77a6735800> ret: None
[1699820967943]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f77a5b92fc0> ('<48:3f:da:55:07:5b/status', '-1')
[1699820967943]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f77a5b92fc0> ret: None
[1699820967943]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f77a5c2e340> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f77a5a4f1d0>>,)
[1699820967943]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f77a5c2e340> ret: None
[1699820967943]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f77a5b931a0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f77a5a4f1d0>>,)
[1699820967943]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f77a5b931a0> ret: None
[1699820967943]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f77a5c2d760> ('x.ks.ua', 1883)
[1699820968947] [INFO] HUB  Connected
[1699820968947]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f77a5c2df80> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f77a5a4f1d0>>)
[1699820968988]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f77a5c2df80> ret: None
[1699820968989]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f77a5c2df80> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f77a5a4f1d0>>)
[1699820969032]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f77a5c2df80> ret: None
[1699820969032] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1699820969032]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f77a5c2df80> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f77a5a4f1d0>>)
[1699820969076]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f77a5c2df80> ret: None
[1699820969076] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1699820969076]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f77a5c2df80> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f77a5a4f1d0>>)
[1699820969120]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f77a5c2df80> ret: None
[1699820969120] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1699820969120]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f77a5c2df80> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f77a5a4f1d0>>)
[1699820969164]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f77a5c2df80> ret: None
[1699820969164] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1699820969164]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f77a5c2df80> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f77a5a4f1d0>>)
[1699820969208]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f77a5c2df80> ret: None
[1699820969208] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1699820969209]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f77a5c2df80> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f77a5a4f1d0>>)
[1699820969252]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f77a5c2df80> ret: None
[1699820969252]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f77a5c2d760> ret: None
[1699820969253]  [DBG] HUB  Step, state: 0 (next: 1699820970253)
[1699820969253] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1699820969253]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f77a5c2de40> ('/reg', '48:3f:da:55:07:5b')
[1699820969296]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f77a5c2de40> ret: None
[1699820969340] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1699820969300 }
[1699820969340] [INFO] HUB  Registration finish, time: 1699820969300
[1699820969340]  [DBG] DEV-3996365522  enter <function device_base.register at 0x7f77a6735d00> (1699820969,)
[1699820969340] [INFO] DEV-3996365522  Device 3996365522 registration on the server @ 1699820969
[1699820969340] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1699820969340]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f77a5c2df80> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f77a5a4f1d0>>)
[1699820969384]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f77a5c2df80> ret: None
[1699820969384]  [DBG] DEV-3996365522  exit <function device_base.register at 0x7f77a6735d00> ret: None
[1699820970253]  [DBG] HUB  Step, state: 1 (next: 1699820971253)
[1699820970253]  [DBG] DEV-3996365522  enter <function device_base.info_req at 0x7f77a67365c0> ()
[1699820970253]  [DBG] DEV-3996365522  exit <function device_base.info_req at 0x7f77a67365c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1699820969}}
[1699820970253] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231112;master;ad086b669325bee6ce018858acdd31cd9dd85e70", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1699820969}}]} }
[1699820970253]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f77a5c2de40> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231112;master;ad086b669325bee6ce018858acdd31cd9dd85e70", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1699820969}}]}')
[1699820970253]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f77a5c2de40> ret: None
[1699820970277] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1699820970280] [INFO] DEV-3996365522  User created. User count: 1
[1699820970280] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1699820970280]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f77a5c2de40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1699820970280]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f77a5c2de40> ret: None
[1699820971334] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "UM9e2M3zgqrDJvP1TU09TddK8KMKSdDOJp4JHk9SB15OPC9PSg+UDD2q0UwkCRsw.vggetG1ZMNvbNnTZglkNwsdWfRx96zcT8sVeW5VS9CI=" }
[1699821001343] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "DZAOTBiOu6lVkHHzcxr08k8baO/QSRyrZBB/6E1xVfDEKT4eNmu+QxbMwgEFWL014GJJ88vdBSa125Qg0uY/6YV5tCxtxRoKAnHOSxXivDD+Bogy3f82bqwqxDIA3VMs0iqVBDP8okiow6IeTqSUtQ==.U10eEC0hp7YcrxhcFhfYUJhbyjzlbKfkDjENSGS0GWE=" }
[1699821001345] [INFO] DEV-3996365522  User created. User count: 2
[1699821001346] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1699821001346]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f77a5c2de40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1699821001347]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f77a5c2de40> ret: None
[1699821001355] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "DZAOTBiOu6lVkHHzcxr08k8baO/QSRyrZBB/6E1xVfDppmn5LrEJlbo0Jo0bKGiH.VVlqxbxowKIREaFNID7yKDexUjI5IXog8oD9VowMLO8=" }
[1699821001356] [INFO] HUB  Publish message: { topic: 3996365522/user/remove, value: "LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng=" }
[1699821001356]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f77a5c2de40> ('<48:3f:da:55:07:5b/3996365522/user/remove', '"LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng="')
[1699821001356]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f77a5c2de40> ret: None
[1699821001407] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "YMqyLN/JX9SfxPvdRtLOrJFyYTrCXbSw89IBozysrxq+grNAejcvt9qA0BPcwI7X2LpQR6S+T9UYk7qbfL9vI0VUcAAgzyCm3jionvfAfjJuiXKlfHiYF8MN9cSJlRV/B/RmzLkFvZOpgYfP4XIqeQ==.9i8u8AMPuP1Ag2lNC4ybBhShCiF7rX4680MJrRRZAI0=" }
[1699821001408] [INFO] DEV-3996365522  User created. User count: 2
[1699821001408] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1699821001408]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f77a5c2de40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1699821001408]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f77a5c2de40> ret: None
[1699821001460] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "q/1/HbwkbQ9aKi6CexO6cs6KSlR7z3NDSzwr0yIEQASlS9HoJM9tru4q4CscI+SV.+2hEv5YQYjQgR2gkdfMVAXylGWuc6RmVXqpQULEWSzE=" }
[1699821001460]  [ERR] DEV-3996365522  User (likeable.robert@tlc.ks.ua (924a3fbb9875ee02d9d8df25f863ae1c924618bd76281b41ef3858475ad9207c)) don't have permission to remove users
[1699821030253]  [DBG] HUB  Step, state: 2 (next: 1699821090253)
[1699821030255] [INFO] HUB  Publish message: { topic: status, value: 4 }
[1699821030256]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f77a5c2de40> ('/48:3f:da:55:07:5b/status', 4)
[1699821030257]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f77a5c2de40> ret: None
[1699821030257]  [DBG] DEV-3996365522  enter <function device_base.publish_status at 0x7f77a6735bc0> ()
[1699821030257] [INFO] HUB  Publish message: { topic: 3996365522/status, value: 4 }
[1699821030257]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f77a5c2de40> ('<48:3f:da:55:07:5b/3996365522/status', 4)
[1699821030257]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f77a5c2de40> ret: None
[1699821030257]  [DBG] DEV-3996365522  exit <function device_base.publish_status at 0x7f77a6735bc0> ret: None
[1699821031471] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "t4A0rgiyQGewXHe34p0tZrReXsqBu0LlUs2Clpw24bhRVXnIoHyWsb2dhIHDSV9E.gRC+lb9eqDYZntPUQiKgAQBJYvrm831Q8+Qa4N+Dsu0=" }
[1699821031472]  [ERR] DEV-3996365522  User can't remove himself
[1699821061477]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f77a5c2e200> ()
[1699821061483]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f77a5c2e200> ret: None
[1699821061483] [WARN] HUB  Disconecting from broker

Suite stderr:

2023-11-12 20:29:30,262 - TEST - INFO - OP take: 1009.825 ms
2023-11-12 20:29:30,272 - TEST - INFO - Connected with result code: 0
2023-11-12 20:29:30,276 - TEST - INFO - OP take: 10.079 ms
2023-11-12 20:29:30,276 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2023-11-12 20:29:30,276 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2023-11-12 20:29:30,328 - TEST - INFO - OP take: 50.845 ms
2023-11-12 20:29:30,328 - TEST - INFO - User created: "OK"
2023-11-12 20:29:31,330 - TEST - INFO - ##### Unknown user remove test #####
2023-11-12 20:29:31,332 - TEST - INFO - [dev] => { 'user/remove' : 'UM9e2M3zgqrDJvP1TU09TddK8KMKSdDO' }
2023-11-12 20:30:01,338 - TEST - INFO - Error was returned as planned
2023-11-12 20:30:01,338 - TEST - INFO - ##### Known user remove test #####
2023-11-12 20:30:01,339 - TEST - INFO - Create user: amiable.james@vegaiot.com pwd: xjbimlk2 user_id: bfcd6c39039615fb81f0bb25b5fee214d08ad508ad18a5f0adb4a857cb525239
2023-11-12 20:30:01,340 - TEST - INFO - [dev] => { 'user/add' : 'DZAOTBiOu6lVkHHzcxr08k8baO/QSRyr' }
2023-11-12 20:30:01,353 - TEST - INFO - OP take: 10.082 ms
2023-11-12 20:30:01,354 - TEST - INFO - User created: "OK"
2023-11-12 20:30:01,354 - TEST - INFO - [dev] => { 'user/remove' : 'DZAOTBiOu6lVkHHzcxr08k8baO/QSRyr' }
2023-11-12 20:30:01,405 - TEST - INFO - OP take: 50.481 ms
2023-11-12 20:30:01,405 - TEST - INFO - User removed. OK
2023-11-12 20:30:01,405 - TEST - INFO - ##### Known user remove without permissions test #####
2023-11-12 20:30:01,406 - TEST - INFO - Create user: likeable.robert@tlc.ks.ua pwd: phx1qk53 user_id: 924a3fbb9875ee02d9d8df25f863ae1c924618bd76281b41ef3858475ad9207c
2023-11-12 20:30:01,406 - TEST - INFO - [dev] => { 'user/add' : 'YMqyLN/JX9SfxPvdRtLOrJFyYTrCXbSw' }
2023-11-12 20:30:01,458 - TEST - INFO - OP take: 50.664 ms
2023-11-12 20:30:01,459 - TEST - INFO - User created: "OK"
2023-11-12 20:30:01,459 - TEST - INFO - [dev] => { 'user/remove' : 'q/1/HbwkbQ9aKi6CexO6cs6KSlR7z3ND' }
2023-11-12 20:30:31,463 - TEST - INFO - Error was returned as planned
2023-11-12 20:30:31,467 - TEST - INFO - ##### Removing myself test #####
2023-11-12 20:30:31,468 - TEST - INFO - [dev] => { 'user/remove' : 't4A0rgiyQGewXHe34p0tZrReXsqBu0Ll' }
2023-11-12 20:31:01,474 - TEST - INFO - Error was returned as planned
2023-11-12 20:31:01,489 - TEST - WARNING - Disconecting from broker
2023-11-12 20:31:01,502 - TEST - WARNING - Disconecting from broker