Skip to content

Improve the system-tests #3

@Lyamc

Description

@Lyamc

So I ran the test on Windows, I understand it does the following:

  1. Install a service com.example.echo
  2. Start the service com.example.echo
    2a) The service will execute %service-manager-rs-PATH%\target\debug\system-tests.exe listen 127.0.0.1:0 --log-file %TEMP%\com.example.echo.log
    2b) The system-tests.exe will create a log file next to it called system-tests.exe.log

The problem is the test doesn't check service stopping, restarting or uninstalling the service. I did see a run_test_n where n is a step, not sure how to use it though. Event viewer can be used to check whether the Service was installed/started/stopped/uninstalled.

I also noticed some errors in the Windows Event Log from when I tried to restart the service.

Activation context generation failed for "C:\Build\service-manager-rs\target\debug\system-tests.exe".Error in manifest or policy file "C:\Build\service-manager-rs\target\debug\system-tests.exe.Config" on line 0. Invalid Xml syntax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions