Skip to content

Commit

Permalink
Test debug
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Nov 12, 2024
1 parent 578f82f commit cd3b7f5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/pytests/pkg/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ def _system_up_to_date(
grains,
shell,
):
gpg_dest = "/etc/apt/keyrings/salt-archive-keyring.gpg"
if os.path.exists(gpg_dest):
with salt.utils.files.fopen(gpg_dest, "r") as fp:
log.error("Salt gpg key is %s", fp.read())
else:
log.error("Salt gpg not present")
#download_file(
# "https://packages.broadcom.com/artifactory/api/security/keypair/SaltProjectKey/public",
# gpg_dest,
#)
if grains["os_family"] == "Debian":
ret = shell.run("apt", "update")
assert ret.returncode == 0
Expand Down

0 comments on commit cd3b7f5

Please sign in to comment.