diff --git a/conf/functional/trustee-function-test.conf b/conf/functional/trustee-function-test.conf new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/tests/trustee-function-test/Readme.md b/tests/trustee-function-test/Readme.md new file mode 100644 index 0000000000000000000000000000000000000000..603421c7eec22a1baa43de51bf5441e07827f1e6 --- /dev/null +++ b/tests/trustee-function-test/Readme.md @@ -0,0 +1,38 @@ +# trustee_test +## Description + +About the test suite + +## Homepage +[https://github.com/openanolis/trustee](https://github.com/openanolis/trustee) + +## Version + +## Category + +functional + +## Parameters + +- __value__ + +## Results + +``` +k8s_deployed_check: Pass +get_kbs-auth-keypair_check: Pass +set_resource_check: Pass +set_attestation_policy_check: Pass +set_no_attestation_policy_check: Pass +set_resource_policy_check: Pass +no_attestation_check: Pass +attestation_check: Pass +``` + +## Manual Run +``` +git clone https://github.com/openanolis/trustee.git +bash trustee/test-files/trustee_function.sh + +``` + diff --git a/tests/trustee-function-test/install.sh b/tests/trustee-function-test/install.sh new file mode 100644 index 0000000000000000000000000000000000000000..b639fea8acee34435c45c3502859e315716c3d5d --- /dev/null +++ b/tests/trustee-function-test/install.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# Availiable environment: +# +# Download variable: +# WEB_URL= +GIT_URL="https://github.com/openanolis/trustee.git + https://kkgithub.com/openanolis/trustee.git" +BRANCH=main + +# fetch() + +build() +{ + : +} + +install() +{ + cp -a $TONE_BM_BUILD_DIR/* $TONE_BM_RUN_DIR/trustee +} + \ No newline at end of file diff --git a/tests/trustee-function-test/parse.awk b/tests/trustee-function-test/parse.awk new file mode 100755 index 0000000000000000000000000000000000000000..9a8bbc58435838c9c3894f6006c375f2549d8a90 --- /dev/null +++ b/tests/trustee-function-test/parse.awk @@ -0,0 +1,5 @@ +#!/usr/bin/awk -f + +/_check/ { + print +} diff --git a/tests/trustee-function-test/run.sh b/tests/trustee-function-test/run.sh new file mode 100644 index 0000000000000000000000000000000000000000..8ce81011cf6cb7b8c456c4e229ad50b424e063ed --- /dev/null +++ b/tests/trustee-function-test/run.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# Avaliable environment: +# +# Download variable: +# WEB_URL= +# GIT_URL= + + +run() +{ + bash trustee/test-files/trustee_function_test.sh +} + +parse() +{ + awk -f $TONE_BM_SUITE_DIR/parse.awk +} + \ No newline at end of file