Skip to content

Test resource view result does not show desiredState, actualState, differingProperties #150

Description

Brief description of your issue

If you test a resource via the DSC CLI, you'll get desiredState, actualState & differentProperties in the response. WinGet studio shows the generic Get operation response in case of a Test operation result

Steps to reproduce

  1. Go to validate a resource view
  2. Type Microsoft.WinGetCreate/Settings for the resource name
  3. The settings input is
settings:
  Telemetry:
    disable: true
  1. Click on Test operation

Expected behavior

The results view should look like the output of dsc resource test -r "Microsoft.WinGetCreate/Settings" --input '{"settings": {"Telemetry": {"disable": true}}}'

desiredState:
  settings:
    Telemetry:
      disable: true
actualState:
  settings:
    $schema: https://aka.ms/wingetcreate-settings.schema.0.1.json
    Telemetry:
      disable: false
    CleanUp:
      intervalInDays: 7
      disable: false
    WindowsPackageManagerRepository:
      owner: microsoft
      name: winget-pkgs
    Manifest:
      format: yaml
    Visual:
      anonymizePaths: true
  action: Partial
  _inDesiredState: false
inDesiredState: false
differingProperties:
- settings

Actual behavior

The result view currently looks like

settings:
  Telemetry:
    disable: false
  Manifest:
    format: yaml
  WindowsPackageManagerRepository:
    name: winget-pkgs
    owner: microsoft
  CleanUp:
    disable: false
    intervalInDays: 7
  $schema: https://aka.ms/wingetcreate-settings.schema.0.1.json
  Visual:
    anonymizePaths: true

Environment

Windows: Windows.Desktop v10.0.26100.6899
System Architecture: X64
WinGet Studio version 0.100.302.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions