Qasim Sarfraz
9c8c4508ec
cri: Fix TestUpdateOCILinuxResource for host w/o swap controller
Tested on Ubuntu 20.04 w/o swap controller:
```
$ stat -fc %T /sys/fs/cgroup/
tmpfs
$ la -la /sys/fs/cgroup/memory/memory.memsw.limit_in_bytes
ls: cannot access '/sys/fs/cgroup/memory/memory.memsw.limit_in_bytes': No such file or directory
$ go test -v ./pkg/cri/sbserver/ -run TestUpdateOCILinuxResource
=== RUN TestUpdateOCILinuxResource
=== RUN TestUpdateOCILinuxResource/should_be_able_to_patch_the_unified_map
=== RUN TestUpdateOCILinuxResource/should_be_able_to_update_each_resource
=== RUN TestUpdateOCILinuxResource/should_skip_empty_fields
=== RUN TestUpdateOCILinuxResource/should_be_able_to_fill_empty_fields
--- PASS: TestUpdateOCILinuxResource (0.00s)
--- PASS: TestUpdateOCILinuxResource/should_be_able_to_patch_the_unified_map (0.00s)
--- PASS: TestUpdateOCILinuxResource/should_be_able_to_update_each_resource (0.00s)
--- PASS: TestUpdateOCILinuxResource/should_skip_empty_fields (0.00s)
--- PASS: TestUpdateOCILinuxResource/should_be_able_to_fill_empty_fields (0.00s)
PASS
ok github.com/containerd/containerd/pkg/cri/sbserver (cached)
$ go test -v ./pkg/cri/server/ -run TestUpdateOCILinuxResource
=== RUN TestUpdateOCILinuxResource
=== RUN TestUpdateOCILinuxResource/should_be_able_to_update_each_resource
=== RUN TestUpdateOCILinuxResource/should_skip_empty_fields
=== RUN TestUpdateOCILinuxResource/should_be_able_to_fill_empty_fields
=== RUN TestUpdateOCILinuxResource/should_be_able_to_patch_the_unified_map
--- PASS: TestUpdateOCILinuxResource (0.00s)
--- PASS: TestUpdateOCILinuxResource/should_be_able_to_update_each_resource (0.00s)
--- PASS: TestUpdateOCILinuxResource/should_skip_empty_fields (0.00s)
--- PASS: TestUpdateOCILinuxResource/should_be_able_to_fill_empty_fields (0.00s)
--- PASS: TestUpdateOCILinuxResource/should_be_able_to_patch_the_unified_map (0.00s)
PASS
ok github.com/containerd/containerd/pkg/cri/server (cached)
```
Signed-off-by: Qasim Sarfraz <qasimsarfraz@microsoft.com>
2023-01-10 15:41:04 +01:00
..
2022-12-29 14:25:14 +08:00
2020-04-22 19:35:37 -05:00
2023-01-03 12:47:16 -08:00
2023-01-03 12:30:26 -08:00
2023-01-10 15:41:04 +01:00
2022-12-29 14:25:14 +08:00
2022-12-12 09:02:35 +09:00
2022-08-04 18:18:33 -07:00
2022-12-08 18:50:00 +09:00
2022-08-04 18:18:33 -07:00
2022-04-06 07:14:18 +08:00
2022-12-30 00:22:03 -08:00
2022-12-29 14:25:14 +08:00
2022-12-29 14:25:14 +08:00
2022-12-08 09:36:20 -08:00
2022-12-29 14:25:14 +08:00
2022-10-12 14:41:01 +02:00
2022-01-07 10:27:03 +08:00
2022-12-07 10:55:06 -08:00
2021-10-08 16:18:09 +00:00
2022-12-29 14:25:14 +08:00
2022-12-29 14:25:14 +08:00
2021-12-14 00:09:17 +01:00
2022-11-16 22:03:44 -08:00
2020-08-25 17:28:29 -07:00
2022-11-30 12:55:56 -08:00
2022-12-29 14:25:14 +08:00
2021-11-16 11:06:40 +08:00
2022-12-02 22:30:54 -08:00
2022-05-26 13:02:45 -07:00
2022-07-20 22:53:42 +08:00
2023-01-04 11:22:24 -08:00
2022-12-29 14:25:14 +08:00