Skip to content

This is a sample showing how to use Pester and PowerShell to integration test a Logic App.

License

Notifications You must be signed in to change notification settings

martinkearn/Pester-LogicApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pester-LogicApp

This is a sample showing how to use Pester and PowerShell to integration test a logic app.

The sample uses a very simple logic app that gets a weather report using the MSN Weather connector. The main purpose of the repository is to demonstrator how to use Pester and PowerShell to perform integration tests on Logic Apps.

For more detail about the principles in this sample, see this article: http://martink.me/articles/integration-testing-logic-apps

The Logic App

The test is setup to work with this logic app.

The logic app overview

You can deploy this on your own Azure subscription using the template in /Logic App Template. For detail on how to do that, see Deploy Azure Resource Manager templates for Azure Logic Apps.

Pester

This test is designed to use Pester V5. To get an overview of Pester, see these resources:

Setup & Usage

To run the test

  1. Clone this repository
  2. Deploy the /Logic App Template. For detail on how to do that, see Deploy Azure Resource Manager templates for Azure Logic Apps.
  3. Make a copy of /ps/sample.env named .env and fill in the values to match your deployed Logic App. Ensure this is in the same folder as your .ps1 files.
  4. Open a PowerShell console and navigate to the folder containing /PS/LogicApp.tests.ps1
  5. Run this commmand
Invoke-Pester -Output Detailed LogicApp.tests.ps1
  1. If sucessfull, 6 tests should have passed

About

This is a sample showing how to use Pester and PowerShell to integration test a Logic App.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published