1
0
Fork 0
mirror of https://github.com/containers/youki synced 2024-05-18 05:26:13 +02:00
Commit Graph

849 Commits

Author SHA1 Message Date
yihuaf 5b6df2a9a3 Adds an explaination that runc also fails the test 2021-09-25 04:58:23 +02:00
yihuaf 33794ee5de Fix pidfile 2021-09-23 00:30:30 +02:00
Furisto 9f669d73c0
Merge pull request #320 from utam0k/refactoring/introduce-lifetime-to-ControllerOpt
Avoid cloning LinuxResources because it is a large structure.
2021-09-23 00:16:29 +02:00
utam0k 8023ff445a
avoid cloning LinuxResources because it is a large structure. 2021-09-22 22:48:32 +09:00
utam0k 4bab88d774
Merge pull request #319 from kenoss/style-fix-indentation
style: Fix indentation
2021-09-21 23:19:03 +09:00
keno f4c871aeaa style: Fix indentation 2021-09-21 22:48:36 +09:00
utam0k 8887955037
Merge pull request #318 from shorii/fix-error_message
Fix error message(`LinuixIdMapping` to `uid_mappings`)
2021-09-21 22:20:14 +09:00
shorii 5c195d8b5f align to the runtime spec 2021-09-21 21:50:58 +09:00
utam0k 61d6695cb3
Merge pull request #311 from utam0k/improvement/add-test-builder_impl_setup_id
add unit tests for gid and uid mapping in `builder_impl()`
2021-09-21 21:26:09 +09:00
shorii 072a94ba26 fix error message 2021-09-21 20:55:52 +09:00
Furisto 19316ce3c1
Implement apparmor support (#312)
* Implement apparmor support

* Add explanation to apparmor test
2021-09-20 16:13:13 -07:00
utam0k 2af52169cf
Merge pull request #310 from YJDoc2/add-test-utils
Add integration test utils necessary for implementing rest integration tests
2021-09-21 00:29:20 +09:00
utam0k 15e0e37b78
Merge pull request #309 from tiqwab/support-other-rootfs-propagations
Support 'shared' and 'unbindable' rootfs propagations
2021-09-21 00:24:02 +09:00
Yashodhan Joshi 28ce007066 Add resolution of runtime path using `which` crate
Now it is not required to give complete path of the runtime, if it exists in $PATH
previously needed to provide /usr/bin/run, now only runc resolves to it
2021-09-20 20:48:10 +05:30
utam0k 13fe16f32b
Merge pull request #262 from alfonsoros88/del_new
Add `new` method to instantiate Delete command
2021-09-20 23:34:05 +09:00
Yashodhan Joshi 5e07e90e18 Change SLEEP_TIME from u64 to Duration 2021-09-20 19:17:01 +05:30
Alfonso Ros bd323fd840
Add `new` method to instantiate Delete command 2021-09-20 10:56:51 +02:00
tiqwab 10c6c2642d Add test for find_parent_mount 2021-09-20 17:35:50 +09:00
utam0k b3d0aaf3b6 add unit tests for gid and uid mapping in builder_impl(). 2021-09-20 16:33:49 +09:00
utam0k 107dd91881 refactor around uid and gid mapping. 2021-09-20 16:33:20 +09:00
tiqwab 254226c2c8 Add error context 2021-09-20 13:36:59 +09:00
Yashodhan Joshi afd546bc26 Move sleep after sending kill signal to test itself
Sleeping is necessary only when running all lifecycle tests,
as otherwise container is still running when we try to delete, and delete test fails.
But keeping sleep in kill function slows all other test where we do not try deleting immidiately afterwards.
Thus moved the sleep in the kill test itself, so only happend when testing lifecycle functions.
2021-09-19 21:01:02 +05:30
Yashodhan Joshi 3a0882db6e Change workspace folder to temp dirs, Add support functions for creating bundles,starting containers etc. 2021-09-19 20:54:22 +05:30
Yashodhan Joshi 4a4e54b0da Convert hard-coded word `youki` to more generic `runtime` 2021-09-19 20:38:20 +05:30
utam0k 4392293301
Merge pull request #308 from utam0k/refactoring/test_framework
handle name as a str instead of a String.
2021-09-19 23:49:05 +09:00
utam0k 7b20c46efd handle name as a str instead of a String in youki_integration_test. 2021-09-19 22:11:42 +09:00
utam0k aaebeaf614 add `test_framework` to workspace exclude. 2021-09-19 17:10:14 +09:00
tiqwab c1281066ad Support 'shared' and 'unbindable' rootfs propagations 2021-09-19 16:54:35 +09:00
utam0k 24c6dae536 handle name as a str instead of a String. 2021-09-19 16:44:20 +09:00
utam0k 825088992a
prepare to use system call mocks in unit tests (#304) 2021-09-18 11:32:15 -07:00
utam0k f81b08af47
Merge pull request #306 from YJDoc2/fix_ci_changes_job
Fix Changes Job in CI
2021-09-19 00:38:45 +09:00
Yashodhan Joshi a17e4f28b0 Fix Changes Job in CI 2021-09-18 20:50:07 +05:30
utam0k 74ed6304cd
Merge pull request #305 from YJDoc2/make_id_nonempty
Forbid empty string values for container id in commands
2021-09-19 00:06:34 +09:00
Yashodhan Joshi 54811bbbf4 Forbid empty string values for container id in commands 2021-09-18 20:19:09 +05:30
utam0k 71ddb3480c
Merge pull request #302 from shorii/fix-doc-comment
fix doc comment of with_preserved_fds
2021-09-18 15:36:36 +09:00
shorii 9e7ec690b2 fix doc comment of with_preserved_fds 2021-09-18 14:23:44 +09:00
utam0k 4ed8b84626
update the README about seccomp. (#301) 2021-09-16 09:34:25 -07:00
utam0k eca4dee46c
Merge pull request #292 from yihuaf/yihuaf/seccomp
Implemented seccomp and pass the integration test
2021-09-16 20:43:41 +09:00
yihuaf c0c51b13ab make clippy happy
was failing with :C-like enum variant discriminant is not portable to
32-bit targets
2021-09-16 07:56:05 +02:00
yihuaf 57d436290e Adds a seccomp binding 2021-09-16 07:39:04 +02:00
yihuaf fc21158555 address review 2021-09-15 23:50:47 +02:00
yihuaf f8925313cf address review 2021-09-15 20:21:35 +02:00
yihuaf 4d147e66f6 fix: seccomp should run before drop cap 2021-09-15 20:05:46 +02:00
yihuaf 2317cdff1f clippy happy 2021-09-15 20:05:46 +02:00
yihuaf bfbf52b9a8 fix: seccomp should not automatically set no new privilege 2021-09-15 20:05:46 +02:00
yihuaf 04ea0c4cab combine two args to test the multiple args case 2021-09-15 20:05:46 +02:00
yihuaf 35c31145ad enable seccomp integration test 2021-09-15 20:05:46 +02:00
yihuaf 052ba25769 Implement the seccomp profile 2021-09-15 20:05:46 +02:00
utam0k c0a344e863
Merge pull request #298 from yihuaf/yihuaf/cov
Don't skip the hook timeout test, to incease coverage
2021-09-15 22:14:30 +09:00
yihuaf 14b54bf764 Don't skip the timeout test 2021-09-15 01:11:41 +02:00