1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-31 07:51:21 +03:00
systemd/test/units
Luca Boccassi e26fe5f911 portable: add 'reattach' verb and DBUS interface
Add 'reattach' verb to portablectl, and corresponding DBUS interface
to systemd-portabled.
Takes the same parameters as 'attach', but it will do a 'detach' (and
it will refuse to proceed if it cannot be done) first, matching on
the unversioned prefix of the new image. Eg:

portablectl reattach /tmp/foo_2.raw

will cause foo_1.raw to be detached, and foo_2.raw to be attached.

The key difference with a manual 'detach old' plus 'attach new' is that
the running units are not disturbed until after the attach completed,
and if --now is passed they are then restarted.
A 'detach' is not allowed normally if the units are running.

By using a restart-after-deploy method, 'reattach' allows for minimal
interruption of service and also for features that only work on restart
(eg: file descriptor store) to work as intended.

The DBUS interface returns two lists: first the removals from the detach
that were not immediately re-added in the attach, so that the caller
can stop the relevant units, and then the list of additions that are
either new or updates, so that the caller can restart/enable the
relevant units. portablectl already implements this with the existing
--now/--enable switches.
2021-02-10 19:07:36 +00:00
..
loopy.service.d
unit-.service.d
unit-with-.service.d
unit-with-multiple-.service.d
unit-with-multiple-dashes.service.d
a-conj.service
a.service
autorelabel.service test/TEST-06: make autorelabel.service a static file too 2020-03-28 11:46:47 +01:00
b.service
basic.target license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
c.service
d.service
daughter.service
dml-discard-empty.service
dml-discard-set-ml.service
dml-discard.slice
dml-override-empty.service
dml-override.slice
dml-passthrough-empty.service
dml-passthrough-set-dml.service
dml-passthrough-set-ml.service
dml-passthrough.slice
dml.slice
e.service
end.service test: move TEST-01-BASIC setup to static files 2020-03-28 11:46:47 +01:00
f.service
g.service
grandchild.service
h.service
hello-after-sleep.target
hello.service
i.service
loopy2.service
loopy3.service
loopy4.service
loopy.service
nomem.slice
nomemleaf.service
parent-deep.slice
parent.slice
sched_idle_bad.service
sched_idle_ok.service
sched_rr_bad.service
sched_rr_change.service
sched_rr_ok.service
shutdown.target license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
sleep.service
sockets.target license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
son.service
sysinit.target license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
test-honor-first-shutdown.service test: use KILL instead of SIGKILL in TEST-52-HONORFIRSTSHUTDOWN 2020-07-05 11:00:57 +01:00
test-honor-first-shutdown.sh feature to honor first shutdown request to completion 2020-06-24 09:42:01 +02:00
testsuite-01.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-02.service test: switch TEST-02-CRYPTSETUP and TEST-24-UNITTESTS 2020-09-24 17:02:20 +02:00
testsuite-02.sh test: switch TEST-02-CRYPTSETUP and TEST-24-UNITTESTS 2020-09-24 17:02:20 +02:00
testsuite-03.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-03.sh test: move TEST-03-JOBS setup to static files 2020-03-28 11:46:47 +01:00
testsuite-04.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-04.sh test: Stricter test case for #15654 (Add more checks) 2020-05-13 21:32:45 +02:00
testsuite-05.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-05.sh test: use show -P in places 2020-04-03 18:24:21 +02:00
testsuite-06.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-06.sh test/TEST-06: skip test if no selinux 2020-03-28 11:46:47 +01:00
testsuite-07.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-07.sh test: move TEST-07-ISSUE-1981 setup to static files 2020-03-28 11:46:47 +01:00
testsuite-08.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-09.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-10.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-11.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-11.sh test: move TEST-11-ISSUE-3166 setup to static files 2020-03-28 11:46:47 +01:00
testsuite-12.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-12.sh test: move TEST-12-ISSUE-3171 setup to static files 2020-03-28 11:46:47 +01:00
testsuite-13.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-13.sh machine: enter target PID namespace when adding a live mount 2021-01-18 17:24:05 +00:00
testsuite-14.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-14.sh test: move most of TEST-14-MACHINE-ID setup to static files 2020-03-28 11:46:47 +01:00
testsuite-15.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-15.sh test/TEST-15: call daemon-reload in two more places 2020-03-28 11:46:47 +01:00
testsuite-16.service tests: replace the few remaining Type=simple with Type=exec 2020-10-22 11:05:17 +02:00
testsuite-16.sh tree-wide: fix typos 2020-12-02 10:53:33 +01:00
testsuite-17.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-17.sh test: move TEST-17-WANTS setup to static files 2020-03-28 11:46:47 +01:00
testsuite-18.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-18.sh test: move TEST-18-FAILUREACTION setup to static files 2020-03-28 11:46:47 +01:00
testsuite-19.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-19.sh test: move TEST-19-DELEGATE setup to static files 2020-03-28 11:46:47 +01:00
testsuite-20.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-20.sh test: use show -P in places 2020-04-03 18:24:21 +02:00
testsuite-22.01.sh test: move TEST-22-TMPFILES setup to static files 2020-03-28 11:46:47 +01:00
testsuite-22.02.sh test: move TEST-22-TMPFILES setup to static files 2020-03-28 11:46:47 +01:00
testsuite-22.03.sh test: move TEST-22-TMPFILES setup to static files 2020-03-28 11:46:47 +01:00
testsuite-22.04.sh test: move TEST-22-TMPFILES setup to static files 2020-03-28 11:46:47 +01:00
testsuite-22.05.sh test: move TEST-22-TMPFILES setup to static files 2020-03-28 11:46:47 +01:00
testsuite-22.06.sh test: move TEST-22-TMPFILES setup to static files 2020-03-28 11:46:47 +01:00
testsuite-22.07.sh test: move TEST-22-TMPFILES setup to static files 2020-03-28 11:46:47 +01:00
testsuite-22.08.sh test: move TEST-22-TMPFILES setup to static files 2020-03-28 11:46:47 +01:00
testsuite-22.09.sh test: move TEST-22-TMPFILES setup to static files 2020-03-28 11:46:47 +01:00
testsuite-22.10.sh test: add a test that ensures we don't regress on "argument" field handling in tmpfiles.d 2021-01-12 22:00:35 +01:00
testsuite-22.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-22.sh test: move TEST-22-TMPFILES setup to static files 2020-03-28 11:46:47 +01:00
testsuite-23.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-23.sh test: move TEST-23-TYPE-EXEC setup to static files 2020-03-28 11:46:47 +01:00
testsuite-24.service test: switch TEST-02-CRYPTSETUP and TEST-24-UNITTESTS 2020-09-24 17:02:20 +02:00
testsuite-25.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-25.sh tree-wide: fix spelling errors 2020-04-21 23:21:08 +02:00
testsuite-26.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-26.sh test: move TEST-26-SETENV setup to static files 2020-03-28 11:46:47 +01:00
testsuite-27.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-27.sh Add truncate: to StandardOutput= etc. 2021-01-15 09:54:50 +01:00
testsuite-28.service test/TEST-28: avoid race in handling of /testok 2020-03-28 11:51:29 +01:00
testsuite-29.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-29.sh test: add test for device renaming issue #16967 2020-09-15 11:29:38 +09:00
testsuite-30.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-30.sh test: move TEST-30-ONCLOCKCHANGE setup to static files 2020-03-28 11:46:47 +01:00
testsuite-31.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-31.sh test: move TEST-31-DEVICE-ENUMERATION setup to static files 2020-03-28 11:46:47 +01:00
testsuite-32.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-32.sh test: use show -P in places 2020-04-03 18:24:21 +02:00
testsuite-33.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-33.sh test: move TEST-33-CLEAN-UNIT setup to static files 2020-03-28 11:46:47 +01:00
testsuite-34.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-34.sh test: move TEST-34-DYNAMICUSERMIGRATE setup to static files 2020-03-28 11:46:47 +01:00
testsuite-36.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-36.sh tree-wide: fix typo 2020-12-16 18:30:15 +01:00
testsuite-37.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-37.sh test: move TEST-37-RUNTIMEDIRECTORYPRESERVE setup to static files 2020-03-28 11:46:48 +01:00
testsuite-38-sleep.service test: add test for cgroup v2 freezer support 2020-04-30 19:02:55 +02:00
testsuite-38.service test: add test for cgroup v2 freezer support 2020-04-30 19:02:55 +02:00
testsuite-38.sh tests: sleep a bit and give kernel time to perform the action after manual freeze/thaw 2020-06-05 16:10:28 +02:00
testsuite-39.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-39.sh test: move TEST-39-EXECRELOAD setup to static files 2020-03-28 11:46:48 +01:00
testsuite-40.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-40.sh test: move TEST-40-EXEC-COMMAND-EX setup to static files 2020-03-28 11:46:48 +01:00
testsuite-41.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-41.sh test: use show -P in places 2020-04-03 18:24:21 +02:00
testsuite-42.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-42.sh test: move TEST-42-EXECSTOPPOST setup to static files 2020-03-28 11:46:48 +01:00
testsuite-43.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-43.sh test: make the systemd-run calls synchronous 2020-05-27 08:36:57 +02:00
testsuite-44.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-44.sh test: move TEST-44-* to static files 2020-03-28 11:46:48 +01:00
testsuite-46.service units: make systemd-homed.service installable 2020-03-31 14:55:14 +02:00
testsuite-46.sh test: drop Disk (Size|Free|Floor|Ceiling) fields prior comparing 2020-04-21 22:09:35 +02:00
testsuite-47-repro.service test: move TEST-47-* to static files 2020-03-28 11:50:53 +01:00
testsuite-47-repro.sh test: move TEST-47-* to static files 2020-03-28 11:50:53 +01:00
testsuite-47.service test: make sure to reset state before starting integration tests 2020-03-28 11:51:27 +01:00
testsuite-47.sh test: bump the TEST-47 sleeps once again 2020-07-08 22:09:55 +02:00
testsuite-48.service core: reload cache if it's dirty when starting a UNIT_NOT_FOUND unit 2020-05-30 16:50:05 +02:00
testsuite-48.sh core: refresh unit cache when building a transaction if UNIT_NOT_FOUND 2020-07-07 10:09:24 +02:00
testsuite-49.service test: add integration test for udev event timeout 2020-06-05 11:09:21 +02:00
testsuite-49.sh test: add integration test for udev event timeout 2020-06-05 11:09:21 +02:00
testsuite-50.service dissect: support single-filesystem verity images with external verity hash 2020-06-09 12:19:21 +01:00
testsuite-50.sh test-50-dissect: move minimal image setup to common setup function 2021-02-10 18:54:12 +00:00
testsuite-51-repro-1.service core: don't consider SERVICE_SKIP_CONDITION for abnormal or failure restarts 2020-06-10 17:12:55 +02:00
testsuite-51-repro-2.service core: don't consider SERVICE_SKIP_CONDITION for abnormal or failure restarts 2020-06-10 17:12:55 +02:00
testsuite-51.service core: don't consider SERVICE_SKIP_CONDITION for abnormal or failure restarts 2020-06-10 17:12:55 +02:00
testsuite-51.sh core: don't consider SERVICE_SKIP_CONDITION for abnormal or failure restarts 2020-06-10 17:12:55 +02:00
testsuite-53.service timer: Adjust calendar timers based on monotonic timer instead of realtime 2020-07-15 09:23:09 +02:00
testsuite-53.sh timer: Adjust calendar timers based on monotonic timer instead of realtime 2020-07-15 09:23:09 +02:00
testsuite-54.service test: add test suite for new credentials logic 2020-08-25 19:46:36 +02:00
testsuite-54.sh test: add test suite for new credentials logic 2020-08-25 19:46:36 +02:00
testsuite-55.service test: add test for new "sticky" tags logic 2020-09-01 17:40:12 +02:00
testsuite-55.sh sd-device: make TAGS= property prefixed and suffixed with ":" 2020-12-14 14:04:53 +09:00
testsuite-56-slowgrowth.sh test: add basic memory pressure extended test for oomd 2020-10-22 17:04:22 -07:00
testsuite-56-testbloat.service test: fix TEST-56-OOMD thresholds for linux 5.9 changes 2020-12-02 15:27:15 -08:00
testsuite-56-testchill.service test: make TEST-56-OOMD service unit files static 2020-10-23 15:59:00 -07:00
testsuite-56-workload.slice oom: rework *MemoryPressureLimit= properties to have 1/10000 precision 2021-02-02 17:52:48 -08:00
testsuite-56.service test: add basic memory pressure extended test for oomd 2020-10-22 17:04:22 -07:00
testsuite-56.sh oom: rework *MemoryPressureLimit= properties to have 1/10000 precision 2021-02-02 17:52:48 -08:00
testsuite-57-namespaced.service core: add DBUS method to bind mount new nodes without service restart 2021-01-18 17:24:05 +00:00
testsuite-57-non-namespaced.service core: add DBUS method to bind mount new nodes without service restart 2021-01-18 17:24:05 +00:00
testsuite-57.service core: add DBUS method to bind mount new nodes without service restart 2021-01-18 17:24:05 +00:00
testsuite-57.sh core: add DBUS method to bind mount new nodes without service restart 2021-01-18 17:24:05 +00:00
testsuite-58.service portable: add 'reattach' verb and DBUS interface 2021-02-10 19:07:36 +00:00
testsuite-58.sh portable: add 'reattach' verb and DBUS interface 2021-02-10 19:07:36 +00:00
testsuite.target
timers.target license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
unit-with-multiple-dashes.service
unstoppable.service