Giter Club home page Giter Club logo

Comments (4)

tgauth avatar tgauth commented on September 2, 2024 1

I don't think there's any that don't support get because it's a required field in the resource manifest but not sure about test as that's still an optional field in the resource manifest

from dsc.

michaeltlombardi avatar michaeltlombardi commented on September 2, 2024

Are there any resources that can't support get? Any resource that supports get supports test (either directly implemented or synthetic through DSC), I think.

from dsc.

michaeltlombardi avatar michaeltlombardi commented on September 2, 2024

Even when a resource doesn't implement the test command, DSC is able to use synthetic testing to compare the actual state to the desired state:

When this property isn't defined, DSC uses a synthetic test method for the resource. The synthetic test method:

  1. Gets the actual state of the instance using the resource's get method.
  2. Compares every defined property of the instance's desired state to the actual state.
  3. If the desired state of a property isn't equal to the actual state of that property, DSC reports that the instance isn't in the desired state.

Because the synthetic test only checks for equivalency, it can't accurately test resources with properties that can't be evaluated with equivalency alone. For example, if a resource manages package versions and allows setting the version to latest, DSC would report an instance with a version of 3.1.0 as being out of the desired state, even if 3.1.0 is the latest version of the package.

from dsc.

SteveL-MSFT avatar SteveL-MSFT commented on September 2, 2024

I think the intent of this right now is to simply expose what the resource advertises it implements. So I would expect it to show get, set, test, and/or export. Although get is currently mandatory, that may or may not change in the future and I think it would be confusing ot users to not see it shown. Similarly, although dsc will synthesize test, I think it makes sense to show whether the resource implements it directly and it's via docs that indicate test is available even if the resource doesn't directly implement it as it does have limitations (direct comparison).

Finally, I would suggest this new column to be between Version and Requires.

from dsc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.