RedHatQE / pylero

Python wrapper for the Polarion WSDL API
https://redhatqe.github.io/pylero/
MIT License
37 stars 25 forks source link

Add token config support #125

Closed waynesun09 closed 1 year ago

waynesun09 commented 1 year ago
waynesun09 commented 1 year ago

This is for issue: https://github.com/RedHatQE/pylero/issues/112

what's missing in this PR is when token provided while user name not provided in the config, it will fail the src/unit_tests/work_item_test.py as the user will be empty.

waynesun09 commented 1 year ago

Added new comment with related to get user name from the given token:

https://github.com/RedHatQE/pylero/issues/57#issuecomment-1454090535

currently got 500 error:

`suds.WebFault: Server raised fault: 'Not authorized.'

If we could not get user from the token, when run the test src/unit_tests/work_item_test.py user name will also need be provided in the cfg.

KwisatzHaderach commented 1 year ago

One more thing, please update the README as well to reflect this addition...and the docs unless they are generated from the README.

waynesun09 commented 1 year ago

One more thing, please update the README as well to reflect this addition...and the docs unless they are generated from the README.

Thanks, doc now is updated