Skip to content

Add update command integration tests to contest #3576

@saku3

Description

@saku3

Description

Add update integration tests to tests/contest equivalent to tests/integration/update.bats in runc, then make youki pass them.

Motivation

The contest framework (Rust-based OCI runtime integration tests) currently has no coverage for update functionality. The existing BATS-based tests in runc's update.bats cover this area but are not available through contest.

Implement contest tests

Add the following tests to tests/contest.

These tests are skipped when running with youki, as the required functionality is not fully implemented yet.

  • update cgroup v1/v2 common limits (test(contest): add update cgroup v2 common limits integration test #3580)
  • update cgroup cpu limits
  • update pids.limit
  • cpu burst
  • set cpu period with no quota
  • set cpu period with no quota (invalid period)
  • set cpu quota with no period
  • update cpu period with no previous period/quota set
  • update cpu quota with no previous period/quota set
  • update cpu period in a pod cgroup with pod limit set
  • update cgroup cpu.idle
  • update cgroup cpu.idle via systemd v252+
  • update cgroup v2 resources via unified map
  • update cpuset parameters via resources.CPU
  • update cpuset parameters via v2 unified map
  • update cpuset cpus range via v2 unified map
  • update rt period and runtime
  • update devices [minimal transition rules]
  • update paused container
  • update memory vs CheckBeforeUpdate
  • update per-device iops/bps values

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions