InitCommandTest

11

tests

0

failures

0

ignored

0.152s

duration

100%

successful

Tests

Test Duration Result
--systemd also generates the nightly Docker cleanup timer 0.008s passed
--systemd generates unit and environment file with install instructions 0.057s passed
--systemd keeps an existing environment file 0.013s passed
--systemd without a resolvable jar path generates no unit file 0.004s passed
creates config files with auto-detected values 0.033s passed
creates the secrets config and its directory readable only by the owner 0.007s passed
detects account from https url 0.008s passed
does not overwrite existing files 0.005s passed
does not write a second config beside one under the previous name 0.003s passed
parses ssh url 0.004s passed
reproduces path root mismatch issue 0.010s passed

Standard output

Creating nstance of class de.hoennig.werkator.commands.InitCommandTest
created .git/werkator/.werkator.yml
created .werkator.yml
.git/gittally/.gittally.yml already exists — not overwritten
.gittally.yml already exists — not overwritten
created .git/werkator/.werkator.yml
created .werkator.yml
created .git/werkator/.werkator.yml
created .werkator.yml
created .git/werkator/.werkator.yml
created .werkator.yml
created .git/werkator/.werkator.yml
.werkator.yml already exists — not overwritten
created .git/werkator/.werkator.yml
created .werkator.yml
created .git/werkator/werkator-werkator-init-test5971907493918884149.service
created .git/werkator/werkator.env
created .git/werkator/werkator-docker-prune.service
created .git/werkator/werkator-docker-prune.timer
install and start the service and the nightly Docker cleanup with:
  ln -sf /tmp/werkator-init-test5971907493918884149/.git/werkator/werkator-werkator-init-test5971907493918884149.service ~/.config/systemd/user/werkator-werkator-init-test5971907493918884149.service
  ln -sf /tmp/werkator-init-test5971907493918884149/.git/werkator/werkator-docker-prune.service ~/.config/systemd/user/werkator-docker-prune.service
  ln -sf /tmp/werkator-init-test5971907493918884149/.git/werkator/werkator-docker-prune.timer ~/.config/systemd/user/werkator-docker-prune.timer
  systemctl --user daemon-reload
  systemctl --user enable --now werkator-werkator-init-test5971907493918884149.service
  systemctl --user enable --now werkator-docker-prune.timer
created .git/werkator/.werkator.yml
created .werkator.yml
created .git/werkator/werkator-werkator-init-test14046477459823072419.service
created .git/werkator/werkator.env
created .git/werkator/werkator-docker-prune.service
created .git/werkator/werkator-docker-prune.timer
install and start the service and the nightly Docker cleanup with:
  ln -sf /tmp/werkator-init-test14046477459823072419/.git/werkator/werkator-werkator-init-test14046477459823072419.service ~/.config/systemd/user/werkator-werkator-init-test14046477459823072419.service
  ln -sf /tmp/werkator-init-test14046477459823072419/.git/werkator/werkator-docker-prune.service ~/.config/systemd/user/werkator-docker-prune.service
  ln -sf /tmp/werkator-init-test14046477459823072419/.git/werkator/werkator-docker-prune.timer ~/.config/systemd/user/werkator-docker-prune.timer
  systemctl --user daemon-reload
  systemctl --user enable --now werkator-werkator-init-test14046477459823072419.service
  systemctl --user enable --now werkator-docker-prune.timer
created .git/werkator/.werkator.yml
created .werkator.yml
created .git/werkator/werkator-werkator-init-test5972747119753771426.service
.git/werkator/werkator.env already exists — not overwritten
created .git/werkator/werkator-docker-prune.service
created .git/werkator/werkator-docker-prune.timer
install and start the service and the nightly Docker cleanup with:
  ln -sf /tmp/werkator-init-test5972747119753771426/.git/werkator/werkator-werkator-init-test5972747119753771426.service ~/.config/systemd/user/werkator-werkator-init-test5972747119753771426.service
  ln -sf /tmp/werkator-init-test5972747119753771426/.git/werkator/werkator-docker-prune.service ~/.config/systemd/user/werkator-docker-prune.service
  ln -sf /tmp/werkator-init-test5972747119753771426/.git/werkator/werkator-docker-prune.timer ~/.config/systemd/user/werkator-docker-prune.timer
  systemctl --user daemon-reload
  systemctl --user enable --now werkator-werkator-init-test5972747119753771426.service
  systemctl --user enable --now werkator-docker-prune.timer
created .git/werkator/.werkator.yml
created .werkator.yml
Error: cannot determine the Werkator jar path — run `init --systemd` via `java -jar <path-to>/werkator.jar`
created ../../../../../../../../../../tmp/werkator-init-test10628590380642005926/.git/werkator/.werkator.yml
created ../../../../../../../../../../tmp/werkator-init-test10628590380642005926/.werkator.yml
Error: cannot determine the Werkator jar path — run `init --systemd` via `java -jar <path-to>/werkator.jar`