Test Report : TEST-user_remove_test-20240407050138.xml

  • user_remove_test

Test Suite: user_remove_test-20240407050138

Results

Duration93.548 sec
Tests1
Failures0

Tests

user_remove_test

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

Suite stdout:

[1712466098865] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1712466098865]  [DBG] DEV-3996365522  enter <function device_base.set_hub at 0x7f7f7d5e9800> (<uclient.hub.HUB object at 0x7f7f7d72a950>,)
[1712466098865]  [DBG] DEV-3996365522  exit <function device_base.set_hub at 0x7f7f7d5e9800> ret: None
[1712466098865]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f7f7ca927a0> ('<48:3f:da:55:07:5b/status', '-1')
[1712466098865]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f7f7ca927a0> ret: None
[1712466098865]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f7f7ca92a20> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f7f7d72a950>>,)
[1712466098865]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f7f7ca92a20> ret: None
[1712466098865]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f7f7ca928e0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f7f7d72a950>>,)
[1712466098865]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f7f7ca928e0> ret: None
[1712466098865] [WARN] HUB  Try to connect without uri-schema
[1712466098865]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f7f7ca93060> ('x.ks.ua',)
[1712466099871] [INFO] HUB  Connected
[1712466099871]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f7f7ca92de0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f7f7d72a950>>)
[1712466099914]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f7f7ca92de0> ret: None
[1712466099914]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f7f7ca92de0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f7f7d72a950>>)
[1712466099958]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f7f7ca92de0> ret: None
[1712466099958] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1712466099958]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f7f7ca92de0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f7f7d72a950>>)
[1712466100002]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f7f7ca92de0> ret: None
[1712466100002] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1712466100002]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f7f7ca92de0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f7f7d72a950>>)
[1712466100046]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f7f7ca92de0> ret: None
[1712466100046] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1712466100046]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f7f7ca92de0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f7f7d72a950>>)
[1712466100090]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f7f7ca92de0> ret: None
[1712466100090] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1712466100090]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f7f7ca92de0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f7f7d72a950>>)
[1712466100134]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f7f7ca92de0> ret: None
[1712466100134] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1712466100134]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f7f7ca92de0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f7f7d72a950>>)
[1712466100178]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f7f7ca92de0> ret: None
[1712466100178]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f7f7ca93060> ret: None
[1712466100179]  [DBG] HUB  Step, state: 0 (next: 1712466101179)
[1712466100179] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1712466100179]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f7f7ca92f20> ('/reg', '48:3f:da:55:07:5b')
[1712466100222]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f7f7ca92f20> ret: None
[1712466100266] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1712466100225 }
[1712466100266] [INFO] HUB  Registration finish, time: 1712466100225
[1712466100266]  [DBG] DEV-3996365522  enter <function device_base.register at 0x7f7f7d5e9d00> (1712466100,)
[1712466100266] [INFO] DEV-3996365522  Device 3996365522 registration on the server @ 1712466100
[1712466100266] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1712466100266]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f7f7ca92de0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f7f7d72a950>>)
[1712466100310]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f7f7ca92de0> ret: None
[1712466100310]  [DBG] DEV-3996365522  exit <function device_base.register at 0x7f7f7d5e9d00> ret: None
[1712466101179]  [DBG] HUB  Step, state: 1 (next: 1712466102179)
[1712466101179]  [DBG] DEV-3996365522  enter <function device_base.info_req at 0x7f7f7d5ea5c0> ()
[1712466101179]  [DBG] DEV-3996365522  exit <function device_base.info_req at 0x7f7f7d5ea5c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1712466100}}
[1712466101179] [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": 1712466100}}]} }
[1712466101179]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f7f7ca92f20> ('/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": 1712466100}}]}')
[1712466101179]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f7f7ca92f20> ret: None
[1712466101204] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1712466101206] [INFO] DEV-3996365522  User created. User count: 1
[1712466101207] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1712466101207]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f7f7ca92f20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1712466101207]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f7f7ca92f20> ret: None
[1712466102261] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "Os62oKq1B2POJvncTHzW8tnBJMfg7et+UMVAcVlB0fNnefe7vd8+f3thK2fv1PjA.LdSp33B1RZJxV3t3pCCLdFqbnsPZnxwCHw6eZe7KVH0=" }
[1712466132270] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "FsUnFtzmT7dn3DL0Nl63p7smHs4sWHBvCzFrXcTmEXVug0OJDbzUtvR0ZdY1c6LzNH8CKrtcEcTTWKjyALwuM70+77hDErx1R8gxzw0IXMsGGR3958/anqZtVXHe2zo+wZIBd3OKQ0EVQb2oQwa46Q==.p8BT0UEH6ZuRiTIkl2sU7DF5a6iEeBH0zaZSOaUBPLI=" }
[1712466132273] [INFO] DEV-3996365522  User created. User count: 2
[1712466132273] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1712466132273]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f7f7ca92f20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1712466132273]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f7f7ca92f20> ret: None
[1712466132283] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "FsUnFtzmT7dn3DL0Nl63p7smHs4sWHBvCzFrXcTmEXX3hquP+2eg5pVkxT42mA4B.KbbidhWIS2qLz20QX8nZJal7E17tBbHYzWyqMlmqjD4=" }
[1712466132284] [INFO] HUB  Publish message: { topic: 3996365522/user/remove, value: "LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng=" }
[1712466132285]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f7f7ca92f20> ('<48:3f:da:55:07:5b/3996365522/user/remove', '"LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng="')
[1712466132285]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f7f7ca92f20> ret: None
[1712466132335] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "W8nAsb5SmrZirVlESjdnNAIeglpXKsq2yapPNkfLOPfL+r5PCcZTTq0ENCL+LObeNPBcgSlh78Hl9+Hy7CJeLXPcGghPrBHq7YJ41/sPOMZcq8XD4jjppDd+BiLgeZzZTp9QvbVSogG0oYFNqn+WMg==.byIkjfbKAWRPMkMbFFboAlpXP2UOyEFVtFwOu9kAqLU=" }
[1712466132337] [INFO] DEV-3996365522  User created. User count: 2
[1712466132337] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1712466132337]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f7f7ca92f20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1712466132337]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f7f7ca92f20> ret: None
[1712466132388] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "fUFX7/pXlNatOYCl8KeijM9pr88uIsdyRwCV5LHPd+yuW55ZlgMW2G/nkyVUJB3j.FcbKT1ZZH887R7EztvhHkaS+uxi7NaDipC+HJmitzac=" }
[1712466132388]  [ERR] DEV-3996365522  User (affable.linda@hotmail.com (54aaf8fdb2cb1937b7ae237b37222433c5183ba01bde02923a83d266421ead14)) don't have permission to remove users
[1712466161179]  [DBG] HUB  Step, state: 2 (next: 1712466221179)
[1712466161179] [INFO] HUB  Publish message: { topic: status, value: 4 }
[1712466161179]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f7f7ca92f20> ('/48:3f:da:55:07:5b/status', 4)
[1712466161180]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f7f7ca92f20> ret: None
[1712466161180]  [DBG] DEV-3996365522  enter <function device_base.publish_status at 0x7f7f7d5e9bc0> ()
[1712466161180] [INFO] HUB  Publish message: { topic: 3996365522/status, value: 4 }
[1712466161180]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f7f7ca92f20> ('<48:3f:da:55:07:5b/3996365522/status', 4)
[1712466161180]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f7f7ca92f20> ret: None
[1712466161180]  [DBG] DEV-3996365522  exit <function device_base.publish_status at 0x7f7f7d5e9bc0> ret: None
[1712466162392] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "t4A0rgiyQGewXHe34p0tZrReXsqBu0LlUs2Clpw24bhRVXnIoHyWsb2dhIHDSV9E.gRC+lb9eqDYZntPUQiKgAQBJYvrm831Q8+Qa4N+Dsu0=" }
[1712466162392]  [ERR] DEV-3996365522  User can't remove himself
[1712466192397]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f7f7ca92b60> ()
[1712466192400]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f7f7ca92b60> ret: None
[1712466192400] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-04-07 05:01:41,186 - TEST - INFO - OP take: 1007.636 ms
2024-04-07 05:01:41,196 - TEST - INFO - Connected with result code: 0
2024-04-07 05:01:41,200 - TEST - INFO - OP take: 10.076 ms
2024-04-07 05:01:41,200 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2024-04-07 05:01:41,201 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2024-04-07 05:01:41,253 - TEST - INFO - OP take: 52.218 ms
2024-04-07 05:01:41,256 - TEST - INFO - User created: "OK"
2024-04-07 05:01:42,258 - TEST - INFO - ##### Unknown user remove test #####
2024-04-07 05:01:42,259 - TEST - INFO - [dev] => { 'user/remove' : 'Os62oKq1B2POJvncTHzW8tnBJMfg7et+' }
2024-04-07 05:02:12,266 - TEST - INFO - Error was returned as planned
2024-04-07 05:02:12,267 - TEST - INFO - ##### Known user remove test #####
2024-04-07 05:02:12,268 - TEST - INFO - Create user: considerate.john@i.ua pwd: 041sjzc0 user_id: 8c020d9ed9041e9961d319bd1acf101119e3656631e9a0b07a873983828e7c44
2024-04-07 05:02:12,269 - TEST - INFO - [dev] => { 'user/add' : 'FsUnFtzmT7dn3DL0Nl63p7smHs4sWHBv' }
2024-04-07 05:02:12,282 - TEST - INFO - OP take: 10.087 ms
2024-04-07 05:02:12,282 - TEST - INFO - User created: "OK"
2024-04-07 05:02:12,283 - TEST - INFO - [dev] => { 'user/remove' : 'FsUnFtzmT7dn3DL0Nl63p7smHs4sWHBv' }
2024-04-07 05:02:12,334 - TEST - INFO - OP take: 50.486 ms
2024-04-07 05:02:12,335 - TEST - INFO - User removed. OK
2024-04-07 05:02:12,335 - TEST - INFO - ##### Known user remove without permissions test #####
2024-04-07 05:02:12,335 - TEST - INFO - Create user: affable.linda@hotmail.com pwd: fvmjpg94 user_id: 54aaf8fdb2cb1937b7ae237b37222433c5183ba01bde02923a83d266421ead14
2024-04-07 05:02:12,335 - TEST - INFO - [dev] => { 'user/add' : 'W8nAsb5SmrZirVlESjdnNAIeglpXKsq2' }
2024-04-07 05:02:12,387 - TEST - INFO - OP take: 50.441 ms
2024-04-07 05:02:12,387 - TEST - INFO - User created: "OK"
2024-04-07 05:02:12,387 - TEST - INFO - [dev] => { 'user/remove' : 'fUFX7/pXlNatOYCl8KeijM9pr88uIsdy' }
2024-04-07 05:02:42,389 - TEST - INFO - Error was returned as planned
2024-04-07 05:02:42,390 - TEST - INFO - ##### Removing myself test #####
2024-04-07 05:02:42,391 - TEST - INFO - [dev] => { 'user/remove' : 't4A0rgiyQGewXHe34p0tZrReXsqBu0Ll' }
2024-04-07 05:03:12,396 - TEST - INFO - Error was returned as planned
2024-04-07 05:03:12,406 - TEST - WARNING - Disconecting from broker