
Debian uses ostree for software patching. Centos uses rpm and dnf for software patching. The dnf API to track rpms is being removed from the debian code. Calls to ostree interaction may be added later. Note: One dnf call remains in upgrade-start-pkg-extract This has been left, as upgrade for Debian is still being investigated. This change eliminates sw-patch-agent service failures caused by calling dnf and therefore also eliminates the 200.006 major alarm raised due to service failures. Test Plan: PASS: Build / Boot / Bootstrap / Unlock AIO-SX PASS: Upload / Apply a patch on AIO-SX PASS: reboot after applying a patch and verify no alarms or excessive error logs for patching. PASS: Delete a patch on AIO-SX Depends-On: https://review.opendev.org/c/starlingx/update/+/840721 Story: 2009969 Task: 45242 Co-Authored-By: Jessica Castelino <jessica.castelino@windriver.com> Signed-off-by: Al Bailey <al.bailey@windriver.com> Change-Id: I823b45efb90b4106fc8b684ee49453e2354e9315
16 lines
321 B
Python
16 lines
321 B
Python
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# Copyright (c) 2019-2022 Wind River Systems, Inc.
|
|
#
|
|
import testtools
|
|
|
|
from cgcs_patch import patch_agent
|
|
|
|
|
|
class CgcsPatchAgentTestCase(testtools.TestCase):
|
|
|
|
def test_cgcs_patch_agent_instantiate(self):
|
|
pc = patch_agent.PatchAgent()
|
|
self.assertIsNotNone(pc)
|