Live Testing for Azure REST API Specifications
Перейти к файлу
microsoft-github-policy-service[bot] 9d72f3318d
Auto merge mandatory file pr
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days.
2023-03-28 16:46:30 +00:00
go Merge branch 'master' into move-sdkinfo 2017-07-06 18:10:06 -07:00
lib remove with force 2017-05-18 14:19:46 -07:00
.gitignore Remove submodels 2017-05-17 22:03:06 -07:00
LICENSE Initial commit 2017-05-16 12:25:21 -07:00
README.md sdknfo.json has been moved to Azure SDK for .Net 2017-06-30 17:09:23 -07:00
SECURITY.md Microsoft mandatory file 2023-01-27 21:02:40 +00:00
appveyor.yml appveyor: $env:TEST_PROJECT 2017-07-05 17:29:42 -07:00
build.ps1 No cloning azure-rest-api-specs 2017-07-06 18:08:15 -07:00
common.ps1 normalize parameters (less envirnoment variables) 2017-06-30 12:53:55 -07:00
init.ps1 No cloning azure-rest-api-specs 2017-07-06 18:08:15 -07:00
install.ps1 VSTS support 2017-06-30 15:59:11 -07:00
jenkins.ps1 bug fix 2017-07-07 12:20:20 -07:00
json-rpc-server.md Update json-rpc-server.md 2017-06-27 15:20:48 -07:00
lang.ps1 no TEST_LANG, composite file parser 2017-06-26 13:54:50 -07:00
lib.psm1 Fix for Jenkins 2017-06-30 16:17:43 -07:00
list.md Merge branch 'master' into table 2017-07-07 15:30:19 -07:00
test.ps1 VSTS support 2017-06-30 15:59:11 -07:00

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 example arm-redis.
  • TEST_LANG is a Azure SDK programming language. For example go.
  • TEST_CSM_ORGID_AUTHENTICATION is a connection string, in a format SubscriptionId=...;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

  1. Create a new folder for the language, for example go.
  2. Create the PowerShell scripts in this folder:
    • install.ps1, install all required software to the x folder, for example go/install.ps1
    • build.ps1, build a JSON-RPC server for the Azure REST API specifications, for example go/build.ps1
    • test.ps1, set the SDK_REMOTE_SERVER environment variable to a path on the created JSON-RPC server, for example go/test.ps1

See also Creating JSON-RPC server.

Running Locally

  1. Run .\init.ps1 to clone the recent [Azure REST API specifications] and [Azure SDK for .Net]
  2. Run .\built.ps1 {service name} to build a service project. For example, .\build.ps1 -project arm-redis.
  3. Run .\test.ps1 {service name} to test a service project. For example, .\test.ps1 -project arm-redis. arm-redis`.

See also