issue_896: Last change before the long weekend. Hoping these changes will make github actions happy.
Some checks failed
Dotnet Provisioner Unit Tests / Restore and Run Unit Tests (ubuntu-20.04) (push) Has been cancelled
Dotnet Provisioner Unit Tests / Restore and Run Unit Tests (windows-2022) (push) Has been cancelled
HIRS Build and Unit Test / ACA_Provisioner_Unit_Tests (push) Has been cancelled
HIRS System Tests / DockerTests (push) Has been cancelled
Dotnet Provisioner Unit Tests / Evaluate Tests (push) Has been cancelled

This commit is contained in:
TheSilentCoder 2025-02-14 14:48:23 -05:00
parent 828afe2e2d
commit 6b38fa8ee5
2 changed files with 5 additions and 7 deletions

View File

@ -265,12 +265,10 @@ public class CertificateAttributeScvValidator extends SupplyChainCredentialValid
List<ComponentIdentifierV2> allV2PcComponents
= new ArrayList<>(platformCredential.getComponentIdentifiersV2());
if (componentInfos == null) {
log.error("The device's reported list of components is null.");
passesValidation = false;
} else if (componentInfos.size() != allV2PcComponents.size()) {
if (componentInfos.size() != allV2PcComponents.size()) {
log.error(
"The device's reported list of components' sizes (size of {}) do not match the size (size of {}) "
"The device's reported list of components' sizes (size of {}) " +
"do not match the size (size of {}) "
+ "of the platform credential's version 2 component identifiers.",
componentInfos.size(), allV2PcComponents.size());

View File

@ -1306,8 +1306,8 @@ public class SupplyChainCredentialValidatorTest {
}
/**
* Second test that tests that TPM 2.0 Platform Credentials validate correctly against the device info report
* when there are components present, and when the PlatformSerial field holds the system's
* Second test that tests that TPM 2.0 Platform Credentials validate correctly against the device info
* report when there are components present, and when the PlatformSerial field holds the system's
* serial number instead of the baseboard serial number.
*
* @throws IOException if unable to set up DeviceInfoReport from resource file