mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-15 16:13:20 +00:00
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:
parent
cc9aeee81a
commit
e1ac2f4416
2
.github/workflows/basic-ci-amd64.yaml
vendored
2
.github/workflows/basic-ci-amd64.yaml
vendored
@ -366,7 +366,7 @@ jobs:
|
|||||||
run: bash tests/functional/kata-agent-apis/gha-run.sh install-dependencies
|
run: bash tests/functional/kata-agent-apis/gha-run.sh install-dependencies
|
||||||
|
|
||||||
- name: get-kata-tarball
|
- name: get-kata-tarball
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: kata-static-tarball-amd64${{ inputs.tarball-suffix }}
|
name: kata-static-tarball-amd64${{ inputs.tarball-suffix }}
|
||||||
path: kata-artifacts
|
path: kata-artifacts
|
||||||
|
20
tests/functional/kata-agent-apis/api-tests/dummy.bats
Executable file
20
tests/functional/kata-agent-apis/api-tests/dummy.bats
Executable 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"
|
||||||
|
}
|
@ -26,7 +26,7 @@ function install_dependencies() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function run() {
|
function run() {
|
||||||
exit 0
|
bash -c ${kata_agent_apis_dir}/run-agent-api-tests.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
|
@ -33,7 +33,9 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
run_tests() {
|
run_tests() {
|
||||||
info "placeholder: no tests"
|
info "Running agent API tests"
|
||||||
|
|
||||||
|
bats "${kata_agent_apis_dir}/api-tests"
|
||||||
}
|
}
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user