Test Report : TEST-user_remove_test-20231108215149.xml

  • user_remove_test

Test Suite: user_remove_test-20231108215149

Results

Duration93.511 sec
Tests1
Failures0

Tests

user_remove_test

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

Suite stdout:

[1699480309544] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1699480309544]  [DBG] DEV-3996365522  enter <function device_base.set_hub at 0x7f61b1429800> (<uclient.hub.HUB object at 0x7f61b0a5bd10>,)
[1699480309544]  [DBG] DEV-3996365522  exit <function device_base.set_hub at 0x7f61b1429800> ret: None
[1699480309544]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f61b087efc0> ('<48:3f:da:55:07:5b/status', '-1')
[1699480309544]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f61b087efc0> ret: None
[1699480309544]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f61b091a340> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f61b0a5bd10>>,)
[1699480309544]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f61b091a340> ret: None
[1699480309544]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f61b087f1a0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f61b0a5bd10>>,)
[1699480309544]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f61b087f1a0> ret: None
[1699480309544]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f61b0919760> ('x.ks.ua', 1883)
[1699480310548] [INFO] HUB  Connected
[1699480310548]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f61b0919f80> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f61b0a5bd10>>)
[1699480310592]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f61b0919f80> ret: None
[1699480310592]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f61b0919f80> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f61b0a5bd10>>)
[1699480310637]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f61b0919f80> ret: None
[1699480310637] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1699480310637]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f61b0919f80> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f61b0a5bd10>>)
[1699480310681]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f61b0919f80> ret: None
[1699480310681] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1699480310681]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f61b0919f80> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f61b0a5bd10>>)
[1699480310724]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f61b0919f80> ret: None
[1699480310724] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1699480310724]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f61b0919f80> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f61b0a5bd10>>)
[1699480310769]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f61b0919f80> ret: None
[1699480310769] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1699480310769]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f61b0919f80> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f61b0a5bd10>>)
[1699480310812]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f61b0919f80> ret: None
[1699480310813] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1699480310813]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f61b0919f80> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f61b0a5bd10>>)
[1699480310856]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f61b0919f80> ret: None
[1699480310856]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f61b0919760> ret: None
[1699480310857]  [DBG] HUB  Step, state: 0 (next: 1699480311857)
[1699480310857] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1699480310857]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f61b0919e40> ('/reg', '48:3f:da:55:07:5b')
[1699480310901]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f61b0919e40> ret: None
[1699480310944] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1699480310903 }
[1699480310944] [INFO] HUB  Registration finish, time: 1699480310903
[1699480310944]  [DBG] DEV-3996365522  enter <function device_base.register at 0x7f61b1429d00> (1699480310,)
[1699480310944] [INFO] DEV-3996365522  Device 3996365522 registration on the server @ 1699480310
[1699480310944] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1699480310944]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f61b0919f80> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f61b0a5bd10>>)
[1699480310988]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f61b0919f80> ret: None
[1699480310988]  [DBG] DEV-3996365522  exit <function device_base.register at 0x7f61b1429d00> ret: None
[1699480311857]  [DBG] HUB  Step, state: 1 (next: 1699480312857)
[1699480311857]  [DBG] DEV-3996365522  enter <function device_base.info_req at 0x7f61b142a5c0> ()
[1699480311857]  [DBG] DEV-3996365522  exit <function device_base.info_req at 0x7f61b142a5c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1699480310}}
[1699480311857] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231102;master;e9b306c7e765ddf633df5089542fbb0d0e965da4", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1699480310}}]} }
[1699480311857]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f61b0919e40> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231102;master;e9b306c7e765ddf633df5089542fbb0d0e965da4", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1699480310}}]}')
[1699480311857]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f61b0919e40> ret: None
[1699480311875] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1699480311876] [INFO] DEV-3996365522  User created. User count: 1
[1699480311877] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1699480311877]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f61b0919e40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1699480311877]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f61b0919e40> ret: None
[1699480312926] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "FwbhsJ4mLJJgpK7uNcfZuGGNZHYNLusfXtwi1h8ojZJAfFW5rLPF/MgOvNQYdPb+.YlhlslU02jJs0CpJcMcmWlJMybTUOwJzKxI2F9b2X+A=" }
[1699480342937] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "C1Xs8+tsCuibtCocQ7wayT8s1qds0aIKITHN4QPAThlfbshAIsPVk9HxLc9xuk1miin7k+6Fn7+pXHjqbOmI4W31uXNCefb78+fYtbmExTWlyT+YL4RuUhSLlPJz4JmWgpENOzAWNNLP2hIJhj1O+w==.sY85hIe48bnmA8NNGYOOBTx7jNscZd4vm7wPps3bg5g=" }
[1699480342938] [INFO] DEV-3996365522  User created. User count: 2
[1699480342938] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1699480342938]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f61b0919e40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1699480342938]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f61b0919e40> ret: None
[1699480342944] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "C1Xs8+tsCuibtCocQ7wayT8s1qds0aIKITHN4QPAThnltf3OftKDLcj38H+j0lTH.HAvVe70sOmoDLnIX8/NUV5yTEwaHFfm5zWEl4oyRwQA=" }
[1699480342944] [INFO] HUB  Publish message: { topic: 3996365522/user/remove, value: "LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng=" }
[1699480342946]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f61b0919e40> ('<48:3f:da:55:07:5b/3996365522/user/remove', '"LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng="')
[1699480342946]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f61b0919e40> ret: None
[1699480342992] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "ng6ygjBOL3DDRZQjVs1tPSJykpw1nW9bwXsD2l1nXoYrwpK0NdF30laS3BLqcVJP8J2TvrXcYLpj+dqg0vm4gjbugupbUyeecYUx/+tuggS/Dqz5WIlEHp1vpNE4TKK5nzj3HsITztORGqKDs8UNEg==.4y9s/Hp5ZrtpDMMi8Pg0hYYTQPsD/ZxkriAzfmo18Og=" }
[1699480342993] [INFO] DEV-3996365522  User created. User count: 2
[1699480342993] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1699480342993]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f61b0919e40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1699480342993]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f61b0919e40> ret: None
[1699480343044] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "BFCNch12YXTmbRkmPA+8scUgEVGfjiUh6tnd/5s8azOqElJYM0yS2/Aje0uqlyYU.ec7q15yxW7k+tnXHVjm4mcwql+sMIRdbdJcbspzFfmI=" }
[1699480343044]  [ERR] DEV-3996365522  User (amiable.robert@vegaiot.com (765dc5658fcc3c5be64e8ec9203c79ac5943b2a854f651a0fc12195d666e8517)) don't have permission to remove users
[1699480371857]  [DBG] HUB  Step, state: 2 (next: 1699480431857)
[1699480371857] [INFO] HUB  Publish message: { topic: status, value: 4 }
[1699480371857]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f61b0919e40> ('/48:3f:da:55:07:5b/status', 4)
[1699480371857]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f61b0919e40> ret: None
[1699480371857]  [DBG] DEV-3996365522  enter <function device_base.publish_status at 0x7f61b1429bc0> ()
[1699480371857] [INFO] HUB  Publish message: { topic: 3996365522/status, value: 4 }
[1699480371857]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f61b0919e40> ('<48:3f:da:55:07:5b/3996365522/status', 4)
[1699480371857]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f61b0919e40> ret: None
[1699480371857]  [DBG] DEV-3996365522  exit <function device_base.publish_status at 0x7f61b1429bc0> ret: None
[1699480373048] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "t4A0rgiyQGewXHe34p0tZrReXsqBu0LlUs2Clpw24bhRVXnIoHyWsb2dhIHDSV9E.gRC+lb9eqDYZntPUQiKgAQBJYvrm831Q8+Qa4N+Dsu0=" }
[1699480373049]  [ERR] DEV-3996365522  User can't remove himself
[1699480403050]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f61b091a200> ()
[1699480403052]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f61b091a200> ret: None
[1699480403055] [WARN] HUB  Disconecting from broker

Suite stderr:

2023-11-08 21:51:51,863 - TEST - INFO - OP take: 1005.543 ms
2023-11-08 21:51:51,867 - TEST - INFO - Connected with result code: 0
2023-11-08 21:51:51,874 - TEST - INFO - OP take: 10.13 ms
2023-11-08 21:51:51,875 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2023-11-08 21:51:51,875 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2023-11-08 21:51:51,921 - TEST - INFO - OP take: 40.602 ms
2023-11-08 21:51:51,922 - TEST - INFO - User created: "OK"
2023-11-08 21:51:52,924 - TEST - INFO - ##### Unknown user remove test #####
2023-11-08 21:51:52,925 - TEST - INFO - [dev] => { 'user/remove' : 'FwbhsJ4mLJJgpK7uNcfZuGGNZHYNLusf' }
2023-11-08 21:52:22,931 - TEST - INFO - Error was returned as planned
2023-11-08 21:52:22,933 - TEST - INFO - ##### Known user remove test #####
2023-11-08 21:52:22,934 - TEST - INFO - Create user: gregarious.jennifer@vegaiot.com pwd: snb9rh44 user_id: febc7c12229bc7f08216369a79f2bd27af1e5f2fed748c960eca5e79c99f3d92
2023-11-08 21:52:22,935 - TEST - INFO - [dev] => { 'user/add' : 'C1Xs8+tsCuibtCocQ7wayT8s1qds0aIK' }
2023-11-08 21:52:22,943 - TEST - INFO - OP take: 0.003 ms
2023-11-08 21:52:22,943 - TEST - INFO - User created: "OK"
2023-11-08 21:52:22,943 - TEST - INFO - [dev] => { 'user/remove' : 'C1Xs8+tsCuibtCocQ7wayT8s1qds0aIK' }
2023-11-08 21:52:22,990 - TEST - INFO - OP take: 44.815 ms
2023-11-08 21:52:22,990 - TEST - INFO - User removed. OK
2023-11-08 21:52:22,991 - TEST - INFO - ##### Known user remove without permissions test #####
2023-11-08 21:52:22,991 - TEST - INFO - Create user: amiable.robert@vegaiot.com pwd: axis5i5q user_id: 765dc5658fcc3c5be64e8ec9203c79ac5943b2a854f651a0fc12195d666e8517
2023-11-08 21:52:22,991 - TEST - INFO - [dev] => { 'user/add' : 'ng6ygjBOL3DDRZQjVs1tPSJykpw1nW9b' }
2023-11-08 21:52:23,042 - TEST - INFO - OP take: 50.664 ms
2023-11-08 21:52:23,043 - TEST - INFO - User created: "OK"
2023-11-08 21:52:23,043 - TEST - INFO - [dev] => { 'user/remove' : 'BFCNch12YXTmbRkmPA+8scUgEVGfjiUh' }
2023-11-08 21:52:53,045 - TEST - INFO - Error was returned as planned
2023-11-08 21:52:53,045 - TEST - INFO - ##### Removing myself test #####
2023-11-08 21:52:53,046 - TEST - INFO - [dev] => { 'user/remove' : 't4A0rgiyQGewXHe34p0tZrReXsqBu0Ll' }
2023-11-08 21:53:23,047 - TEST - INFO - Error was returned as planned
2023-11-08 21:53:23,052 - TEST - WARNING - Disconecting from broker