Comment 10 for bug 1874526

Revision history for this message
Heather Lemon (hypothetical-lemon) wrote :

[VERIFICATION BIONIC]

Testing using bionic landscape-client: 18.01-0ubuntu3.5
Tested using bionic sosreport: sosreport_3.9-1ubuntu0.18.04.3

# pull source code from: pull-lp-source sosreport bionic-proposed
# installed landscape-client from apt
$ sudo apt-get install landscape-client
# created new local directory under /etc/landscape
# created 2 files in /etc/landscape
$ touch service.conf
$ touch service.conf.old
$ vim service.conf && service.conf.old
  # inserted these 2 lines into both files
  oidc-client-secret = 93084029384-secret-test
  oidc-client-id = 234234234-secret-id
# saved and closed file
# Executed sosreport
$ sudo sosreport -o landscape --config sos.conf
# untar compressed file from /tmp folder
$ cd /tmp/<uncompressed folder>/etc/landscape/
$ less service.conf
$ less service.conf.old
# checking logs and verifying password is filled with ***
# verify password is [*****]
# Run unit tests
$ sudo tests/simple.sh
# verify success message
----
root@bio:/tmp# cat sosreport-bio-2020-05-04-ymaseea/etc/landscape/service.conf
  oidc-client-secret = [********]
  oidc-client-id = [********]
root@bio:/tmp# cat sosreport-bio-2020-05-04-ymaseea/etc/landscape/service.conf.old
  oidc-client-secret = [********]
  oidc-client-id = [********]