Test Report : TEST-user_remove_test-20231210165846.xml

  • user_remove_test

Test Suite: user_remove_test-20231210165846

Results

Duration93.527 sec
Tests1
Failures0

Tests

user_remove_test

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

Suite stdout:

[1702227526357] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1702227526357]  [DBG] DEV-3996365522  enter <function device_base.set_hub at 0x7f45d0229800> (<uclient.hub.HUB object at 0x7f45cf540410>,)
[1702227526357]  [DBG] DEV-3996365522  exit <function device_base.set_hub at 0x7f45d0229800> ret: None
[1702227526357]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f45cf6caf20> ('<48:3f:da:55:07:5b/status', '-1')
[1702227526357]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f45cf6caf20> ret: None
[1702227526357]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f45cf67f100> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f45cf540410>>,)
[1702227526357]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f45cf67f100> ret: None
[1702227526357]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f45cf6cb060> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f45cf540410>>,)
[1702227526357]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f45cf6cb060> ret: None
[1702227526357] [WARN] HUB  Try to connect without uri-schema
[1702227526358]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f45cf719760> ('x.ks.ua',)
[1702227527361] [INFO] HUB  Connected
[1702227527362]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f45cf719f80> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f45cf540410>>)
[1702227527403]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f45cf719f80> ret: None
[1702227527404]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f45cf719f80> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f45cf540410>>)
[1702227527447]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f45cf719f80> ret: None
[1702227527447] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1702227527447]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f45cf719f80> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f45cf540410>>)
[1702227527491]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f45cf719f80> ret: None
[1702227527491] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1702227527491]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f45cf719f80> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f45cf540410>>)
[1702227527535]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f45cf719f80> ret: None
[1702227527535] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1702227527535]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f45cf719f80> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f45cf540410>>)
[1702227527579]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f45cf719f80> ret: None
[1702227527579] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1702227527579]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f45cf719f80> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f45cf540410>>)
[1702227527623]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f45cf719f80> ret: None
[1702227527623] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1702227527623]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f45cf719f80> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f45cf540410>>)
[1702227527667]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f45cf719f80> ret: None
[1702227527667]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f45cf719760> ret: None
[1702227527668]  [DBG] HUB  Step, state: 0 (next: 1702227528668)
[1702227527668] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1702227527668]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f45cf719e40> ('/reg', '48:3f:da:55:07:5b')
[1702227527711]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f45cf719e40> ret: None
[1702227527755] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1702227527713 }
[1702227527755] [INFO] HUB  Registration finish, time: 1702227527713
[1702227527755]  [DBG] DEV-3996365522  enter <function device_base.register at 0x7f45d0229d00> (1702227527,)
[1702227527755] [INFO] DEV-3996365522  Device 3996365522 registration on the server @ 1702227527
[1702227527755] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1702227527755]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f45cf719f80> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f45cf540410>>)
[1702227527799]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f45cf719f80> ret: None
[1702227527799]  [DBG] DEV-3996365522  exit <function device_base.register at 0x7f45d0229d00> ret: None
[1702227528668]  [DBG] HUB  Step, state: 1 (next: 1702227529668)
[1702227528668]  [DBG] DEV-3996365522  enter <function device_base.info_req at 0x7f45d022a5c0> ()
[1702227528668]  [DBG] DEV-3996365522  exit <function device_base.info_req at 0x7f45d022a5c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1702227527}}
[1702227528668] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231210;master;e46d1687d9b13615140f1b18b85d3462da1a4742", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1702227527}}]} }
[1702227528668]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f45cf719e40> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231210;master;e46d1687d9b13615140f1b18b85d3462da1a4742", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1702227527}}]}')
[1702227528668]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f45cf719e40> ret: None
[1702227528691] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1702227528692] [INFO] DEV-3996365522  User created. User count: 1
[1702227528692] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1702227528692]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f45cf719e40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1702227528692]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f45cf719e40> ret: None
[1702227529745] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "dcaRo1A2vy5Y17rxl/hTFkSGFI4kVS75gW4HakTXavj1IK5iD+8BKuwfQ7ykHakz.HWVRngy67n1bZS074Md2Khbkj8utZ6UYjcBS7nP6feI=" }
[1702227559749] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "JBj1fJPNcjyN0UZsH1uelweAkMVAoviKOMBI33PvDSc+3vv3Kk/Bhzvz25WwzZXe0GahT0GdkDbmJgs2NS5ELoBfnw+IW0Xe47bOjW7RAhOW9+wkQ6DHUgY8lC3Q+SkmMwN4wDcy3ytCjL0mGNDvZw==.MZEUiR6F3t7c35TubUcJPWpQ9a09/gZ2P9qPA/P1uRc=" }
[1702227559750] [INFO] DEV-3996365522  User created. User count: 2
[1702227559750] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1702227559750]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f45cf719e40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1702227559750]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f45cf719e40> ret: None
[1702227559756] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "JBj1fJPNcjyN0UZsH1uelweAkMVAoviKOMBI33PvDSfLeRyRPyhV9FUujK0Pn+yQ.5mGe9n1GhyfR1zJAxUkCBBTijcHrpr0szifMICqX0VU=" }
[1702227559756] [INFO] HUB  Publish message: { topic: 3996365522/user/remove, value: "LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng=" }
[1702227559756]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f45cf719e40> ('<48:3f:da:55:07:5b/3996365522/user/remove', '"LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng="')
[1702227559756]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f45cf719e40> ret: None
[1702227559809] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "PyqRRAjVRhmzVVyXSSfr4BbNss3A65pgGERBUqBIBTNrOqMC0RrWK2fi7FK0LKCx651S1fWElHtH2fSMbEPopHZqRsOe0pm7Zuv93qq5MYxZLEyPz2MmyXSW3XJKPffnifkHI4de2qWmgosF3i4wrQ==.13wUXLJKj9AjDyCsZA/09/U7IPBqwQkf6EzEbwxi2F4=" }
[1702227559810] [INFO] DEV-3996365522  User created. User count: 2
[1702227559810] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1702227559810]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f45cf719e40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1702227559810]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f45cf719e40> ret: None
[1702227559863] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "/9FC2H1DAYSV4Z2q4QqyN9jOJsNZId/lu4gWzWFh7cwY3EAjuFlwB0uqa2VChPQ4.jO2NZsMqMOKuRDJKuEqpyK+/0jgdTZhFb+xLww4Xe/A=" }
[1702227559863]  [ERR] DEV-3996365522  User (charming.william@i.ua (627ac1fcd3b09846e3cf2e55b4783eae596e371782ac7a787603d2bade238975)) don't have permission to remove users
[1702227588668]  [DBG] HUB  Step, state: 2 (next: 1702227648668)
[1702227588668] [INFO] HUB  Publish message: { topic: status, value: 4 }
[1702227588668]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f45cf719e40> ('/48:3f:da:55:07:5b/status', 4)
[1702227588668]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f45cf719e40> ret: None
[1702227588668]  [DBG] DEV-3996365522  enter <function device_base.publish_status at 0x7f45d0229bc0> ()
[1702227588668] [INFO] HUB  Publish message: { topic: 3996365522/status, value: 4 }
[1702227588668]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f45cf719e40> ('<48:3f:da:55:07:5b/3996365522/status', 4)
[1702227588668]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f45cf719e40> ret: None
[1702227588668]  [DBG] DEV-3996365522  exit <function device_base.publish_status at 0x7f45d0229bc0> ret: None
[1702227589867] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "t4A0rgiyQGewXHe34p0tZrReXsqBu0LlUs2Clpw24bhRVXnIoHyWsb2dhIHDSV9E.gRC+lb9eqDYZntPUQiKgAQBJYvrm831Q8+Qa4N+Dsu0=" }
[1702227589867]  [ERR] DEV-3996365522  User can't remove himself
[1702227619869]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f45cf71a200> ()
[1702227619869]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f45cf71a200> ret: None
[1702227619872] [WARN] HUB  Disconecting from broker

Suite stderr:

2023-12-10 16:58:48,678 - TEST - INFO - OP take: 1010.058 ms
2023-12-10 16:58:48,686 - TEST - INFO - Connected with result code: 0
2023-12-10 16:58:48,691 - TEST - INFO - OP take: 10.067 ms
2023-12-10 16:58:48,691 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2023-12-10 16:58:48,691 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2023-12-10 16:58:48,742 - TEST - INFO - OP take: 50.535 ms
2023-12-10 16:58:48,743 - TEST - INFO - User created: "OK"
2023-12-10 16:58:49,744 - TEST - INFO - ##### Unknown user remove test #####
2023-12-10 16:58:49,745 - TEST - INFO - [dev] => { 'user/remove' : 'dcaRo1A2vy5Y17rxl/hTFkSGFI4kVS75' }
2023-12-10 16:59:19,747 - TEST - INFO - Error was returned as planned
2023-12-10 16:59:19,747 - TEST - INFO - ##### Known user remove test #####
2023-12-10 16:59:19,748 - TEST - INFO - Create user: charming.mary@vegaiot.com pwd: xtdejren user_id: 8d1ba365e2aebb8a5fa1b8d58e67d2caf7ee51aa4ebc299ef2dfbfc69a5b68ca
2023-12-10 16:59:19,748 - TEST - INFO - [dev] => { 'user/add' : 'JBj1fJPNcjyN0UZsH1uelweAkMVAoviK' }
2023-12-10 16:59:19,753 - TEST - INFO - OP take: 0.003 ms
2023-12-10 16:59:19,754 - TEST - INFO - User created: "OK"
2023-12-10 16:59:19,755 - TEST - INFO - [dev] => { 'user/remove' : 'JBj1fJPNcjyN0UZsH1uelweAkMVAoviK' }
2023-12-10 16:59:19,807 - TEST - INFO - OP take: 50.578 ms
2023-12-10 16:59:19,807 - TEST - INFO - User removed. OK
2023-12-10 16:59:19,808 - TEST - INFO - ##### Known user remove without permissions test #####
2023-12-10 16:59:19,808 - TEST - INFO - Create user: charming.william@i.ua pwd: g3l94ayc user_id: 627ac1fcd3b09846e3cf2e55b4783eae596e371782ac7a787603d2bade238975
2023-12-10 16:59:19,808 - TEST - INFO - [dev] => { 'user/add' : 'PyqRRAjVRhmzVVyXSSfr4BbNss3A65pg' }
2023-12-10 16:59:19,861 - TEST - INFO - OP take: 50.772 ms
2023-12-10 16:59:19,862 - TEST - INFO - User created: "OK"
2023-12-10 16:59:19,862 - TEST - INFO - [dev] => { 'user/remove' : '/9FC2H1DAYSV4Z2q4QqyN9jOJsNZId/l' }
2023-12-10 16:59:49,864 - TEST - INFO - Error was returned as planned
2023-12-10 16:59:49,865 - TEST - INFO - ##### Removing myself test #####
2023-12-10 16:59:49,866 - TEST - INFO - [dev] => { 'user/remove' : 't4A0rgiyQGewXHe34p0tZrReXsqBu0Ll' }
2023-12-10 17:00:19,868 - TEST - INFO - Error was returned as planned
2023-12-10 17:00:19,878 - TEST - WARNING - Disconecting from broker
2023-12-10 17:00:19,884 - TEST - WARNING - Disconecting from broker