Skip to content
girishmotwani edited this page Jan 6, 2021 · 1 revision

Writing tests for your code should be easy -- easy to develop, easy to debug and easy to run. The BVT infrastructure in C# used across teams in hybrid networking though functional fell short in this aspect.

Jammy uses armclient to perform CRUD operations on Azure resources. It uses python representation of the resources to manipulate the resources. The python representations are generated using the swagger specification. Autorest tool can be used to auto-generate the resource models.

Jammy source code is organized into two top level folders:

lib tests The lib/ folder has the framework infrastructure to make testing easy.

It includes an Armclient wrapper to enable making REST API calls to Azure and perform CRUD operations on resources, create resource group, deploy templates etc.

In addition, the models folder contains autogenerated code (using the swagger spec for the resource) for the Azure resources you want to test.

The test folder contains the test cases for the resources to be tested. Since Jammy uses the pytest framework, the tests need to conform to the requirements of pytest for identifying test classes/methods.

Clone this wiki locally