Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test THIM on ACI #5852

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .snpcc_canary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
___ ___ ___
(. =) Y (0 0) (x X) Y
O \ o | /
/-xXx--//-----x=x--/-xXx--/---x---->>|
/-xXx--//-----x=x--/-xXx--/---x---->>|-
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1665,6 +1665,10 @@ if(BUILD_TESTS)
PYTHON_SCRIPT
${CMAKE_SOURCE_DIR}/tests/external_executor/external_indexer.py
)

if(COMPILE_TARGET STREQUAL "snp")
add_test(NAME amd_certs COMMAND ${CMAKE_SOURCE_DIR}/tests/amd_certs.sh)
endif()
endif()
endif()

Expand Down
15 changes: 15 additions & 0 deletions tests/amd_certs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache 2.0 License.

set -ex

achamayou marked this conversation as resolved.
Show resolved Hide resolved
# Our linter, shellcheck, expects (reasonably) that env vars are all caps. Alas.
# shellcheck disable=SC2154
if [ -z "${Fabric_NodeIPOrFQDN}" ]; then
URL="http://169.254.254.169"
else
URL="http://${Fabric_NodeIPOrFQDN}:2377"
fi

curl -s "${URL}/metadata/THIM/amd/certification" -H "Metadata: true" | jq
Loading