Skip to content

Commit 9e2c8fa

Browse files
Merge pull request #12 from LibbaLawrence/master
test
2 parents 2b39a4f + ea205b6 commit 9e2c8fa

File tree

1,676 files changed

+445447
-47710
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,676 files changed

+445447
-47710
lines changed

.github/CODEOWNERS

+54-7
Original file line numberDiff line numberDiff line change
@@ -9,37 +9,84 @@
99
/sdk/ @mayurid @lmazuel
1010

1111
# Core
12-
/sdk/core/ @lmazuel @xiangyan99 @johanste
12+
# PRLabel: %Azure.Core
13+
/sdk/core/ @lmazuel @xiangyan99 @johanste @rakshith91
1314
/sdk/core/azure-core/ @xiangyan99 @lmazuel
1415

16+
####
1517
# Service team
18+
####
19+
# PRLabel: %Azure.Identity
1620
/sdk/identity/ @chlowell @schaabs
21+
22+
# PRLabel: %Event Hubs
1723
/sdk/eventhub/ @annatisch @yunhaoling @YijunXieMS
18-
/sdk/storage/ @amishra-dev @zezha-msft @annatisch @rakshith91 @xiafu-msft
19-
/sdk/applicationinsights/ @alexeldeib
24+
25+
# PRLabel: %Storage
26+
/sdk/storage/ @amishra-dev @zezha-msft @annatisch @rakshith91 @xiafu-msft
27+
28+
/sdk/applicationinsights/ @alexeldeib
29+
30+
# PRLabel: %Batch
2031
/sdk/batch/ @bgklein @xingwu1
21-
/sdk/cognitiveservices/azure-cognitiveservices-vision-customvision/ @areddish
32+
/sdk/cognitiveservices/azure-cognitiveservices-vision-customvision/ @areddish
33+
34+
# PRLabel: %KeyVault
2235
/sdk/keyvault/ @schaabs @chlowell @iscai-msft
36+
37+
# PRLabel: %Monitor - LogAnalytics
2338
/sdk/loganalytics/ @alexeldeib
39+
40+
# PRLabel: %Consumption
2441
/sdk/consumption/ @sandeepnl
42+
43+
# PRLabel: %Container Instances
2544
/sdk/containerinstance/ @samkreter @xizhamsft
45+
46+
# PRLabel: %Container Registry
2647
/sdk/containerregistry/ @djyou
2748
/sdk/containerservice/ @samkreter @zqingqing1 @GaneshaThirumurthi
49+
50+
# PRLabel: %Cosmos
2851
/sdk/cosmos/ @southpolesteve @zfoster
52+
53+
# PRLabel: %Data Factory
2954
/sdk/datafactory/ @hvermis
30-
/sdk/datalake/ @ro-joowan
55+
/sdk/datalake/ @ro-joowan
3156
/sdk/datadatamigration/ @vchske
57+
58+
# PRLabel: %Event Grid
3259
/sdk/eventgrid/ @kalyanaj
60+
61+
# PRLabel: %HDInsight
3362
/sdk/hdinsight/ @idear1203
63+
64+
# PRLabel: %Machine Learning Compute
3465
/sdk/machinelearningcompute/ @shutchings
66+
67+
# PRLabel: %Recovery Services
3568
/sdk/recoveryservices/ @DheerendraRathor
36-
/sdk/search/ @xiangyan99
69+
70+
# PRLabel: %Search
71+
/sdk/search/ @xiangyan99 @rakshith91
72+
73+
# PRLabel: %Service Fabric
3774
/sdk/servicefabric/ @QingChenmsft @samedder
75+
76+
# PRLabel: %SQL
3877
/sql/sql/ @jaredmoo
78+
79+
# PRLabel: %Service Bus
3980
/sdk/servicebus/ @annatisch @yunhaoling @YijunXieMS @KieranBrantnerMagee
81+
82+
# PRLabel: %Synapse
4083
/sdk/synapse/ @aim-for-better @idear1203
84+
85+
# PRLabel: %Cognitive - Text Analytics
4186
/sdk/textanalytics/ @kristapratico @iscai-msft
42-
/sdk/formrecognizer/ @kristapratico @iscai-msft
87+
88+
# PRLabel: %Cognitive - Form Recognizer
89+
/sdk/formrecognizer/ @kristapratico @iscai-msft @rakshith91
4390

4491
# Smoke Tests
4592
/common/smoketest/ @lmazuel @chlowell @annatisch @rakshith91 @shurd @southpolesteve

NOTICE.txt

+15-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1-
This file list any third-party libraries or other resources that may be
2-
distributed under licenses different than the Azure SDK for Python software.
1+
NOTICES AND INFORMATION
2+
Do Not Translate or Localize
33

4-
In the event that we accidentally failed to list a required notice, please
5-
bring it to our attention by opening an issue.
4+
This software incorporates material from third parties. Microsoft makes certain
5+
open source code available at https://3rdpartysource.microsoft.com, or you may
6+
send a check or money order for US $5.00, including the product name, the open
7+
source component name, and version number, to:
68

7-
The attached notices are provided for information only.
9+
Source Code Compliance Team
10+
Microsoft Corporation
11+
One Microsoft Way
12+
Redmond, WA 98052
13+
USA
14+
15+
Notwithstanding any other terms, you may reverse engineer this software to the
16+
extent required to debug changes to any libraries licensed under the GNU Lesser
17+
General Public License.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Management libraries can be identified by namespaces that start with `azure-mgmt
4747
## Need help?
4848

4949
* For detailed documentation visit our [Azure SDK for Python documentation](https://aka.ms/python-docs)
50-
* File an issue via [Github Issues](../../issues)
50+
* File an issue via [Github Issues](https://github.com/Azure/azure-sdk-for-python/issues)
5151
* Check [previous questions](https://stackoverflow.com/questions/tagged/azure+python) or ask new ones on StackOverflow using `azure` and `python` tags.
5252

5353
### Community

doc/dev/mgmt/swagger/multi_api/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This is the AutoRest configuration file for Network.
88

99
## Getting Started
1010

11-
To build the SDK for Network, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run:
11+
To build the SDK for Network, simply [Install AutoRest](https://github.com/Azure/autorest/blob/master/docs/installing-autorest.md) and in this folder, run:
1212

1313
> `autorest`
1414
@@ -66,4 +66,4 @@ swagger-to-sdk:
6666

6767
## Python
6868

69-
See configuration in [readme.python.md](./readme.python.md)
69+
See configuration in [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/multi_api/readme.python.md)

doc/dev/mgmt/swagger/single_api/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This is the AutoRest configuration file for Cdn.
88

99
---
1010
## Getting Started
11-
To build the SDK for Cdn, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run:
11+
To build the SDK for Cdn, simply [Install AutoRest](https://github.com/Azure/autorest/blob/master/docs/installing-autorest.md) and in this folder, run:
1212

1313
> `autorest`
1414

doc/dev/mgmt/swagger_conf.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -18,38 +18,38 @@ Writing the readme is the responsibility of the Python SDK team. There is curren
1818
- Readme that handles only one API version, and generates packages that handle one API version only
1919
- Readme that handles several API versions, and generates packages with multiples API and profile supports
2020

21-
These templates can be found in the [single_api](./single_api) and the [multi_api](./multi_api) folders.
21+
These templates can be found in the [single_api](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/single_api) and the [multi_api](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/multi_api) folders.
2222

2323

2424
### Single API readmes
2525

2626
This one is the most simple:
27-
- Copy the [readme.python.md](./single_api/readme.python.md) and replace `servicetoreplace` by your service name
28-
- Be sure the main [readme.md](./single_api/readme.md) contains a "swagger-to-sdk" section with Python
27+
- Copy the [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/single_api/readme.python.md) and replace `servicetoreplace` by your service name
28+
- Be sure the main [readme.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/single_api/readme.md) contains a "swagger-to-sdk" section with Python
2929

3030
### Multi API readmes
3131

32-
When doing multi-api packages, it means you have shipping several "tags" of the main readme as one package. Autorest is calling this process a "batch" call, and this is the purpose of the "batch" section in [readme.python.md](./multi_api/readme.python.md).
32+
When doing multi-api packages, it means you have shipping several "tags" of the main readme as one package. Autorest is calling this process a "batch" call, and this is the purpose of the "batch" section in [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/multi_api/readme.python.md).
3333

3434
In order to be sure the correct tags exist, you can use the following script:
3535
```shell
3636
python ./scripts/multi_api_readme_help.py /azure-rest-api-specs/specification/service/resource-manager/
3737
```
3838

3939
This script will analyze the Swaggers available, and suggests on stdout:
40-
- A list of tags for the main [readme.md](./multi_api/readme.md)
41-
- A batch declaration for the [readme.python.md](./multi_api/readme.python.md)
40+
- A list of tags for the main [readme.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/multi_api/readme.md)
41+
- A batch declaration for the [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/multi_api/readme.python.md)
4242

4343
This script is not perfect that it *does* require manual review of the output and not a direct copy/paste.
4444

4545
It's important for Python that tags represents only *ONE* unique API version. It's why it's pretty common that Python uses a set of tags that other languages don't use.
4646

4747
Once you know the list of tags you need to generate:
4848

49-
- Copy the [readme.python.md](./multi_api/readme.python.md) and replace `servicetoreplace` by your service name
50-
- Update the batch list of [readme.python.md](./multi_api/readme.python.md)
51-
- Be sure you have one tag section for each batch entry in [readme.python.md](./multi_api/readme.python.md)
52-
- Be sure the main [readme.md](./multi_api/readme.md) contains a "swagger-to-sdk" section with Python with an `afterscripts` section like the one in the template.
49+
- Copy the [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/multi_api/readme.python.md) and replace `servicetoreplace` by your service name
50+
- Update the batch list of [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/multi_api/readme.python.md)
51+
- Be sure you have one tag section for each batch entry in [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/multi_api/readme.python.md)
52+
- Be sure the main [readme.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/multi_api/readme.md) contains a "swagger-to-sdk" section with Python with an `afterscripts` section like the one in the template.
5353

5454
The `afterscripts` will execute a Jinja template to create a client to link together all the batch generated autorest ([example](https://github.com/Azure/azure-sdk-for-python/blob/4a7c67189591b052fe2b5769847ff68f7845386d/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/_storage_management_client.py))
5555

doc/dev/mgmt/tests.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ providing several features useful for the SDK tests, for example:
176176
* Patches for overriding functions and methods that don't work well with tests
177177
(such as long-running operations)
178178
179-
Code in the [`azure-sdk-tools/devtools_testutils`](tools/azure-sdk-tools/devtools_testutils) directory
179+
Code in the [`azure-sdk-tools/devtools_testutils`](https://github.com/Azure/azure-sdk-for-python/tree/master/tools/azure-sdk-tools/devtools_testutils) directory
180180
provides concrete implementations of the features provided in `scenario_tests`
181181
that are oriented around use in SDK testing
182182
and that you can use directly in your unit tests.

doc/sphinx/package_service_mapping.json

+5
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,11 @@
901901
"service_name": "Storage",
902902
"manually_generated": true
903903
},
904+
"azure-storage-blob-changefeed": {
905+
"category": "Client",
906+
"service_name": "Storage",
907+
"manually_generated": true
908+
},
904909
"azure-storage-file-share": {
905910
"category": "Client",
906911
"service_name": "Storage",

eng/.docsettings.yml

+5
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ known_content_issues:
4343
# data plane. common issue filed to azure-sdk-for-python
4444
- ['README.rst', '#4554']
4545
- ['sdk/synapse/azure-synapse/README.md', '#4554']
46+
- ['sdk/synapse/azure-synapse-accesscontrol/README.md', '#4554']
47+
- ['sdk/synapse/azure-synapse-spark/README.md', '#4554']
48+
- ['sdk/synapse/azure-synapse-artifacts/README.md', '#4554']
49+
- ['sdk/synapse/azure-synapse-nspkg/README.md', '#4554']
4650
- ['sdk/applicationinsights/azure-applicationinsights/README.md', '#4554']
4751
- ['sdk/batch/azure-batch/README.md', '#4554']
4852
- ['sdk/cognitiveservices/azure-cognitiveservices-anomalydetector/README.md', '#4554']
@@ -110,6 +114,7 @@ known_content_issues:
110114
- ['sdk/search/azure-search-nspkg/README.md', 'nspkg and common']
111115
- ['sdk/storage/azure-storage-blob/samples/README.md', 'nspkg and common']
112116
- ['sdk/storage/azure-storage-file-datalake/samples/README.md', 'nspkg and common']
117+
- ['sdk/storage/azure-storage-blob-changefeed/samples/README.md', 'nspkg and common']
113118
- ['sdk/storage/azure-storage-file-share/samples/README.md', 'nspkg and common']
114119
- ['sdk/storage/azure-storage-queue/samples/README.md', 'nspkg and common']
115120
- ['sdk/textanalytics/azure-ai-nspkg/README.md', 'nspkg and common']

eng/ci_tools.txt

+11-12
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
11
# requirements leveraged by ci tools
22
setuptools==44.1.0; python_version == '2.7'
3-
setuptools==45.1.0; python_version >= '3.5'
3+
setuptools==46.4.0; python_version >= '3.5'
44
virtualenv==20.0.23
55
wheel==0.34.2
6-
Jinja2==2.11.1
6+
Jinja2==2.11.2
77
packaging==20.4
8-
tox==3.14.6
8+
tox==3.15.0
99
tox-monorepo==0.1.2
10-
twine==1.15.0
10+
twine==1.15.0; python_version == '2.7' or python_version == '3.5'
11+
twine==3.1.1; python_version >= '3.6'
1112
pathlib2==2.3.5
1213
readme-renderer[md]==25.0
13-
doc-warden==0.5.4
14+
doc-warden==0.7.1
15+
# we pin coverage to 4.5.4 because there is an bug with `pytest-cov`. the generated coverage files cannot be `coverage combine`ed
1416
coverage==4.5.4
15-
codecov==2.0.22
16-
beautifulsoup4==4.8.2
17+
codecov==2.1.0
18+
beautifulsoup4==4.9.1
1719
pkginfo==1.5.0.1
1820

1921
# locking packages defined as deps from azure-sdk-tools or azure-devtools
2022
pytoml==0.1.21
2123
pyOpenSSL==19.1.0
2224
json-delta==2.0
23-
ConfigArgParse==1.1
25+
ConfigArgParse==1.2.3
2426
six==1.14.0
2527
vcrpy==3.0.0
2628
pyyaml==5.3.1
27-
pytest==5.4.1; python_version >= '3.5'
29+
pytest==5.4.2; python_version >= '3.5'
2830
pytest==4.6.9; python_version == '2.7'
2931
pytest-cov==2.8.1
3032

3133
# local dev packages
3234
./tools/azure-devtools
3335
./tools/azure-sdk-tools
34-
35-
36-

eng/common/Extract-ReleaseNotes.ps1

-65
This file was deleted.

eng/common/TestResources/New-TestResources.ps1.md

+17
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,23 @@ Accept pipeline input: False
412412
Accept wildcard characters: False
413413
```
414414
415+
### -OutFile
416+
save test environment settings into a test-resources.json.env file next to test-resources.json.
417+
The file is protected via DPAPI. The environment file would be scoped to the current repository directory.
418+
Note: Supported only on Windows.
419+
420+
```yaml
421+
Type: SwitchParameter
422+
Parameter Sets: (All)
423+
Aliases:
424+
425+
Required: False
426+
Position: Named
427+
Default value: None
428+
Accept pipeline input: False
429+
Accept wildcard characters: False
430+
```
431+
415432
### CommonParameters
416433
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
417434

eng/common/TestResources/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ eng\common\TestResources\New-TestResources.ps1 `
3535
-TestApplicationSecret (ConvertFrom-SecureString $sp.Secret -AsPlainText)
3636
```
3737

38+
If you are running this for a .NET project on Windows, the recommended method is to
39+
add the `-OutFile` switch to the above command. This will save test environment settings
40+
into a test-resources.json.env file next to test-resources.json. The file is protected via DPAPI.
41+
The environment file would be scoped to the current repository directory and avoids the need to
42+
set environment variables or restart your IDE to recognize them.
43+
3844
Along with some log messages, this will output environment variables based on
3945
your current shell like in the following example:
4046

eng/common/TestResources/deploy-test-resources.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ parameters:
1313
# "TestApplicationId": "<test app id>",
1414
# "TestApplicationSecret": "<test app secret>",
1515
# "ProvisionerApplicationId": "<provisoner app id>",
16-
# "ProvisoinerApplicationSecret": "<provisoner app secert>",
16+
# "ProvisionerApplicationSecret": "<provisoner app secert>",
1717
# "Environment": "AzureCloud | AzureGov | AzureChina | <other environment>"
1818
# }
1919

0 commit comments

Comments
 (0)