utilities/tools
Salma Police 8ef2b5500f Enhance collect tool to detect passwordless sudo
The collect tool expects a password prompt for all sudo operations.
When passwordless sudo is enabled the collect script times out
waiting for a password prompt that never comes.

This update enhances collect tool to detect passwordless sudo
for getting a password prompt on its first sudo operaton and
fails the collect if there is no password prompt.

Test plan:

Verify by enabling  passwordless sudo
PASS:  collect fails with message

Verify by disabling passwordless sudo
PASS: No passwordless sudo passes and collect proceeds
PASS: Collect is rejected when provided with incorrect password

Story: 2009968
Task: 46767
Signed-off-by: Salma Police <salma.police@windriver.com>
Change-Id: I11239a25757a929a5679441b7a90586657a623f8
2022-11-14 11:22:49 -05:00
..
base-images vRAN tools container image stx-debian-dev 2022-08-30 14:06:00 +00:00
collect_filesystem Add flake8-import-order and use python3.9 on tox 2022-09-13 21:49:41 +00:00
collector Enhance collect tool to detect passwordless sudo 2022-11-14 11:22:49 -05:00
debian-integration Revert "Debian: Add workaround for enabling swacts." 2022-08-04 17:18:39 +00:00
engtools/hostdata-collectors Fix bashate failure in zuul 2022-10-07 19:19:51 +00:00
pcm/debian PCM tools on container image stx-debian-tools-dev 2022-09-09 17:39:49 +00:00
vran-tools PCM tools on container image stx-debian-tools-dev 2022-09-09 17:39:49 +00:00