The repository contains a set of scripts for Azure SDK live testing Azure REST API Specifications. The scripts use Azure SDK for .Net to test other Azure SDKs for different programming languages. For example Azure SDK for Go.
- Windows 10
- PowerShell
TEST_PROJECTis a REST API specification name from azure-rest-api-specs. See sdkinfo.json for available names. For examplearm-redis.TEST_LANGis a Azure SDK programming language. For examplego.TEST_CSM_ORGID_AUTHENTICATIONis a connection string, in a formatSubscriptionId=...;ServicePrincipal=...;ServicePrincipalSecret=...;AADTenant=...;TEST_FORKis a GitHub fork name of the azure-rest-api-specs.TEST_BRANCHis a GitHub fork branch name of the azure-rest-api-specs.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
- Create a new folder for the language, for example go.
- Create the PowerShell scripts in this folder:
install.ps1, install all required software to thexfolder, for example go/install.ps1build.ps1, build aJSON-RPCserver for the Azure REST API specifications, for example go/build.ps1test.ps1, set theSDK_REMOTE_SERVERenvironment variable to a path on the createdJSON-RPCserver, for example go/test.ps1
See also Creating JSON-RPC server.
- Run .\init.ps1 to clone the recent [Azure REST API specifications] and [Azure SDK for .Net]
- Run .\built.ps1 {service name} to build a service project. For example,
.\build.ps1 -project arm-redis. - Run .\test.ps1 {service name} to test a service project. For example,
.\test.ps1 -project arm-redis. arm-redis`.
See also