-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable set
and test
for Import resources
#464
Conversation
9867d86
to
a706d91
Compare
- name: nested | ||
type: Microsoft.DSC/Include | ||
properties: | ||
configurationFile: "[concat('$echoConfigPathParent', '$directorySeparator', '$echoConfigPathLeaf')]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why using concat
instead of using just full path, aka $echoConfigPath
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was to test that expressions get resolved for Include
@@ -183,4 +174,38 @@ resources: | |||
$out.results[1].result[0].result[0].type | Should -Be 'Test/Echo' | |||
$out.results[1].result[0].result[0].result[0].actualState.output | Should -Be 'one' | |||
} | |||
|
|||
It 'Set with include works' { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a test for test
operation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'll be added once test
is complete
PR Summary
This follows the PR to support
Import
kind resources by enablingset
andtest
. As part of this change, the output for group resources should also address #266. Note thattest
is not complete yet as the engine currently just uses the input config as the desired state, but even after initial resolving of the include, that config still needs to have expressions invoked and parameters resolved for a valid comparison. That work will be addressed later.As part of this change, the
set
group result andtest
group result now align withget
which changes the schema.A helper function was added for
test
to recursively determine if in desired state by looking forinDesiredState
property and if any are false than not in desired state (I think this might address #284)PR Context
Fix #266