From e91ed238a4c6d4fecb7df9b73ba68edce4d6cb7b Mon Sep 17 00:00:00 2001 From: "yudong.cz" Date: Thu, 13 Feb 2025 15:38:59 +0800 Subject: [PATCH] add trustee-function-test --- conf/functional/trustee-function-test.conf | 0 tests/trustee-function-test/Readme.md | 38 ++++++++++++++++++++++ tests/trustee-function-test/install.sh | 21 ++++++++++++ tests/trustee-function-test/parse.awk | 5 +++ tests/trustee-function-test/run.sh | 18 ++++++++++ 5 files changed, 82 insertions(+) create mode 100644 conf/functional/trustee-function-test.conf create mode 100644 tests/trustee-function-test/Readme.md create mode 100644 tests/trustee-function-test/install.sh create mode 100755 tests/trustee-function-test/parse.awk create mode 100644 tests/trustee-function-test/run.sh diff --git a/conf/functional/trustee-function-test.conf b/conf/functional/trustee-function-test.conf new file mode 100644 index 0000000..e69de29 diff --git a/tests/trustee-function-test/Readme.md b/tests/trustee-function-test/Readme.md new file mode 100644 index 0000000..603421c --- /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 0000000..b639fea --- /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 0000000..9a8bbc5 --- /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 0000000..8ce8101 --- /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 -- Gitee