kata-containers/tests
Dan Mihai a37f10fc87 genpolicy: validate each exec command line arg
Generate policy that validates each exec command line argument, instead
of joining those args and validating the resulting string. Joining the
args ignored the fact that some of the args might include space
characters.

The older format from genpolicy-settings.json was similar to:

    "ExecProcessRequest": {
      "commands": [
                "sh -c cat /proc/self/status"
        ],
      "regex": []
    },

That format will not be supported anymore. genpolicy will detect if its
users are trying to use the older "commands" field and will exit with
a relevant error message in that case.

The new settings format is:

    "ExecProcessRequest": {
      "allowed_commands": [
        [
          "sh",
          "-c",
          "cat /proc/self/status"
        ]
      ],
      "regex": []
    },

Signed-off-by: Dan Mihai <dmihai@microsoft.com>
2024-07-25 16:57:17 +00:00
..
cmd docs: update for SNP attestation 2024-07-10 15:06:55 +00:00
functional Merge pull request #9962 from GabyCT/topic/removecif 2024-07-10 09:02:33 +01:00
integration genpolicy: validate each exec command line arg 2024-07-25 16:57:17 +00:00
metrics metrics: Update launch times to use grep -F 2024-07-23 17:13:52 +00:00
stability stability: General improvements for soak parallel test 2024-07-04 16:32:46 +00:00
.gitignore
.golangci.yml build: Update golang version to 1.22.2 2024-04-26 15:50:29 +02:00
cleanup_resources.py ci: cleanup: Ignore nonexisting resources 2024-07-02 22:23:54 +00:00
common.bash common: Add share fs information for dragonball 2024-07-11 17:09:35 +00:00
error.sh scripts: Add error script 2024-02-20 18:30:03 +00:00
gha-run-k8s-common.sh tests:gha: delete namespace before resetting namespace 2024-07-10 12:08:28 +08:00
git-helper.sh
go.mod build(deps): bump the go_modules group across 5 directories with 8 updates 2024-04-30 09:46:13 +01:00
go.sum build(deps): bump the go_modules group across 5 directories with 8 updates 2024-04-30 09:46:13 +01:00
install_go.sh deps: bumping yq to v4.40.7 2024-05-31 13:28:34 -04:00
install_rust.sh deps: bumping yq to v4.40.7 2024-05-31 13:28:34 -04:00
kata-arch.sh
kata-doc-to-script.sh
README.md docs: Add general tests documentation in main README 2024-03-04 21:53:01 +00:00
static-checks.sh tests: Fix indentation in static checks script 2024-05-29 15:43:44 +00:00

Kata Containers Tests

This directory contains various types of tests for testing the Kata Containers repository.

Test Content

We provide several tests to ensure Kata-Containers run on different scenarios and with different container managers.

  1. Integration tests to ensure compatibility with:
  2. Stability tests
  3. Metrics
  4. Functional

GitHub Actions

Kata Containers uses GitHub Actions in the Kata Containers repository.