Skip to content

Running e2e/installation tests on Windows as non-administrator #27597

@l0rd

Description

@l0rd

CI tests for Windows are run in an admin terminal, and we are not testing that commands work on a non-elevated terminal. As a result, the recently introduced support for starting/stopping hyperv machines in non-elevated terminals, and the new user-scope installer, can be broken by new commits.

We should add (and eventually replace) hyperv/wsl e2e tests and installation tests that run in a non-elevated terminal by a user who belongs to the Hyper-V Administrators group.

The tests should still run some elevated commands (hyperv machine init and rm still require that).

We should also add another user who isn't a member of the Hyper-V admins group to verify that commands run as that user fail as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.windowsissue/bug on Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions