Comments (4)
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.
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.
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:
- Gets the actual state of the instance using the resource's
get
method.- Compares every defined property of the instance's desired state to the actual state.
- 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 of3.1.0
as being out of the desired state, even if3.1.0
is the latest version of the package.
from dsc.
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)
- Synthesize manifest for PS resources so that version, methods get populated HOT 1
- when using `-p` to pass a file `~` cannot be used in PowerShell HOT 2
- DSC Resource declared in `yaml` not discovered if `schema:` is present and not working if `schema:` is absent. HOT 1
- Adapters in resource path get evaluated twice
- PowerShell-Adapter should cache resources to disk HOT 1
- Remove unwrap() calls form the code
- Passing params/references to groups/adapters HOT 3
- allow specifying version, signature, hash of resource HOT 3
- Unable to reuse `reference()` in set operation from get and test
- The `int()` function incorrectly handles non-integer numbers HOT 4
- Update `dsc --version` to include build info
- Resources in parallel unless dependson HOT 4
- Create JSON/YAML for configs that only use /*powershell adapter, from PowerShell script HOT 1
- Installing resources HOT 1
- localization support
- Include metadata in result objects HOT 2
- Some static-analysis support HOT 1
- Intent for this implementation - will it only be an Intermediate language? HOT 3
- Extend exitCodes to support Hexidecimal error codes HOT 1
- Add tests for canonical schemas
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dsc.