Test Report : TEST-user_remove_test-20240413182830.xml

  • user_remove_test

Test Suite: user_remove_test-20240413182830

Results

Duration93.518 sec
Tests1
Failures0

Tests

user_remove_test

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

Suite stdout:

[1713032910907] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1713032910907]  [DBG] DEV-3996365522  enter <function device_base.set_hub at 0x7fdb65145800> (<uclient.hub.HUB object at 0x7fdb6528a950>,)
[1713032910907]  [DBG] DEV-3996365522  exit <function device_base.set_hub at 0x7fdb65145800> ret: None
[1713032910908]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fdb645e67a0> ('<48:3f:da:55:07:5b/status', '-1')
[1713032910908]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fdb645e67a0> ret: None
[1713032910908]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fdb645e6a20> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fdb6528a950>>,)
[1713032910908]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fdb645e6a20> ret: None
[1713032910908]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fdb645e68e0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fdb6528a950>>,)
[1713032910908]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fdb645e68e0> ret: None
[1713032910908] [WARN] HUB  Try to connect without uri-schema
[1713032910908]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fdb645e7060> ('x.ks.ua',)
[1713032911912] [INFO] HUB  Connected
[1713032911912]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdb645e6de0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdb6528a950>>)
[1713032911954]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdb645e6de0> ret: None
[1713032911954]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdb645e6de0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdb6528a950>>)
[1713032911998]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdb645e6de0> ret: None
[1713032911998] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1713032911998]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdb645e6de0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdb6528a950>>)
[1713032912044]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdb645e6de0> ret: None
[1713032912044] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1713032912044]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdb645e6de0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdb6528a950>>)
[1713032912086]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdb645e6de0> ret: None
[1713032912086] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1713032912086]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdb645e6de0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdb6528a950>>)
[1713032912130]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdb645e6de0> ret: None
[1713032912130] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1713032912130]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdb645e6de0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdb6528a950>>)
[1713032912174]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdb645e6de0> ret: None
[1713032912174] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1713032912174]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdb645e6de0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdb6528a950>>)
[1713032912218]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdb645e6de0> ret: None
[1713032912218]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fdb645e7060> ret: None
[1713032912219]  [DBG] HUB  Step, state: 0 (next: 1713032913219)
[1713032912219] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1713032912219]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdb645e6f20> ('/reg', '48:3f:da:55:07:5b')
[1713032912262]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdb645e6f20> ret: None
[1713032912306] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1713032912267 }
[1713032912306] [INFO] HUB  Registration finish, time: 1713032912267
[1713032912306]  [DBG] DEV-3996365522  enter <function device_base.register at 0x7fdb65145d00> (1713032912,)
[1713032912306] [INFO] DEV-3996365522  Device 3996365522 registration on the server @ 1713032912
[1713032912306] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1713032912306]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdb645e6de0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdb6528a950>>)
[1713032912351]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdb645e6de0> ret: None
[1713032912351]  [DBG] DEV-3996365522  exit <function device_base.register at 0x7fdb65145d00> ret: None
[1713032913219]  [DBG] HUB  Step, state: 1 (next: 1713032914219)
[1713032913219]  [DBG] DEV-3996365522  enter <function device_base.info_req at 0x7fdb651465c0> ()
[1713032913219]  [DBG] DEV-3996365522  exit <function device_base.info_req at 0x7fdb651465c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1713032912}}
[1713032913219] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240331;master;283e2051d299580edb55e5b0202453ee37bd3631", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713032912}}]} }
[1713032913219]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdb645e6f20> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240331;master;283e2051d299580edb55e5b0202453ee37bd3631", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713032912}}]}')
[1713032913219]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdb645e6f20> ret: None
[1713032913245] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1713032913249] [INFO] DEV-3996365522  User created. User count: 1
[1713032913250] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1713032913250]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdb645e6f20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1713032913250]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdb645e6f20> ret: None
[1713032914292] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "OpkS5cZ5++97UaInKHaPPd8u1YI3ejAEr8aJ/5KkP9O7EujLY7uU0KvuhAp/8Adw.xgkBqpJrkWPtzeH861Dxy9k7jInJqhQLsvgTyqOtBAc=" }
[1713032944301] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "jvWVojW2qdVSjieiFSlfCCshBWDhiRESZNpJdv3/T69APh9EQao40Idan9bviyJyp4DAeG2kvrQ7b20nHVUv9A8btwTGk7TlyYttAj+y4iyegU7rcU1s7qJ4v+YdAenHuAyAw6DeC0iJkDRWRmD9Vg==.XBvajLchyShQOusNQBcTkmjfr/gyiTyrXiu8JJ4FRPk=" }
[1713032944305] [INFO] DEV-3996365522  User created. User count: 2
[1713032944305] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1713032944305]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdb645e6f20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1713032944306]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdb645e6f20> ret: None
[1713032944313] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "jvWVojW2qdVSjieiFSlfCCshBWDhiRESZNpJdv3/T685ak/0KNjTb3UgZnBFC563.8kODrKDAqkHCbmZanqxm5NCSfoJpogXnThpnhsJrq3k=" }
[1713032944313] [INFO] HUB  Publish message: { topic: 3996365522/user/remove, value: "LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng=" }
[1713032944313]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdb645e6f20> ('<48:3f:da:55:07:5b/3996365522/user/remove', '"LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng="')
[1713032944313]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdb645e6f20> ret: None
[1713032944359] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "QIyuaUAm5tHQtb1FFiL/06Z0WGetkfsLiHQrDJAmb02JQtZFJbsn4mf/E0yYoktsMrmmUIoY/zCJbOF1WW8ldj7+bPhsjRM040zGHbwlLfCzcb/l/riGw0SUYstdeTwExdL+jhVao2p3YEnx7V/iiw==.mIPrf4J/SgJDF0B9i2C80bhRRwM+nLZ7hwnNOsqjtV8=" }
[1713032944360] [INFO] DEV-3996365522  User created. User count: 2
[1713032944360] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1713032944360]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdb645e6f20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1713032944360]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdb645e6f20> ret: None
[1713032944411] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "GBarXFJUdTXCrTQwFo5BSI5nOcv4j6V4U3bk7P1NOvlIVYfTuUmO50QhSLtoDRua.ii2c0abLZ0W0e2CCJLImEyFP3ZcirfG5YM0nV9Zbs8k=" }
[1713032944412]  [ERR] DEV-3996365522  User (charming.mary@i.ua (6f474135baabc50b25a8aedfad8f18a58a2c614b6eddd75775bcf35dd0cdab04)) don't have permission to remove users
[1713032973219]  [DBG] HUB  Step, state: 2 (next: 1713033033219)
[1713032973219] [INFO] HUB  Publish message: { topic: status, value: 4 }
[1713032973219]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdb645e6f20> ('/48:3f:da:55:07:5b/status', 4)
[1713032973219]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdb645e6f20> ret: None
[1713032973219]  [DBG] DEV-3996365522  enter <function device_base.publish_status at 0x7fdb65145bc0> ()
[1713032973219] [INFO] HUB  Publish message: { topic: 3996365522/status, value: 4 }
[1713032973219]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdb645e6f20> ('<48:3f:da:55:07:5b/3996365522/status', 4)
[1713032973219]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdb645e6f20> ret: None
[1713032973219]  [DBG] DEV-3996365522  exit <function device_base.publish_status at 0x7fdb65145bc0> ret: None
[1713032974415] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "t4A0rgiyQGewXHe34p0tZrReXsqBu0LlUs2Clpw24bhRVXnIoHyWsb2dhIHDSV9E.gRC+lb9eqDYZntPUQiKgAQBJYvrm831Q8+Qa4N+Dsu0=" }
[1713032974415]  [ERR] DEV-3996365522  User can't remove himself
[1713033004417]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7fdb645e6b60> ()
[1713033004418]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7fdb645e6b60> ret: None
[1713033004418] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-04-13 18:28:33,231 - TEST - INFO - OP take: 1012.342 ms
2024-04-13 18:28:33,237 - TEST - INFO - Connected with result code: 0
2024-04-13 18:28:33,244 - TEST - INFO - OP take: 10.125 ms
2024-04-13 18:28:33,244 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2024-04-13 18:28:33,244 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2024-04-13 18:28:33,289 - TEST - INFO - OP take: 40.632 ms
2024-04-13 18:28:33,290 - TEST - INFO - User created: "OK"
2024-04-13 18:28:34,290 - TEST - INFO - ##### Unknown user remove test #####
2024-04-13 18:28:34,291 - TEST - INFO - [dev] => { 'user/remove' : 'OpkS5cZ5++97UaInKHaPPd8u1YI3ejAE' }
2024-04-13 18:29:04,294 - TEST - INFO - Error was returned as planned
2024-04-13 18:29:04,296 - TEST - INFO - ##### Known user remove test #####
2024-04-13 18:29:04,297 - TEST - INFO - Create user: sympathetic.barbara@x.ks.ua pwd: otqy5d3l user_id: c8ff6192ad4f98d75e221b7e3e6088de5d41afd3a09a7831116821ea5a4a308a
2024-04-13 18:29:04,299 - TEST - INFO - [dev] => { 'user/add' : 'jvWVojW2qdVSjieiFSlfCCshBWDhiRES' }
2024-04-13 18:29:04,308 - TEST - INFO - OP take: 0.003 ms
2024-04-13 18:29:04,309 - TEST - INFO - User created: "OK"
2024-04-13 18:29:04,310 - TEST - INFO - [dev] => { 'user/remove' : 'jvWVojW2qdVSjieiFSlfCCshBWDhiRES' }
2024-04-13 18:29:04,356 - TEST - INFO - OP take: 43.211 ms
2024-04-13 18:29:04,357 - TEST - INFO - User removed. OK
2024-04-13 18:29:04,357 - TEST - INFO - ##### Known user remove without permissions test #####
2024-04-13 18:29:04,357 - TEST - INFO - Create user: charming.mary@i.ua pwd: y6lie7gh user_id: 6f474135baabc50b25a8aedfad8f18a58a2c614b6eddd75775bcf35dd0cdab04
2024-04-13 18:29:04,357 - TEST - INFO - [dev] => { 'user/add' : 'QIyuaUAm5tHQtb1FFiL/06Z0WGetkfsL' }
2024-04-13 18:29:04,409 - TEST - INFO - OP take: 50.805 ms
2024-04-13 18:29:04,410 - TEST - INFO - User created: "OK"
2024-04-13 18:29:04,411 - TEST - INFO - [dev] => { 'user/remove' : 'GBarXFJUdTXCrTQwFo5BSI5nOcv4j6V4' }
2024-04-13 18:29:34,413 - TEST - INFO - Error was returned as planned
2024-04-13 18:29:34,413 - TEST - INFO - ##### Removing myself test #####
2024-04-13 18:29:34,414 - TEST - INFO - [dev] => { 'user/remove' : 't4A0rgiyQGewXHe34p0tZrReXsqBu0Ll' }
2024-04-13 18:30:04,416 - TEST - INFO - Error was returned as planned
2024-04-13 18:30:04,424 - TEST - WARNING - Disconecting from broker
2024-04-13 18:30:04,425 - TEST - WARNING - Disconecting from broker