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

test cases in "test" folder has unexplained dependancies #9

Closed
pratapram opened this issue Oct 18, 2019 · 1 comment
Closed

test cases in "test" folder has unexplained dependancies #9

pratapram opened this issue Oct 18, 2019 · 1 comment

Comments

@pratapram
Copy link

I am following instructions in this video.

I did a new install of powershell on my macos. This is for the simplest ARM template for a single instance based on "100-marketplace-sample". When I try to run the test case in the "test" folder in powershell I get this error:

Test-AzureRMTemplate -TemplatePath ../../my-offer/azuredeploy.jsonsdf
Import-Json : The term 'Import-Json' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At /Users/pratap/cloud-images/azure/dai-azure-managed-app/test/template-tests/Test-AzureRMTemplate.ps1:145 char:76

  • ... script:AlreadyLoadedCache[$cacheFile.Name] = $cacheFile | Import-Json
  •                                                           ~~~~~~~~~~~
    
  • CategoryInfo : ObjectNotFound: (Import-Json:String) [], CommandNotFoundException
  • FullyQualifiedErrorId : CommandNotFoundException

--------------------MESSAGE FROM ADMIN, DELETE BEFORE SUBMITTING----------------------

Sorry to hear you had a bad experience with one of the templates 😟 But, in case you're just asking a question, we're happy to help. You can also check if the question might already have been asked here https://github.com/Azure/azure-quickstart-templates/issues?utf8=%E2%9C%93&q=is%3Aissue

We've created an outline of recommended sections to fill out that will help make this Pull Request awesome!

--------------------MESSAGE FROM ADMIN, DELETE BEFORE SUBMITTING----------------------

[Template Name goes here](Template link goes here)

Issue Details

Repro steps (if necessary, delete otherwise)

@bmoore-msft bmoore-msft transferred this issue from Azure/azure-quickstart-templates Feb 16, 2020
@bmoore-msft
Copy link
Contributor

you'll need to

import-module .\arm-ttk\arm-ttk\arm-ttk.psd1

now before running the tests

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

No branches or pull requests

2 participants