This PR will satisfy the following steps in the "HIRS V3 CI Update" project:
Create Provisioner Container on Rocky 9
Add ACA Container built on Rocky 9
Trigger single provision with EK Cert Validation
Add system_test to main
This addition will be the first system test in V3 to test a single successful provision using Provisioner.Net. The following files have been added/modified:
system_test.yml is a GitHub workflow file that will run actions upon pushing main or V3 branches. It calls run_system_tests.sh script to runs the system tests on the current branch being pushed. Produces artifact containing log files for ACA and Provisioner.Net.
run_system_tests.sh calls the Docker Compose .yml file for creating Docker containers and initiates the TPM simulator setup. This will be added to as other system tests (policy tests, rim tests, etc) are migrated to V3. Within the Docker containers, it also checks out the current branch being pushed.
docker-compose-system-test.yml is the Compose file that will create 2 Docker containers (1 for ACA + 1 for Provisioner.Net) and have them talk to each other in the same network. Other components will be added to this as other system tests are migrated to V3.
Dockerfile.tpm2provisioner_dotnet is the Dockerfile used to create an image for Provisioner.Net's container. Includes a commented note on building/running the image locally.
setup_tpm2provisioner_dotnet.sh is the script run inside the Provisioner.Net container that will start the TPM simulator and perform the successful provision.
.env contains environment variables used by various files in .ci.
To perform this test in GitHub actions:
On desired branch in remote repository, use a workflow dispatch by going: Actions > HIRS System Tests > Run workflow.
To perform this test locally:
Run run_system_tests.sh while following the couple of instructions in the beginning comments.
(STATUS: Complete) Modifications currently in progress:
[x] Pushing Provisioner.Net image to registry so container can be built from the remote image instead of locally
[x] Adding working system_test.yml GitHub Workflow file, which will trigger the run_system_tests.sh script upon pushing a V3 branch. Will be adding functionality to grab the name of the branch being pushed and passing it to the script inside container to check the branch out in cloned HIRS repository.
[x] Adding functionality of log generation for Provisioner and ACA containers, which will be extracted and turned into GitHub Workflow artifact.
This PR will satisfy the following steps in the "HIRS V3 CI Update" project:
This addition will be the first system test in V3 to test a single successful provision using Provisioner.Net. The following files have been added/modified:
system_test.yml
is a GitHub workflow file that will run actions upon pushing main or V3 branches. It calls run_system_tests.sh script to runs the system tests on the current branch being pushed. Produces artifact containing log files for ACA and Provisioner.Net.run_system_tests.sh
calls the Docker Compose .yml file for creating Docker containers and initiates the TPM simulator setup. This will be added to as other system tests (policy tests, rim tests, etc) are migrated to V3. Within the Docker containers, it also checks out the current branch being pushed.docker-compose-system-test.yml
is the Compose file that will create 2 Docker containers (1 for ACA + 1 for Provisioner.Net) and have them talk to each other in the same network. Other components will be added to this as other system tests are migrated to V3.Dockerfile.tpm2provisioner_dotnet
is the Dockerfile used to create an image for Provisioner.Net's container. Includes a commented note on building/running the image locally.setup_tpm2provisioner_dotnet.sh
is the script run inside the Provisioner.Net container that will start the TPM simulator and perform the successful provision..env
contains environment variables used by various files in .ci.To perform this test in GitHub actions:
To perform this test locally:
run_system_tests.sh
while following the couple of instructions in the beginning comments.