From d47af5245c343373a05fcb5f3fb6920f09963a84 Mon Sep 17 00:00:00 2001 From: "Daniel A. Wozniak" Date: Tue, 12 Nov 2024 01:21:49 -0700 Subject: [PATCH] Test debug --- tests/pytests/pkg/conftest.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/pytests/pkg/conftest.py b/tests/pytests/pkg/conftest.py index 258d794c89f..53eebb95bcf 100644 --- a/tests/pytests/pkg/conftest.py +++ b/tests/pytests/pkg/conftest.py @@ -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