Skip to content

Run quick systemd tests in CI #2419

Open
@mflendrich

Description

@mflendrich

Issue originally authored by tnozicka as #1379

Currently, systemd unit tests
https://github.com/scylladb/scylla-operator/blob/17f7e8b/pkg/systemd/daemon_test.go#L24
require external systemd instance running which is problematic. This doesn't really fit into an unit test suite. Given it requires external daemon, it's actually more an e2e test and that's why it doesn't work in the new unit test setup where there is no systemd instance present.

We can either split it into a more appropriate suite but given the limited coverage this gets us, we may consider a mock or a different way to test this depending on the amount of work each solution would require. This is inherently also covered in our main e2e suite but this was a nice way to find out sooner with less debugging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/new-testCategorizes issue/PR as a newly created test case.lifecycle/from-migrationIndicates that this issue is a copy of a corresponding issue mentioned in the description.priority/backlogHigher priority than priority/awaiting-more-evidence.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions