9d72f3318d
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days. |
||
---|---|---|
go | ||
lib | ||
.gitignore | ||
LICENSE | ||
README.md | ||
SECURITY.md | ||
appveyor.yml | ||
build.ps1 | ||
common.ps1 | ||
init.ps1 | ||
install.ps1 | ||
jenkins.ps1 | ||
json-rpc-server.md | ||
lang.ps1 | ||
lib.psm1 | ||
list.md | ||
test.ps1 |
README.md
Live Testing for Azure REST API Specifications
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.
Build Definitions
Creating a Personal Build Definition
Requirements
- Windows 10
- PowerShell
Enviroment Variables
TEST_PROJECT
is a REST API specification name from azure-rest-api-specs. See sdkinfo.json for available names. For examplearm-redis
.TEST_LANG
is a Azure SDK programming language. For examplego
.TEST_CSM_ORGID_AUTHENTICATION
is a connection string, in a formatSubscriptionId=...;ServicePrincipal=...;ServicePrincipalSecret=...;AADTenant=...;
TEST_FORK
is a GitHub fork name of the azure-rest-api-specs.TEST_BRANCH
is a GitHub fork branch name of the azure-rest-api-specs.
Build Stages
Contributing
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.
Adding a New Language for Testing
- Create a new folder for the language, for example go.
- Create the PowerShell scripts in this folder:
install.ps1
, install all required software to thex
folder, for example go/install.ps1build.ps1
, build aJSON-RPC
server for the Azure REST API specifications, for example go/build.ps1test.ps1
, set theSDK_REMOTE_SERVER
environment variable to a path on the createdJSON-RPC
server, for example go/test.ps1
See also Creating JSON-RPC server.
Running Locally
- 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