mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-20 21:43:18 +00:00
7c99b81b10
* Lookup here needed summary id from device object * Portal linkage issue * CertificatesUsed not working properly with RIM * Maybe need to link to base rim * Rim test 1 needed hw file * Working on CI * Connecting new tpm2_common * Edited the way scripts called in docker exec * TPM for reset each test * Defining efi paths in CI env file * Forgot to close while loops * Connecting default test files * Variable was wrong [no ci] * Added ACA tests using uploaded artifacts * Trying to chmod rim_setup.sh * rim_setup chmod issues * Added aca tests 9 and 10 to workflow * Added cases 9 and 10 for aca policy tests * Exit test scripts with error if one test fails * Attempt to solve uploaded rim linkup * Try only setting tagId if not null * updateSupportRimInfo was not setting associated rim on base * Attempt alternate lookup of rim by device name * Trouble with event log archived * Used wrong variable * Fix spotbugs * Try again * Change SupplyChainValidation.message size to MAX_MESSAGE_LENGTH
34 lines
1.8 KiB
Bash
Executable File
34 lines
1.8 KiB
Bash
Executable File
#!/bin/bash
|
|
#########################################################################################
|
|
# Script to run the System Tests for HIRS TPM 2.0 Provisoner from GitHub Workflow
|
|
# *** INTENDED FOR WORKFLOW RUNS, NOT FOR LOCAL SYSTEM TESTING ***
|
|
# For local system testing, use run_system_tests.sh instead
|
|
#########################################################################################
|
|
|
|
# Setting variables
|
|
aca_container=hirs-aca1
|
|
tpm2_container=hirs-provisioner1-tpm2
|
|
|
|
# Start System Testing Docker Environment
|
|
echo "******** Setting up for HIRS System Tests for TPM 2.0 ******** "
|
|
docker compose -f ./.ci/docker/docker-compose-system-test.yml up --pull "always" -d
|
|
|
|
# Setting up and Starting ACA + Switching to current/desired branch in ACA Container
|
|
docker exec $aca_container sh -c "/tmp/auto_clone_branch $1 > /dev/null 2>&1 \
|
|
&& echo 'ACA Container Current Branch: ' && git branch \
|
|
&& /hirs/package/linux/aca/aca_setup.sh --unattended 1> /dev/null \
|
|
&& /tmp/hirs_add_aca_tls_path_to_os.sh 1> /dev/null \
|
|
&& /hirs/package/linux/aca/aca_bootRun.sh -d 1> /dev/null" &
|
|
|
|
# Switching to current/desired branch in Provisioner Container
|
|
docker exec $tpm2_container sh -c "/tmp/auto_clone_branch $1 > /dev/null 2>&1 \
|
|
&& echo 'Provisioner Container Current Branch: ' && git branch"
|
|
|
|
# Install HIRS Provisioner.Net and setup tpm2 simulator.
|
|
# In doing so, tests a single provision between Provisioner.Net and ACA.
|
|
echo "Launching provisioner setup"
|
|
docker exec -i $tpm2_container /bin/bash -c "/hirs/.ci/setup/container/setup_tpm2provisioner_dotnet.sh"
|
|
|
|
# Initiating System Tests
|
|
echo "******** Setup Complete. Beginning HIRS System Tests. ******** "
|