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
..
2023-01-03 12:47:16 -08:00
2022-12-29 14:25:14 +08:00
2022-12-29 14:25:14 +08:00
2022-11-20 09:43:54 +08:00
2022-07-13 10:54:59 -07:00
2022-09-22 07:24:48 +00:00
2022-11-19 01:12:02 +01:00
2022-12-21 17:56:56 -03:00
2022-12-29 14:25:14 +08:00
2022-12-29 14:25:14 +08:00
2022-12-26 04:03:45 -05:00
2022-11-19 01:12:02 +01:00
2022-11-19 01:12:02 +01:00
2023-01-03 12:47:16 -08:00
2022-12-08 19:31:36 +00:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-12-08 19:31:36 +00:00
2022-07-13 10:54:59 -07:00
2022-12-08 19:31:36 +00:00
2022-11-14 21:07:48 +00:00
2022-07-13 10:54:59 -07:00
2022-12-29 14:25:14 +08:00
2022-07-13 10:54:59 -07:00
2022-10-12 14:41:01 +02:00
2022-10-12 14:41:01 +02:00
2022-07-13 10:54:59 -07:00
2022-09-20 18:38:09 -07:00
2022-07-13 10:54:59 -07:00
2022-12-08 19:31:36 +00:00
2023-01-10 15:41:04 +01:00
2022-07-13 10:54:59 -07:00
2022-12-29 14:25:14 +08:00
2022-07-13 10:54:59 -07:00
2022-12-29 14:25:14 +08:00
2022-07-13 10:54:59 -07:00
2022-12-08 19:31:36 +00:00
2022-12-29 14:25:14 +08:00
2022-09-30 16:55:54 +08:00
2022-12-29 14:25:14 +08:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-12-14 01:47:22 -08:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-12-07 15:11:00 +08:00
2022-11-11 01:28:27 +00:00
2022-07-13 10:54:59 -07:00
2022-11-11 01:28:27 +00:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2023-01-03 12:47:16 -08:00
2022-11-18 21:13:34 +00:00
2022-11-18 21:13:34 +00:00
2022-12-23 09:23:56 +00:00
2022-07-13 10:54:59 -07:00
2022-12-29 14:25:14 +08:00
2022-12-29 14:25:14 +08:00
2022-12-14 01:47:22 -08:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-12-14 01:47:22 -08:00
2022-12-29 14:25:14 +08:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-12-14 18:22:52 -08:00
2022-09-22 14:38:52 +08:00
2022-12-29 14:25:14 +08:00
2022-07-29 16:08:07 -07:00
2022-09-22 14:38:52 +08:00
2022-12-23 09:23:56 +00:00
2022-11-14 21:07:48 +00:00
2022-10-12 14:41:01 +02:00
2022-12-29 14:25:14 +08:00
2022-07-13 10:54:59 -07:00
2022-10-12 14:41:01 +02:00
2022-11-28 12:06:41 -08:00
2022-12-15 11:21:45 -08:00
2022-07-13 10:54:59 -07:00
2022-12-23 09:23:56 +00:00
2022-10-12 13:45:20 +03:00
2022-12-29 14:25:14 +08:00
2022-11-09 12:12:39 +08:00
2022-07-13 10:54:59 -07:00
2022-12-27 14:16:40 +08:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2022-12-23 09:23:56 +00:00
2022-11-18 21:09:43 +00:00