iadgovuser58
13ff2248c2
fixed issue caused by change to version method
2024-05-16 13:49:37 -04:00
Cyrus
1d0a71a1a2
While expecting a StackOverFlow error from uploading an EK certificate,
...
this is not occurring. A unit test had to be updated because the
previous BouncyCastle X500Compare.equals() method returned false for 2
empty string compares. Now it returns true.
2024-01-24 09:48:44 -05:00
Cyrus
8dee0a94ea
Update code to pull from 2 different locations
2024-01-18 08:09:13 -05:00
Cyrus
3134a165fa
Changes were missing from the unit test file, updated and should pass
...
now
2024-01-17 14:36:05 -05:00
Cyrus
3d6504743f
Update the Version parsing to read the file from a configuration
...
location rather than the code bases resource location.
2024-01-17 14:18:26 -05:00
iadgovuser62
59a4ff0f1a
HIRS_Utils Unit Tests Migration from /hirs/utils/ directory ( #621 )
...
* Adding HexUtilsTest
* Adding StringValidatorTest
* Adding VersionHelperTest and necessary resource
* Adding BouncyCastleUtilsTest
2023-11-16 12:51:30 -05:00
chubtub
55936806d7
Revert "Merge pull request #606 from nsacyber/v3_issue-596"
...
This reverts commit 071e89a44f31e005c5e73f233b7c55643521d9e3, reversing
changes made to 45d550729f38dea75290d53b7439dfbc0795bd17.
2023-11-01 10:03:34 -04:00
chubtub
55f80fe0e6
Migrate CertificateTest class to HIRS_Utils and update unit test dependencies following migration
2023-10-20 08:39:28 -04:00
iadgovuser26
c1917f03ae
Merge pull request #577 from nsacyber/v3_issue_576_pt1-unittest
...
[#546 ] (Part 1) Migrating tests in /data/persist/ folder in HIRS_Utils
2023-09-01 14:48:20 -04:00
iadgovuser59
d5af444605
Minor code cleanup
2023-09-01 12:44:04 -04:00
iadgovuser59
0e6450da7f
Adding PolicyTest and associated changes
2023-09-01 12:30:09 -04:00
iadgovuser59
8386864195
Adding OSInfoTest
2023-09-01 10:50:44 -04:00
iadgovuser59
86a9d886c1
Adding NetworkInfoTest
2023-08-31 19:15:56 -04:00
iadgovuser59
894b13acf8
Adding HardwareInfoTest
2023-08-28 17:11:00 -04:00
iadgovuser59
3e0176d35a
Adding FirmwareInfoTest
2023-08-28 16:50:48 -04:00
iadgovuser59
9136725994
Migrating unit test
2023-08-28 15:43:59 -04:00
D2B8CA1B27286366A8607B6858C0565962613D18D0546480078B520CD7AD705A
30c9ddbf7c
Merge branch 'main' into v3_issue_546-unittest
2023-07-21 13:36:29 -04:00
iadgovuser58
a0238abe8b
minor updates to replace deprecated function, swap actual/expected in assertthat, and use lombok Getter
2023-07-19 16:21:16 -04:00
iadgovuser59
dbc11f15c4
Adding resources for unit tests
2023-07-17 16:17:24 -04:00
iadgovuser59
7a24d2c79b
Adding UEFI unit tests
2023-07-17 16:15:57 -04:00
iadgovuser58
435ce61a5a
minor comment updates
2023-07-13 18:16:37 -04:00
iadgovuser58
166391c4d4
minor comment changes to TCGEventLogTest
2023-07-13 17:48:34 -04:00
iadgovuser58
3826ef7834
added TCGEventLogTest.java and 4 resource files
2023-07-13 17:21:17 -04:00
Cyrus
72aa426018
This is a complete refactor. This uses Hibernate 6, Springboot Framework
...
3, Java 17, Jakarta
2023-02-14 07:30:16 -05:00
Cyrus
4cf08ef38a
Updated unit tests and removed magic number
2022-02-23 08:45:16 -05:00
iadgovuser29
e22d95c2e6
Modified so PCI ID translation will highlight delta certs and show in Tooltips
2021-12-10 09:07:28 -05:00
Cyrus
14ecd9832e
Updated unit tested to correct the failures that were occurring because of the updated code changes.
2021-08-30 11:44:37 -04:00
Cyrus
cf5472242b
Merge pull request #393 from nsacyber/uefi-test-update
...
Checkstyle fix on a Unit Test
2021-08-24 09:42:12 -04:00
Cyrus
5a26093d57
Missed and update for a method that was updated with a new exception thrown.
2021-08-20 13:47:20 -04:00
iadgovuser26
71666542c1
Merge pull request #392 from nsacyber/uefi-test-update
...
UEFI Unit Test Update
2021-08-20 12:16:35 -04:00
iadgovuser26
761fb6aaa9
Merge pull request #391 from nsacyber/fix-certificatetest-testisissuer
...
Fix for faulty logic in CertificateTest.testIsIssuer
2021-08-20 12:16:23 -04:00
iadgovuser26
793d21ae5b
Merge pull request #390 from nsacyber/fix-testappraiser-name
...
Fixing one unit test revealed additional test updates.
2021-08-20 12:16:04 -04:00
iadgovuser26
3132a590e1
Merge pull request #388 from nsacyber/ignore-tpmbaselinegeneratortest-csvgeneratortest
...
Ignore tests from TPMBaselineGeneratorTest and ima.CSVGeneratorTest.
2021-08-20 12:15:35 -04:00
Cyrus
61497809f5
Updated the UefiGuid to have the vendor json file get passed in. This updates the unit test and fixes the issue.
2021-08-20 09:19:01 -04:00
iadgovuser26
9fbbf81ada
Merge pull request #389 from nsacyber/eventLogTesFix
...
updated TCGEventLogEventsTest
2021-08-18 16:20:16 -04:00
iadgovuser29
7e3eaf4c5c
Fix for faulty logic in CertificateTest.testIsIssuer
2021-08-18 14:09:27 -04:00
iadgovuser29
f9a32e3f52
Fixing one unit test revealed additional test updates.
2021-08-18 13:29:49 -04:00
iadgovuser29
b8741039a9
Ignore tests from TPMBaselineGeneratorTest and ima.CSVGeneratorTest.
2021-08-17 17:59:34 -04:00
lareine
32887eb598
updated TCGEventLogEventsTest
2021-08-17 17:30:45 -04:00
iadgovuser29
f54e1a15d0
Fixed a certificate conversion issue.
2021-08-17 17:21:32 -04:00
Cyrus
cac913af11
Updated the component class to no longer use ints but instead use only Strings
2021-07-01 12:49:35 -04:00
Cyrus
a555fac716
Finished updating the unit test. The value of being passed in wasn't of a format that the component class could handle.
2021-06-29 20:33:59 -04:00
Cyrus
adb93dbd94
Updated the unit tests
2021-06-21 10:32:44 -04:00
Cyrus
e8d84b88f5
Updated the component class values for SMBIOS
2021-06-17 14:32:49 -04:00
Cyrus
13043856ef
These changes update the component class object to handled SMBIOS components along with the TCG ones presented originally. The unit tests also were updated to use the new structure of the class and added additional tests for the SMBIOS entries
2021-06-07 13:46:47 -04:00
Cyrus
f2308f2955
Updated the isIssuer and the containsAll to allow the reason for the platform certificate failure isn't that the issuer is missing but that the issuer available fails the public key on the details page for certificates
2021-03-26 10:32:19 -04:00
Cyrus
2d9bbe1bd7
initial commit
2021-02-01 11:24:20 -05:00
Cyrus
62c7ca2d90
This PR is to address issue #308 . The ACA was pulling Issuer Certificates using the organization RDN of the subject string and getting this from the issuer string of the EC or PC. This presents a problem because it isn't a required field. The organization field cannot be null or empty. Pulling objects from a DB using null or empty would produce bad results. The main change of this issue (which has not been full tested) is pulling using the AKI for the db lookup. If this fails, instead of falling back on potentially left out fields like the O= RDN, the ACA takes the issuer/subject fields, breaks them apart and sorts them based on the key. It also changes the case. This way the lookup can be assured to match in case of some random situation in which the issuer or subject field don't match because RDN keys are just in different positions of the string.
2020-12-11 14:47:46 -05:00
Cyrus
3852bd7c6e
This code push removes a large switch/case statement structure and refactors it into a json file call. This follows the similar implementation of the Component Class but for UEFI vendor names.
2020-09-25 11:19:50 -04:00
iadgovuser26
00f2f33fd0
set initialized values for PCRs 17-23
2020-07-06 12:21:11 -04:00