chaoss / grimoirelab-elk

GNU General Public License v3.0
58 stars 121 forks source link

[elk] Add method to anonymize parameters #1055

Closed zhquan closed 2 years ago

zhquan commented 2 years ago

This code adds a new method to anonymize parameters in case you want to write it in a log message.

All parameters after --api-token or --backend-password will be replaced by xxxxx until the next parameter starts with -

Test added accordingly.

Signed-off-by: Quan Zhou quan@bitergia.com

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 2372749705


Files with Coverage Reduction New Missed Lines %
/home/runner/work/grimoirelab-elk/grimoirelab-elk/grimoire_elk/elk.py 212 12.99%
<!-- Total: 212 -->
Totals Coverage Status
Change from base Build 2372137623: 0.02%
Covered Lines: 8761
Relevant Lines: 10697

💛 - Coveralls