Test Report : TEST-user_remove_test-20240120190235.xml

  • user_remove_test

Test Suite: user_remove_test-20240120190235

Results

Duration93.53 sec
Tests1
Failures0

Tests

user_remove_test

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

Suite stdout:

[1705777355089] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1705777355089]  [DBG] DEV-3996365522  enter <function device_base.set_hub at 0x7f408bf3d800> (<uclient.hub.HUB object at 0x7f408b789b10>,)
[1705777355089]  [DBG] DEV-3996365522  exit <function device_base.set_hub at 0x7f408bf3d800> ret: None
[1705777355089]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f408b3e6f20> ('<48:3f:da:55:07:5b/status', '-1')
[1705777355089]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f408b3e6f20> ret: None
[1705777355089]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f408b39b100> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f408b789b10>>,)
[1705777355089]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f408b39b100> ret: None
[1705777355089]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f408b3e7060> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f408b789b10>>,)
[1705777355089]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f408b3e7060> ret: None
[1705777355089] [WARN] HUB  Try to connect without uri-schema
[1705777355089]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f408b435760> ('x.ks.ua',)
[1705777356093] [INFO] HUB  Connected
[1705777356093]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f408b435f80> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f408b789b10>>)
[1705777356135]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f408b435f80> ret: None
[1705777356136]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f408b435f80> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f408b789b10>>)
[1705777356179]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f408b435f80> ret: None
[1705777356179] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1705777356179]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f408b435f80> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f408b789b10>>)
[1705777356223]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f408b435f80> ret: None
[1705777356223] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1705777356223]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f408b435f80> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f408b789b10>>)
[1705777356267]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f408b435f80> ret: None
[1705777356267] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1705777356267]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f408b435f80> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f408b789b10>>)
[1705777356311]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f408b435f80> ret: None
[1705777356311] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1705777356311]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f408b435f80> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f408b789b10>>)
[1705777356355]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f408b435f80> ret: None
[1705777356355] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1705777356355]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f408b435f80> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f408b789b10>>)
[1705777356399]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f408b435f80> ret: None
[1705777356399]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f408b435760> ret: None
[1705777356400]  [DBG] HUB  Step, state: 0 (next: 1705777357400)
[1705777356400] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1705777356400]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f408b435e40> ('/reg', '48:3f:da:55:07:5b')
[1705777356444]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f408b435e40> ret: None
[1705777356487] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1705777356445 }
[1705777356487] [INFO] HUB  Registration finish, time: 1705777356445
[1705777356487]  [DBG] DEV-3996365522  enter <function device_base.register at 0x7f408bf3dd00> (1705777356,)
[1705777356487] [INFO] DEV-3996365522  Device 3996365522 registration on the server @ 1705777356
[1705777356487] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1705777356487]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f408b435f80> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f408b789b10>>)
[1705777356531]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f408b435f80> ret: None
[1705777356531]  [DBG] DEV-3996365522  exit <function device_base.register at 0x7f408bf3dd00> ret: None
[1705777357400]  [DBG] HUB  Step, state: 1 (next: 1705777358400)
[1705777357400]  [DBG] DEV-3996365522  enter <function device_base.info_req at 0x7f408bf3e5c0> ()
[1705777357400]  [DBG] DEV-3996365522  exit <function device_base.info_req at 0x7f408bf3e5c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1705777356}}
[1705777357400] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231119;master;c5493d6a3d66a18e791cea35edb8dfef668730bf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1705777356}}]} }
[1705777357400]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f408b435e40> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231119;master;c5493d6a3d66a18e791cea35edb8dfef668730bf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1705777356}}]}')
[1705777357400]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f408b435e40> ret: None
[1705777357423] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1705777357425] [INFO] DEV-3996365522  User created. User count: 1
[1705777357425] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1705777357425]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f408b435e40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1705777357426]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f408b435e40> ret: None
[1705777358478] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "Ie82wxabEs5lBc0dgrE6ikt8niYmp3wWfrLNaXJ+j/AvuKR6Mj6YsBSw6sz06Qld.bN1k5Qtllfs8dqUVLTqi337wnq0JVkDTBwbYGxlCFQI=" }
[1705777388488] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "SI1rVMscg3EI5n+7kZcrGZB0uSH07n41lOrk48moBdh6hrTcqA0WgoNYK8Y6YL9W3XfOUw0w/8EGyuQ2JlEMOb+YnanpsNLGSTS3AZfTXJSHsa08M2ej/GVDriLn3Q/yiADN6g3tb9OX5N2te5ZNHQ==.krtnBFeGIOBXYn83Qkf5vc8pNSsjV8/TTrbIFBrC/Ek=" }
[1705777388490] [INFO] DEV-3996365522  User created. User count: 2
[1705777388490] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1705777388490]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f408b435e40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1705777388490]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f408b435e40> ret: None
[1705777388500] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "SI1rVMscg3EI5n+7kZcrGZB0uSH07n41lOrk48moBdgtBfCySIy//Vx5jmLUUbdW.95pnEFF+alAW/iyIzH8YlIQtfx2a9ATCP6Ed65OV2zk=" }
[1705777388501] [INFO] HUB  Publish message: { topic: 3996365522/user/remove, value: "LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng=" }
[1705777388501]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f408b435e40> ('<48:3f:da:55:07:5b/3996365522/user/remove', '"LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng="')
[1705777388501]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f408b435e40> ret: None
[1705777388553] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "tH5NifxNCjfgstJc7ppardAjlP1v0A0mcmCTr3KlefitJsCOZVuJg77doSxVSDiKzYj34IrVLUvMWVbf6luEXT+pgnDuVFoByz7B6GdHXm97DkYiKGGeLW70Sz84idSZwq+7UjCJAZMFyDnRnGwXmw==.iFgGnzEMowevUMuUCeFKNwG9ko0vlqIOAx9eIg27sYE=" }
[1705777388555] [INFO] DEV-3996365522  User created. User count: 2
[1705777388555] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1705777388555]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f408b435e40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1705777388555]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f408b435e40> ret: None
[1705777388606] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "GdK0lJUmtuX8eYgl/ryAq24HTWEeFQZdVpxl4Vzv83ql8l0MvlC5l0RSFmIXAHXG./Iq1S6ECDyuSk5/0+A+1OlyDqZMvV984n5XjpkmJHC8=" }
[1705777388607]  [ERR] DEV-3996365522  User (considerate.elizabeth@x.ks.ua (f2b6e27a3f142452005bc4d6ea5c70afb418eee6865964551b16e3d23b548922)) don't have permission to remove users
[1705777417400]  [DBG] HUB  Step, state: 2 (next: 1705777477400)
[1705777417400] [INFO] HUB  Publish message: { topic: status, value: 4 }
[1705777417400]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f408b435e40> ('/48:3f:da:55:07:5b/status', 4)
[1705777417400]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f408b435e40> ret: None
[1705777417400]  [DBG] DEV-3996365522  enter <function device_base.publish_status at 0x7f408bf3dbc0> ()
[1705777417400] [INFO] HUB  Publish message: { topic: 3996365522/status, value: 4 }
[1705777417400]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f408b435e40> ('<48:3f:da:55:07:5b/3996365522/status', 4)
[1705777417400]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f408b435e40> ret: None
[1705777417400]  [DBG] DEV-3996365522  exit <function device_base.publish_status at 0x7f408bf3dbc0> ret: None
[1705777418610] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "t4A0rgiyQGewXHe34p0tZrReXsqBu0LlUs2Clpw24bhRVXnIoHyWsb2dhIHDSV9E.gRC+lb9eqDYZntPUQiKgAQBJYvrm831Q8+Qa4N+Dsu0=" }
[1705777418610]  [ERR] DEV-3996365522  User can't remove himself
[1705777448615]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f408b436200> ()
[1705777448617] [WARN] HUB  Disconecting from broker
[1705777448617] [WARN] MQTT  Reconnecting in 1s
[1705777448617]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f408b436200> ret: None

Suite stderr:

2024-01-20 19:02:37,408 - TEST - INFO - OP take: 1008.501 ms
2024-01-20 19:02:37,415 - TEST - INFO - Connected with result code: 0
2024-01-20 19:02:37,421 - TEST - INFO - OP take: 10.107 ms
2024-01-20 19:02:37,421 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2024-01-20 19:02:37,421 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2024-01-20 19:02:37,475 - TEST - INFO - OP take: 50.704 ms
2024-01-20 19:02:37,476 - TEST - INFO - User created: "OK"
2024-01-20 19:02:38,477 - TEST - INFO - ##### Unknown user remove test #####
2024-01-20 19:02:38,477 - TEST - INFO - [dev] => { 'user/remove' : 'Ie82wxabEs5lBc0dgrE6ikt8niYmp3wW' }
2024-01-20 19:03:08,481 - TEST - INFO - Error was returned as planned
2024-01-20 19:03:08,483 - TEST - INFO - ##### Known user remove test #####
2024-01-20 19:03:08,484 - TEST - INFO - Create user: amiable.john@hotmail.com pwd: pgdan95x user_id: 0d7d841d1d6989e37b292533e4b2b6b4ae892a5b480de366728fbda056cac51c
2024-01-20 19:03:08,487 - TEST - INFO - [dev] => { 'user/add' : 'SI1rVMscg3EI5n+7kZcrGZB0uSH07n41' }
2024-01-20 19:03:08,498 - TEST - INFO - OP take: 10.091 ms
2024-01-20 19:03:08,499 - TEST - INFO - User created: "OK"
2024-01-20 19:03:08,499 - TEST - INFO - [dev] => { 'user/remove' : 'SI1rVMscg3EI5n+7kZcrGZB0uSH07n41' }
2024-01-20 19:03:08,551 - TEST - INFO - OP take: 50.701 ms
2024-01-20 19:03:08,552 - TEST - INFO - User removed. OK
2024-01-20 19:03:08,552 - TEST - INFO - ##### Known user remove without permissions test #####
2024-01-20 19:03:08,552 - TEST - INFO - Create user: considerate.elizabeth@x.ks.ua pwd: mwpv7f9o user_id: f2b6e27a3f142452005bc4d6ea5c70afb418eee6865964551b16e3d23b548922
2024-01-20 19:03:08,552 - TEST - INFO - [dev] => { 'user/add' : 'tH5NifxNCjfgstJc7ppardAjlP1v0A0m' }
2024-01-20 19:03:08,605 - TEST - INFO - OP take: 50.582 ms
2024-01-20 19:03:08,605 - TEST - INFO - User created: "OK"
2024-01-20 19:03:08,606 - TEST - INFO - [dev] => { 'user/remove' : 'GdK0lJUmtuX8eYgl/ryAq24HTWEeFQZd' }
2024-01-20 19:03:38,607 - TEST - INFO - Error was returned as planned
2024-01-20 19:03:38,608 - TEST - INFO - ##### Removing myself test #####
2024-01-20 19:03:38,609 - TEST - INFO - [dev] => { 'user/remove' : 't4A0rgiyQGewXHe34p0tZrReXsqBu0Ll' }
2024-01-20 19:04:08,614 - TEST - INFO - Error was returned as planned
2024-01-20 19:04:08,618 - TEST - WARNING - Disconecting from broker