ci: Enable kata agent api tests

This commit enables running tests for kata agent apis.
The 'api-tests' directory will contain bats test files for
individual APIs.

Fixes #10269

Signed-off-by: Sumedh Alok Sharma <sumsharma@microsoft.com>
This commit is contained in:
Sumedh Alok Sharma 2024-09-05 23:25:45 +05:30
parent cc9aeee81a
commit e1ac2f4416
4 changed files with 25 additions and 3 deletions

View File

@ -366,7 +366,7 @@ jobs:
run: bash tests/functional/kata-agent-apis/gha-run.sh install-dependencies
- name: get-kata-tarball
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: kata-static-tarball-amd64${{ inputs.tarball-suffix }}
path: kata-artifacts

View File

@ -0,0 +1,20 @@
#!/usr/bin/env bats
# Copyright (c) 2024 Microsoft Corporation
#
# SPDX-License-Identifier: Apache-2.0
load "${BATS_TEST_DIRNAME}/../../../common.bash"
load "${BATS_TEST_DIRNAME}/../setup_common.sh"
setup_file() {
info "setup"
}
@test "Dummy test" {
info "placeholder"
}
teardown_file() {
info "teardown"
}

View File

@ -26,7 +26,7 @@ function install_dependencies() {
}
function run() {
exit 0
bash -c ${kata_agent_apis_dir}/run-agent-api-tests.sh
}
function main() {

View File

@ -33,7 +33,9 @@ EOF
}
run_tests() {
info "placeholder: no tests"
info "Running agent API tests"
bats "${kata_agent_apis_dir}/api-tests"
}
main()