mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-20 05:28:22 +00:00
Testing failure condition
This commit is contained in:
parent
89e1aea091
commit
6df75c594c
@ -70,15 +70,15 @@ uploadTrustedCerts() {
|
|||||||
# Upload CA Cert from IBMTSS Tools
|
# Upload CA Cert from IBMTSS Tools
|
||||||
echo "Uploading Trust Certificates to ${HIRS_ACA_HOSTNAME}:${HIRS_ACA_PORTAL_PORT}"
|
echo "Uploading Trust Certificates to ${HIRS_ACA_HOSTNAME}:${HIRS_ACA_PORTAL_PORT}"
|
||||||
echo "Uploading the EK Certificate CA(s)..."
|
echo "Uploading the EK Certificate CA(s)..."
|
||||||
docker exec -i $tpm2_container /bin/bash -c "curl -k -F 'file=@/ibmtss/utils/certificates/cacert.pem' $SERVER_CACERT_POST"
|
docker exec -i $tpm2_container /bin/bash -c "curl -k -F 'file=@/ibmtss/utils/certificates/cacert.pem' $SERVER_CACERT_POST" > /dev/null
|
||||||
echo "...done"
|
echo "...done"
|
||||||
# Upload Trusted Certs from HIRS
|
# Upload Trusted Certs from HIRS
|
||||||
echo "Uploading the Platform Certificate CA(s)..."
|
echo "Uploading the Platform Certificate CA(s)..."
|
||||||
docker exec -i $aca_container /bin/bash -c "curl -k -F 'file=@$HIRS_CI_REPO_ROOT/.ci/setup/certs/ca.crt' https://localhost:${HIRS_ACA_PORTAL_PORT}/$HIRS_ACA_POST_POINT_TRUST"
|
docker exec -i $aca_container /bin/bash -c "curl -k -F 'file=@$HIRS_CI_REPO_ROOT/.ci/setup/certs/ca.crt' https://localhost:${HIRS_ACA_PORTAL_PORT}/$HIRS_ACA_POST_POINT_TRUST" > /dev/null
|
||||||
echo "...done"
|
echo "...done"
|
||||||
echo "Uploading the RIM CA(s)..."
|
echo "Uploading the RIM CA(s)..."
|
||||||
docker exec -i $aca_container /bin/bash -c "curl -k -F 'file=@$HIRS_CI_REPO_ROOT/.ci/setup/certs/RIMCaCert.pem' https://localhost:${HIRS_ACA_PORTAL_PORT}/$HIRS_ACA_POST_POINT_TRUST"
|
docker exec -i $aca_container /bin/bash -c "curl -k -F 'file=@$HIRS_CI_REPO_ROOT/.ci/setup/certs/RIMCaCert.pem' https://localhost:${HIRS_ACA_PORTAL_PORT}/$HIRS_ACA_POST_POINT_TRUST" > /dev/null
|
||||||
docker exec -i $aca_container /bin/bash -c "curl -k -F 'file=@$HIRS_CI_REPO_ROOT/.ci/setup/certs/RimSignCert.pem' https://localhost:${HIRS_ACA_PORTAL_PORT}/$HIRS_ACA_POST_POINT_TRUST"
|
docker exec -i $aca_container /bin/bash -c "curl -k -F 'file=@$HIRS_CI_REPO_ROOT/.ci/setup/certs/RimSignCert.pem' https://localhost:${HIRS_ACA_PORTAL_PORT}/$HIRS_ACA_POST_POINT_TRUST" > /dev/null
|
||||||
echo "...done"
|
echo "...done"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ if [ "$test" = "10" ] || [ "$test" = "all" ]; then
|
|||||||
uploadTrustedCerts
|
uploadTrustedCerts
|
||||||
setPlatformCerts -p "laptop" -t "default"
|
setPlatformCerts -p "laptop" -t "default"
|
||||||
setRims -p "laptop" -t "default" -u -n
|
setRims -p "laptop" -t "default" -u -n
|
||||||
provisionTpm2 "pass"
|
provisionTpm2 "fail"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Process Test Results, any single failure will send back a failed result.
|
# Process Test Results, any single failure will send back a failed result.
|
||||||
|
Loading…
Reference in New Issue
Block a user