• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

intel / mfd-host / 23898671767
94%

Build:
DEFAULT BRANCH: main
Ran 02 Apr 2026 11:42AM UTC
Jobs 4
Files 47
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Apr 2026 11:42AM UTC coverage: 94.016% (+0.04%) from 93.972%
23898671767

push

github

abaczek
feat: Added two new methods to WindowsService in mfd_host/feature/service/windows.py:

- "restart_service(name: str) -> None": Restarts a Windows service by name
  using the PowerShell `Restart-Service -Name '<name>' -Force` command.

- "get_service_status(name: str) -> str": Retrieves the current status of a Windows
  service by name using the PowerShell `(Get-Service -Name '<name>').Status`
  command, returning the stripped status string (e.g. "Running", "Stopped").

Both methods log at MODULE_DEBUG level and delegate execution to
`_connection.execute_powershell` with `expected_return_codes={0}`.

Unit tests added in tests/unit/test_mfd_host/test_feature/test_service/test_windows.py
covering the following scenarios:

- restart_service: successful call with correct PowerShell command
- restart_service: MODULE_DEBUG log message emitted
- restart_service: RuntimeError propagates on connection failure

- get_service_status: successful call with correct PowerShell command and stripped return value
- get_service_status: "Stopped" status correctly stripped of trailing newline
- get_service_status: MODULE_DEBUG log message emitted
- get_service_status: RuntimeError propagates on connection failure

Signed-off-by: mwasile <marek.wasilewski@intel.com>

9 of 9 new or added lines in 1 file covered. (100.0%)

1147 of 1220 relevant lines covered (94.02%)

3.76 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23898671767.1 02 Apr 2026 11:42AM UTC 47
94.02
GitHub Action Run
2 23898671767.2 02 Apr 2026 11:43AM UTC 47
94.02
GitHub Action Run
3 23898671767.3 02 Apr 2026 11:44AM UTC 47
94.02
GitHub Action Run
4 23898671767.4 02 Apr 2026 11:44AM UTC 47
94.02
GitHub Action Run
Source Files on build 23898671767
  • Tree
  • List 47
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23898671767
  • 1fb3b9ef on github
  • Prev Build on main (#20371523187)
  • Next Build on main (#23901904834)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc