Skip to content
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

On branch master: add inner template test case for Outputs-Must-Be-Present-In-Template-Parameters #535

Merged
merged 3 commits into from
Nov 5, 2021

Conversation

galiacheng
Copy link
Contributor

Error happens for Outputs-Must-Be-Present-In-Template-Parameters test case, when the main template has inner template, and the inner template does not have parameters the same from the UiDefinition outputs. It's super common usage. Such case should pass.

Error message shows like:

 [-] Outputs Must Be Present In Template Parameters (6209 ms)
        output acrName does not exist in template.parameters
        output aksAgentPoolNodeCount does not exist in template.parameters
        output aksAgentPoolVMSize does not exist in template.parameters
        output aksClusterName does not exist in template.parameters
        output aksClusterRGName does not exist in template.parameters

Signed-off-by: galiacheng <haixia.cheng@microsoft.com>

 Changes to be committed:
	modified:   arm-ttk/Test-AzTemplate.ps1
	modified:   arm-ttk/testcases/CreateUIDefinition/Outputs-Must-Be-Present-In-Template-Parameters.test.ps1
	new file:   unit-tests/Outputs-Must-Be-Present-In-Template-Parameters/Pass/InnerTemplate/azuredeploy.json
	new file:   unit-tests/Outputs-Must-Be-Present-In-Template-Parameters/Pass/InnerTemplate/createUiDefinition.json
Signed-off-by: galiacheng <haixia.cheng@microsoft.com>

 Changes to be committed:
	modified:   arm-ttk/Test-AzTemplate.ps1
On branch master: do not output the object info
Copy link
Contributor

@bmoore-msft bmoore-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix - we think a more general fix is in order for this one, e.g. the test should never be called -- and there are some other tests that are being called even though they shouldn't be. It may take a few days to fix that so I'm going to merge this to unblock and then we may roll back some of these once that's done.

@bmoore-msft bmoore-msft merged commit c8c54f8 into Azure:master Nov 5, 2021
@galiacheng
Copy link
Contributor Author

Thank you @bmoore-msft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants