From 6dbaa4e6e0cb78d4b1e136f150b33f11962870ef Mon Sep 17 00:00:00 2001 From: Alexander Hughes Date: Tue, 19 May 2020 09:58:29 -0400 Subject: [PATCH] Update Treasuremap ref to use valid certs Unit tests are failing for check_pki_certs against airsloop. The ref used is at a previous point in time where the certs are expiring. This patch uses the most recent (as of this patch date) ref of Treasuremap to get valid certificates for these tests. Change-Id: I1b276f0eab24148b341676dadfb6e031bfd7c802 Signed-off-by: Alexander Hughes --- tests/unit/cli/test_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/cli/test_commands.py b/tests/unit/cli/test_commands.py index 0b741dc6..c479b76a 100644 --- a/tests/unit/cli/test_commands.py +++ b/tests/unit/cli/test_commands.py @@ -30,7 +30,7 @@ from tests.unit import test_utils TEST_PARAMS = { "site_name": "seaworthy", "site_type": "foundry", - "repo_rev": '29c67eb3a0ce046e41cfadbb9381697cd556f659', + "repo_rev": '8459e3faf18c20266c3272e6c3754d59814d12c4', "repo_name": "treasuremap", "repo_url": "https://opendev.org/airship/treasuremap.git", } @@ -693,7 +693,7 @@ class TestSiteSecretsActions(BaseCLIActionTest): reason='cfssl must be installed to execute these tests') def test_check_pki_certs(self): repo_path = self.treasuremap_path - secrets_opts = ['secrets', 'check-pki-certs', 'airsloop'] + secrets_opts = ['secrets', 'check-pki-certs', "airsloop"] result = self.runner.invoke( commands.site, ['--no-decrypt', '-r', repo_path] + secrets_opts) assert result.exit_code == 0, result.output