Systemd subtest

The systemd subtest checks whether the container can be controlled with Systemd and automatically restarted after a container failure.

The subtest performs the following actions:

  • Prompts you to confirm whether a Systemd unit file for the container exists.

    If the file exists, enter its location. The test will use this file to start and stop the container.

    If the file does not exist, the test can generate one in /etc/systemd/system. Ensure that the container is running before letting the test create the file.

  • Stops the container if it is running.
  • Checks that the container can be controlled by systemd.
  • Verifies that the container is set to restart on failure.
  • Stops the container using the podman kill command to simulate failure.
  • Verifies that the container automatically restarts.
    Success criteria
    • Containers must start successfully during all the tests.