Merge pull request #10270 from Sumynwa/sumsharma/enable_agent_tests_in_ci

ci: Enable kata agent API tests
This commit is contained in:
Dan Mihai 2024-09-05 14:24:49 -07:00 committed by GitHub
commit 1885478e2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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()