Commit Graph

118 Commits

Author SHA1 Message Date
lareine
3a7d597900 added startup to tpm reset
added startup to tpm reset
2022-02-23 13:54:48 -05:00
lareine
c8ced804d9 Deleted NVChip file during reset
Deleted NVChip file during reset
2022-02-23 13:54:45 -05:00
lareine
85e7999d8b added tpm restart timeout
cleanup

cleared out tpmserver folder in reset

cleared out tpmserver folder in reset
2022-02-23 13:54:40 -05:00
lareine
48205a27f1 added wait to tpr2Reset
rewrote tcg_boot.properties

rewrote tcg_boot.properties
2022-02-23 13:54:27 -05:00
lareine
7013552e78 added tests folder
added tests folder

test tcg_boot.properties fix
2022-02-23 13:54:21 -05:00
lareine
4ae04f008e added resetTpm2Emulator method
added clear option for rim_setup

added clear option for rim_setup

added clear option for rim_setup
2022-02-23 13:54:16 -05:00
lareine
b1e9ce1f33 refactor tpm_init
set tpm2_commom path

set tpm2_commom path
2022-02-23 13:54:12 -05:00
lareine
aad0fb9c17 testing tpm clear
testing tpm clear
2022-02-23 13:54:04 -05:00
lareine
1a8e65b5f5 testing tpm restart 2022-02-23 13:54:04 -05:00
lareine
9100206cc3 set ima policy for fw validation
added tpm clear

testing tpm clear

testing tpm clear

testing tpm clear

testing tpm clear

testing tpm clear

update ibmtss
2022-02-23 13:53:48 -05:00
lareine
212007c971 added oemOsInstall system test
added badVarInstall system test

added badOemInstall system test

Intial RIM System Tests
2022-02-23 13:52:48 -05:00
lareine
39a95218e4 added varOsInstall system test
added badVarInstall system test
2022-02-23 13:52:05 -05:00
lareine
b0f85c0a3e Added intial RIM Test
script cleanup
2022-02-23 13:51:52 -05:00
lareine
9069521841 updated platform cert setup 2022-02-02 10:53:46 -05:00
lareine
8186f21b3b added bad component test 2022-02-02 09:54:33 -05:00
lareine
01e398dbf2 added bad component test 2022-02-02 09:32:26 -05:00
lareine
59d9d6f654 initial Platfom Cert test 2022-02-02 09:05:25 -05:00
lareine
5ff331aa9c initial Platfom Cert test 2022-02-02 08:41:05 -05:00
lareine
a57b34c47f initial Platfom Cert test 2022-02-01 18:42:27 -05:00
lareine
c110dade77 initial Platfom Cert test 2022-02-01 18:27:05 -05:00
lareine
825abaebe4 initial Platfom Cert test 2022-02-01 17:43:12 -05:00
iadgovuser26
cae3be63f0 Added ACA POLICY TEST 7 2022-01-26 13:59:07 -05:00
iadgovuser26
56bf20246f file name refactor 2022-01-26 12:08:29 -05:00
iadgovuser26
1d114490ec fix tcg_properties path 2022-01-26 10:24:29 -05:00
iadgovuser26
79bc90046d init tcg_properties 2022-01-26 10:04:07 -05:00
iadgovuser26
3ca559d72f fix default pcr script name 2022-01-25 11:29:27 -05:00
iadgovuser26
ff8b1bfa19 fix rim setup path 2022-01-25 11:16:51 -05:00
iadgovuser26
4f37ba76a4 added support for FW testing 2022-01-25 10:54:54 -05:00
iadgovuser26
575be7bd65 updated policy scripts 2022-01-21 11:26:23 -05:00
iadgovuser26
a5928f2863 system test cleanup 2022-01-12 11:03:41 -05:00
iadgovuser26
1d1c41d0ea system test cleanup 2022-01-12 10:26:52 -05:00
iadgovuser26
8f6ad4f1f1 Added an empty folder to the empty profile 2022-01-10 16:56:27 -05:00
iadgovuser26
3bd2379078 merged with provisioner-printerror-fix 2022-01-10 15:13:51 -05:00
iadgovuser26
27b2ad870c added dev/mem reference 2022-01-10 14:52:34 -05:00
iadgovuser26
8e97b57c5c added system test for Platform Cert policy 2022-01-10 13:36:38 -05:00
lareine
979adfdae3 System test passes 2021-11-17 11:33:44 -05:00
lareine
f74c5f72e7 System test failure 2021-11-17 09:20:07 -05:00
lareine
09d71ddc18 initial ci system test refactor 2021-11-16 16:51:42 -05:00
Cyrus
0b9303d942 Updated system tests scripts 2021-03-08 08:25:39 -05:00
Cyrus
bd5bca58ea I have modified the code to correct handle the situation in which the device has more components than the certificate and I have taken steps to make the system test GOOD pass for test A6, A7 and A8. 2021-03-05 15:36:29 -05:00
busaboy1340
b73b7f218b
[#228] Update TPM Provisioner Docker images with latest PACCOR (v1.1.4r2) (#229)
* Update Docker TPMProvisioner images to latest PACCOR.

* Test updated docker images from hirs Docker Hub

* Update TPM Provisioner Docker images with latest PACCOR (v1.1.4r1)

* Updated TPM images on Docker Hub.

* Update TPM provisioner docker images with PACCOR v1.1.4r2

* Updated docker-compose files

* Updated TPM provisioner images in Docker Hub.
2020-02-25 10:30:37 -05:00
busaboy1340
b899e0bbe0
[#224] Update TPM Provisioner Docker images with latest PACCOR (v1.1.4r1) (#225)
* Update Docker TPMProvisioner images to latest PACCOR.

* Test updated docker images from hirs Docker Hub

* Update TPM Provisioner Docker images with latest PACCOR (v1.1.4r1)

* Updated TPM images on Docker Hub.
2020-02-25 09:51:45 -05:00
busaboy1340
6838a38fbc
[#220] Update TPM Provisioner Docker images with latest PACCOR (v1.1.3r4) (#221)
* Update Docker TPMProvisioner images to latest PACCOR.

* Test updated docker images from hirs Docker Hub
2020-02-20 06:29:48 -05:00
busaboy1340
da836a0862
[#216] Upgrade docker images and system tests to support python3 (#219)
* Updated docker images to use python3

* Updated docker compose files.

* Test Travis CI

* Test Travis CI

* Updated Dockerfiles.

* Updated .travis.yml

* Cleaned up scripts.

* Cleaned up scripts.

* Updated docker-compose files.

* Updated amazonlinux2 image with python3.

* Updated system test driver.

* Updated system test driver

* Cleaned up import in test driver.

* Updated setup scripts to output python version
2020-01-17 07:05:05 -05:00
busaboy1340
1c6947ca8a
Cleaned up python imports. (#213) 2020-01-06 11:54:28 -05:00
busaboy1340
0f3cfeb7b5
Update system_test.py
Updated the disable_warnings library.
2019-12-23 05:50:21 -05:00
busaboy1340
a2497c064c
[#88] Integrate System Tests with Dockerized TPM 1.2 Provisioner (#208)
* Initial system test for TPM 1.2 emulator.

* Update .travis.yml file.

* Added system test: test_20_tpm_1_2_initial_provision

* Cleaned up files.

* Correct docker location

* Re-arranged system tests.

* Execute test_12_attestation_ca_portal_online for all current collectors.

* Clean up files.

* Cleaned up files.

* Cleaned up files.

* Cleaned up files.

* Cleaned up files

* Updated system test driver.

* Set logging properties to DEBUG.

* Commented out test_13_tpm_1_2_initial_provision. Need to fix it.
2019-12-23 05:28:26 -05:00
busaboy1340
404f2ab5dd
[#194] Update TPM Provisioner Docker images with latest PACCOR (v1.1.3r3) (#205)
* PACCOR Testing.

* PACCOR Testing.

* PACCOR Testing.

* PACCOR Testing

* PACCOR Testing

* Updated Dockerfile.tpm2provisioner

* Cleaned up files.

* Point to the updated tpm2provisioner in hirs/hirs-ci, on Docker Hub.

* Cleaned up files.

* Used specific PACCOR script(allcomponents_hirs_system_test.sh) for
system tests.

* Added new PACCOR script for review.
Will be moved into the PACCOR project when permissions are granted.
2019-12-10 06:07:05 -05:00
busaboy1340
00287725da
[#194] Update TPM Provisioner Docker images with latest PACCOR (v1.1.3r3) (#200)
* [#195] Components identified by Component Class will have hardware IDs translated to names

* Update TPM Docker images to latest PACCOR(v1.1.3r3). Comment out the
failing system tests caused by invalid input to PACCOR.
2019-11-07 09:37:06 -05:00
busaboy1340
75b9c2ddf7
[#192] Update TPM Provisioner docker images with latest PACCOR (#193)
* Updated TPM Docker images to use PACOR (v1.1.2r3) and TPM 2.0 Emulator
(v1332)

* Use updated TPM Provisioner docker images from Docker Hub.
2019-10-01 09:53:04 -04:00
busaboy1340
6a59033768
Updated system tests from changes in latest Master build. (#187) 2019-09-11 07:55:24 -04:00
busaboy1340
db2f80edb9
Fix latest merge onto master (#178)
* Add Base/Delta to .travis.yml

* Implement Delta system test.

* Removed un-needed scripts.

* Update system_test_Driver.py

* Update system_test.py
2019-08-21 06:30:46 -04:00
busaboy1340
4b4f811735
[#176] Initial delta system test to resolve bad component in a base certificate (#177)
* Add Base/Delta to .travis.yml

* Implement Delta system test.

* Removed un-needed scripts.

* Update system_test_Driver.py
2019-08-02 12:39:56 -04:00
busaboy1340
aa707b8665
Updated images to use paccor v1.1.2r2 (#175) 2019-07-29 10:41:28 -04:00
busaboy1340
440bb06b70
Create initial system test for Base/Delta Platform Certificates (#170)
* Add creation of bad base platform certificate.

* Adding Base Certificate system test.

* Adding Base Certificate system test.

* Adding Base Certificate system test.

* Adding Base Certificate system test.

* Updated script to add faulty components to bad base certificate.

* Updated addFaultyComponents script.

* Add Base/Delta system tests to .travis.yml

* Disable unit tests to decrease CI time.

* Cleaned up code.

* Cleaned up code.

* Delete system_test_Driver.py
2019-07-19 05:50:26 -04:00
busaboy1340
2329d725e8
Use DER format when creating platform credential. (#161) 2019-06-18 13:00:49 -04:00
busaboy1340
a00be77d5c
[# 153] Update TPM 2.0 emulator docker image with latest PACCOR (#158)
* Updating PACCOR for docker images.

* Updating PACCOR for docker images.

* Clean up Dockerfiles.

* Updated docker images to use PACCOR 1.1.2-1
2019-06-12 10:38:57 -04:00
busaboy1340
59ad180688
[#138] Add Platform Attribute Validation to System Tests (TPM 2.0 Emulator) (#141)
* Platform Attribute verification for system tests. Upgrade to latest TPM2 Emulator.

* Corrected docker-compose-tpm2.yml file.
2019-05-23 05:53:54 -04:00
apldev3
5c0e4e8373
[#144] Rename integration-tests folder to setup under .ci directory (#145) 2019-05-22 16:33:34 -04:00
apldev3
e846225e75 [#139] Remove Maintainer Tags from Dockerfiles 2019-05-16 12:13:19 -04:00
apldev4
74ab4d46b1 [#105] Updated tpm_version to get data from TPM hardware.
The TPM 2 Provisioner gets packaged with an application called
tpm_version, which reported hard-coded values for the TPM
manufacturer and version. Now it collects those things from
the TPM and reports them.
2019-05-01 16:11:00 -04:00
busaboy1340
0bc9b94d3e
[#122] Add clean up of dangling docker containers for TPM 2.0 system tests (#123)
* Added clean up of dangling docker containers.

* Added clean up of dangling docker containers.

* Added clean up of dangling docker containers.
2019-04-08 06:57:22 -04:00
apldev3
5eeebabcc2 [#90] Add Amazon Linux Package test to Travis CI 2019-02-22 13:06:49 -05:00
apldev3
ec8c4b5c3e
[#71] Dockerize TPM 1.2 Provisioner and Integrate with Docker Compose (#77)
* [#71] Initial Dockerization of TPM 1.2 Provisioner

* Fix permissions on new script

* Fix current bugs

* [#71] Try a new direction for setting up TPM 1.2 Provisioner Testing

* [#71] Attempt to the latest version of Trousers on Travis CI VM for 1.2 Provisioner support

* [#71] Try IBM TPM 1.2 Emulator

* [#71] Move towards cleaning up work

* [#71] Update TPM1.2 Provisioner Docker to work with Docker Compose in Systems Test

* [#71] Get TPM 1.2 Provisioner to provision successfully in Docker container

* Update system tests script to include TPM 1.2 Provisioner container

* [#71] Separate TPM 1.2 and 2.0 Provisioner System Tests

* [#71] Pipe TPM Emulator log output to file to clear up system test output
2019-02-04 14:26:54 -05:00
busaboy1340
afd5fd29e4
[#82] Systems Tests not Reporting Failure Correctly (#83)
* Test failing system tests report correctly in Travis.

* Test successful system tests report correctly in Travis.

* Test failing system tests report correctly in Travis.

* Test successful system tests report correctly in Travis.

* Test failing system tests report correctly in Travis.

* Test successful system tests report correctly in Travis.
2019-02-01 06:00:10 -05:00
apldev4
bce78c0122 [#78] hirs-provisioner-tpm2 on path after installation. (#84)
There was a problem in the rpm-post-install.sh script
that ran as part of the CentOS7 rpm installation where
a link was being created called libcurl.so which pointed
to libcurl.so.4. If the link could not be created because
it already existed, the script would quit before finishing
and never place hirs-provisioner-tpm2 in a directory on
the PATH.

The proper solution was to link hirs-provisioner against
libcurl.so.4 so that it is clear which version of the API
was compiled against. This was not happening because
we were linking against a version of curl build by the CPR
project which was not properly embedding the SONAME in the
shared object file. By linking instead against the shared
object file distributed in the development package of
libcurl, hirs-provisioner-tpm2 now looks for libcurl.so.4
rather than the generic libcurl.so. This will prevent our
executable from breaking if libcurl.so gets updated to point
to a newer version of libcurl that uses a different API.

Closes #78.
2019-01-31 11:50:43 -05:00
busaboy1340
17d7dbd6f7
#67 Add systems tests for HIRS Provisioner TPM 2.0 (#73)
* Added System Tests.

* Cleaned up scripts

* Cleaned up system tests.

* Cleaned up system tests.

* Cleaned up system tests.

* Updated system tests.

* Code review updates.
2019-01-15 12:46:06 -05:00
apldev3
05a78a3d79
[#46] Setup Travis for HIRS Integration Tests (#68)
* [#46] Ensure Travis mounts repository rather than clones it in Docker

* [#46] Containerize HIRS ACA and prep ACA container for Integration Tests

* [#46] Containerize HIRS TPM2Provisioner and prep TPM2Provisioner container for Integration Tests

* [#46] Replace localinstall with install

* [#46] Prevent rebuilding of packages unnecessarily

* [#46] Finish initial docker compose setup for integration tests

* [#46] Allow for detection of complete Integration Environment Setup

* [#46] Fix Travis CI to allow for detecting Integ Test Environ Stand-Up

* [#46] Fix Initial Integration Test Script

* [#46] Troubleshoot Integration Test script
2019-01-07 15:28:53 -05:00