Skip to content

Goss should be able to assert against Windows Registry state #616

@DoomGerbil

Description

@DoomGerbil

Describe the feature:

Goss should be able to assert against the state and contents of the Windows Registry.

Describe the solution you'd like

In order to properly support Windows configuration use cases, lots of things will need to be able to assert against registry keys. On *nix systems, you'd generally use a file.contains assertion against a configuration file, but the Windows equivalent is generally keys stored in the registry.

Describe alternatives you've considered

The best I've got right now is that you can write a Powershell script that checks values in the registry and then outputs status, and then you wrap that script in a goss assertion. This is hacky, requires emplacing the script in the right place with the right permissions, etc, isolates some of the configuration to be checked separate from the rest, and just generally feels dirty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    approvedcommunity maintainedThese issues are not maintained by the goss maintainers. Community contributions are always welcome.enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions