Uploaded image for project: 'OpenShift Windows Containers'
  1. OpenShift Windows Containers
  2. WINC-730

Create interfaces and test implementations for `Mgr` and `Service`

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Major Major
    • WMCO 6.0.0
    • None
    • None
    • WinC - Sprint 216, WinC - Sprint 217, WinC - Sprint 218

      Description

      Without mocking out the structs that are used to interact with the Windows service libraries, large portions of WICD will not be unit testable. To mock these libraries out, interfaces must be created which encapsulates the actual implementation structs. A test implementation must also be created which fulfills the interface. In order for these interfaces to be used, they should live within `pkg/winsvc`.
      Specifically what needs to be mocked out is Mgr and Service.

      Acceptance Criteria

      • The Mgr and Service interfaces are created within `pkg/winsvc`
      • These interfaces are ready to be used within the implementation of the WICD bootstrap, cleanup, and controller commands.
      • These interfaces have implementations that can be used to unit test WICD.

            rh-ee-ssoto Sebastian Soto
            rh-ee-ssoto Sebastian Soto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: