Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:Update
keylime
CVE-2022-1053-04.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File CVE-2022-1053-04.patch of Package keylime
From 45565ee6ea64d33fe7409b5cca0e26a27e1dfcd9 Mon Sep 17 00:00:00 2001 From: Thore Sommer <mail@thson.de> Date: Wed, 6 Apr 2022 16:08:50 +0200 Subject: [PATCH] tests: adjust tests to reflect latest API changes Signed-off-by: Thore Sommer <mail@thson.de> --- test/test_api_version.py | 2 +- test/test_restful.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) Index: keylime-v6.3.2/test/test_api_version.py =================================================================== --- keylime-v6.3.2.orig/test/test_api_version.py +++ keylime-v6.3.2/test/test_api_version.py @@ -10,7 +10,7 @@ from keylime import api_version class APIVersion_Test(unittest.TestCase): def test_current_version(self): - self.assertEqual(api_version.current_version(), "2.0", "Current version is 2.0") + self.assertEqual(api_version.current_version(), "2.1", "Current version is 2.1") def test_latest_minor_version(self): self.assertEqual(api_version.latest_minor_version("1.0"), "1.0", "Latest version of 1.0 is 1.0") Index: keylime-v6.3.2/test/test_restful.py =================================================================== --- keylime-v6.3.2.orig/test/test_restful.py +++ keylime-v6.3.2/test/test_restful.py @@ -509,6 +509,8 @@ class TestRestful(unittest.TestCase): self.assertIn("port", json_response["results"], "Malformed response body!") global aik_tpm + global mtls_cert + mtls_cert = json_response["results"]["mtls_cert"] aik_tpm = json_response["results"]["aik_tpm"] def test_015_reg_agent_delete(self): @@ -726,7 +728,9 @@ class TestRestful(unittest.TestCase): 'accept_tpm_hash_algs': config.get('tenant', 'accept_tpm_hash_algs').split(','), 'accept_tpm_encryption_algs': config.get('tenant', 'accept_tpm_encryption_algs').split(','), 'accept_tpm_signing_algs': config.get('tenant', 'accept_tpm_signing_algs').split(','), - 'supported_version': tenant_templ.supported_version + 'supported_version': tenant_templ.supported_version, + 'ak_tpm': aik_tpm, + 'mtls_cert': mtls_cert, } test_030_cv_agent_post = RequestsClient(tenant_templ.verifier_base_url, tls_enabled)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor