Skip to content

MCD: Move sets of functionality with side effects to clients to allow for unit testing #101

Closed

Description

@ashcrow

In #33 we identified that a major blocker for unittesting the MCD are all the side effects that occur from internal functions. The best way we came up with for getting around this limitation is to move things which cause side effects into clients. This issue is a tracker to link to as more of our items move over.

Activity

  1. changed the title [-]Move more daemon items to clients to allow for testing[/-] [+]MCD: Move sets of functionality with side effects to clients to allow for unit testing[/+] on Sep 28, 2018
  2. ashcrow commented on Oct 4, 2018

    @ashcrow
    MemberAuthor
  3. cgwalters commented on Oct 4, 2018

    @cgwalters
    Member

    For rpm-ostree we end up not having a whole lot of unit tests and heavily lean on "integration tests" which inject the built code into a VM. We're slowly adding some more unit tests since Rust makes it trivial but still...

    I haven't hacked on this code really much myself yet, but I imagine we'd like to have a fairly fast iterative flow that tests something more "real" with live Ignition, rpm-ostree etc.

  4. runcom commented on Feb 11, 2019

    @runcom
    Member

    now that we have e2e properly setup, let's go e2e for these kinds of testing as the abstraction just adds complexity (and has some bug as well)

  5. openshift-bot commented on Sep 2, 2020

    @openshift-bot
    Contributor

    Issues go stale after 90d of inactivity.

    Mark the issue as fresh by commenting /remove-lifecycle stale.
    Stale issues rot after an additional 30d of inactivity and eventually close.
    Exclude this issue from closing by commenting /lifecycle frozen.

    If this issue is safe to close now please do so with /close.

    /lifecycle stale

  6. added
    lifecycle/stale
    on Sep 2, 2020
  7. added a commit that references this issue on Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/stale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions