зеркало из
1
0
Форкнуть 0
Граф коммитов

543 Коммитов

Автор SHA1 Сообщение Дата
Sean Kane d4fded0a44
Cosmos Decorator and Tests (#14114)
Addresses #13226 and #12717 . Screwed up my local git so I had to create a new PR, apologies @annatisch, I will address your comments from the previous PR.
2020-10-01 22:27:18 +00:00
Charles Lowell 7ee103c77b
Filter authentication metadata requests during recording (#14113) 2020-10-01 11:10:04 -07:00
Scott Beddall 75a42808c1
Pin Minimum Deps in min-dependency tests, Hotfix SDK-Tools for backwards compat (#14069)
* mindependency trick with compatibility mode works just fine. pinning local mindependency deps in tox.ini

* patch keyvaultmmgtpreparer to be backwards compatibile with previous major version
2020-09-29 16:25:07 -07:00
Xiaoxi Fu 2e2661896b
[Devtool][Fix]StorageAccountsOperations object has no attribute create (#14074)
* [Devtool][Fix]StorageAccountsOperations object has no attribute create

* [Devtool][Fix]remove polling from remove_resource
2020-09-29 11:45:11 -07:00
Charles Lowell da4cdbf021
KeyVaultPreparer passes required SkuFamily argument (#13845) 2020-09-22 10:23:17 -07:00
Scott Beddall a5338e2539
move import from azure-common to within the track1 call (#13880) 2020-09-18 13:17:32 -07:00
Scott Beddall 52c74b408b
remove azure-common import from azure-devtools resource_testcase (#13881) 2020-09-18 13:17:01 -07:00
changlong-liu ab12b048dd
use azure-mgmt-core 1.2.0 (#13860) 2020-09-18 13:43:12 +08:00
Charles Lowell 63ec7eebea
GeneralNameReplacer correctly handles bytes bodies (#13710) 2020-09-17 12:49:31 -07:00
KieranBrantnerMagee 3ae3e097bc
Test preparer region config loader (and DeleteAfter fixes) (#12924)
* Initial implementation of region-loading-from-config, and opting in for SB and EH to support canary region specification.

* Truncate DeleteAfter at milliseconds to hopefully allow it to get picked up by engsys.  Add get_region_override to __init__ exports.

* Provide better validation semantics for the get_region_override function. (empty/null regions is invalid)
2020-09-11 11:11:02 -07:00
Sean Kane 65537969fc
Win py27 issue (#13595)
* change to the processor to check for BOM at the beginning

* changes to serialize and deserialize to be consistent with py2/3 strings/unicode types. new recordings for all that, changes to tests for everything, and a bug in sas file

* forgot to add a unicode explicitly, re-recorded some tests because of that
2020-09-04 18:32:51 -07:00
Krista Pratico d89ca711cc
add custom-subdomain name option to cognitive preparer (#12953) 2020-08-07 14:54:56 -07:00
KarishmaGhiya 22be12d5fa
python link verification (#12543)
* python link verification

* fix the path

* fix cognitive services links

* fix link

* fix swagger links

* fix doc links and remove deprecated ones

* identity changelog update

* remove non existing link

* fix azure links

* cosmos readme link

* remove samples link

* remove samples link

* remove samples link

* fix links

* fix broken links

* fix broken links

* fix broken links

* fix links

* fix links

* python sdk link update

* python sdk link update

* fix spacing in parameter

* update python release link

* remove identity links

* azure-sdk-release link

* Update sdk/servicebus/azure-servicebus/CHANGELOG.md

* Update tools/azure-devtools/doc/scenario_base_tests.md

* Update tools/azure-devtools/doc/scenario_base_tests.md

* Update sdk/keyvault/azure-keyvault-certificates/CHANGELOG.md

Co-authored-by: Charles Lowell <chlowe@microsoft.com>

* Update sdk/keyvault/azure-keyvault-secrets/CHANGELOG.md

Co-authored-by: Charles Lowell <chlowe@microsoft.com>

* Update sdk/keyvault/azure-keyvault-keys/CHANGELOG.md

Co-authored-by: Charles Lowell <chlowe@microsoft.com>

* Update sdk/keyvault/azure-keyvault-keys/CHANGELOG.md

Co-authored-by: Charles Lowell <chlowe@microsoft.com>

* Update sdk/identity/azure-identity/CHANGELOG.md

Co-authored-by: Charles Lowell <chlowe@microsoft.com>

* Update sdk/keyvault/azure-keyvault-secrets/CHANGELOG.md

Co-authored-by: Charles Lowell <chlowe@microsoft.com>

* remove orphan for details sentences

Co-authored-by: Charles Lowell <chlowe@microsoft.com>
2020-07-24 16:08:52 -07:00
changlong-liu 9a95169920
20200703 codereport (#12361)
* add placeholder line in breaking sheet

* check all versions since master is for track2
2020-07-24 13:27:31 +08:00
Laurent Mazuel 2f8532745e
Finally correct azure-core template (#12339) 2020-07-02 08:21:28 -07:00
Laurent Mazuel 4d20052044
Add need_azuremgmtcore (#12317) 2020-07-01 19:39:33 -07:00
KieranBrantnerMagee 63b2cce819
Fix scrubber-cacher preparer compatibility (#11878)
* Since resource names can be programmatically constructed, add scrubber at base preparer level so as to ensure recordings get the real resource name swapped out with a consistent moniker.
* In CI (but not locally) self.test_class_instance was not set before _preparer_wrapper is called, and thus self.is_live was failing.  Since we have the test_class_instance, let's just use that.
* resource_moniker isn't guaranteed to be populated, so use moniker instead for default scrubbing strategy.
* Add remaining notes for how to run Keyvault tests to mgmt_settings_fake.
2020-07-01 10:40:57 -07:00
changlong-liu 7b8084b511
don't use mgmt track2 (#12183) 2020-06-24 15:40:21 +08:00
KieranBrantnerMagee f3522cd897
Add set_delete_after_tag as a parameter on ResourceGroupPreparer (#11749)
* Add set_delete_after_tag as a parameter on ResourceGroupPreparer so that test-prepared RGs can be automatically cleaned up by engsys.
* Populate this into the two "default helper RG preparers" (randomized/cached) to implicitly opt-in the tests consuming those into the best practice. (Currently this is a very limited set of SDKs)
* Make delete_after_tag take a timespan and be enabled by default.
2020-06-22 18:55:41 -07:00
Charles Lowell 4930d99d8e
Update KeyVaultPreparer with track 2 mgmt changes (#12060) 2020-06-15 16:08:51 -07:00
Laurent Mazuel 5f2ba44f47
Add force parameter to SwaggerToSdk CLI (#11609) 2020-05-22 17:34:13 -07:00
Laurent Mazuel 39f2757d50
Fix Cleanup failing on 3.8.3 (#11607) 2020-05-22 15:47:46 -07:00
changlong-liu fd43b8ff67
20200515 run resource live test (#11454)
* correct test_mgmt_resource.py and live run it

* add mgmt-release-stats tool
2020-05-15 13:40:33 +02:00
Luca Boccassi ad720c7c4b
Convert CRLF to LF (#9646)
Having some files using CRLF makes things extremely messy when
using tarballs on Linux, as the git repository gets automatically
converted, but the tarball stores the original line ending,
so the two do not match anymore.
2020-05-04 09:24:29 -07:00
Rakshith Bhyravabhotla 0a83a8c33f
Implementation for indexers operations (#11144)
* Initial Commit

* fix tests

* return types

* access conditons

* tests

* indentation
2020-05-01 16:32:58 -07:00
Laurent Mazuel 2cf49d069e
ChangeLog generics for autorest v5 (#10885)
* ChangeLog generics for autorest v5

* Update changelog_generics.md
2020-04-30 16:18:18 -07:00
Zim Kalinowski f0c3be4b74
fixing merge error (#11039) 2020-04-24 12:18:21 +02:00
Zim Kalinowski 269715f1c6
updating setup template (#11022) 2020-04-23 09:05:57 +02:00
Laurent Mazuel d5508e62fa
Add force generation to SwaggerToSdk (#10933) 2020-04-22 14:17:58 -07:00
iscai-msft 9e8a272b5b
fixed ClientSecretCredential initialization (#11000) 2020-04-22 09:53:32 -07:00
Zim Kalinowski bb5fdb9054
Adding Azure Core Requirements (#10926)
* adding new shared requirements

* updates
2020-04-20 21:07:39 +02:00
Zim Kalinowski 5fc2bbae7d
adding azure core to packaging (#10910)
* adding azure core to packaging

* updated setup template
2020-04-20 08:41:30 +02:00
Laurent Mazuel e6d329933b
Headers can be single string with aiohttp (#6554) 2020-04-14 14:40:45 -07:00
Zim Kalinowski f19f993d97
Extending script (#10822)
* merged scripts

* updated scripts

* calculating total rps and packages

* don't print packages
2020-04-14 11:45:44 +02:00
Zim Kalinowski 47abc68d21
Test coverage calculation script (#10804)
* statistics script

* calculating coverage

* finalized coverage script
2020-04-13 08:25:47 +02:00
Scott Beddall 82aec86e72
locking dev reqs (#10536)
* removing pytest from dev_reqs. it's locked in ci_tools and test_tools
* removing wheel from dev requirements in eventhubs
* adding pyyaml as there was a security issue with an older version. pinning to latest to be certain
2020-03-27 12:16:05 -07:00
Brandon Klein 84ecb1b438
Update Batch Data plane (#10477)
* Update Batch Data plane

* Autorest change _version.py => version.py accidentally

* Fixxup newline style
2020-03-26 10:00:30 -07:00
Zim Kalinowski 7d31f1775a
fixed changelog tool (#10462) 2020-03-24 08:15:43 +01:00
KieranBrantnerMagee 61ef6fab4c
Enable preparers to implicitly handle async tests (#10394)
* Add a clause in the preparer to attempt to consume fn as an async coroutine, falling back to synchronous if not.  This allows use of preparers without an additional decorator to wrap the function.
* Add unit tests for the preparer async handling capabilities
* Add an additional exception check to the async fallback, for certain deployments of 2.7 where this is the response when trying to import asyncio that has been pip installed.
* Port storage async tests to give an example of the new async preparer working on another test suite.
2020-03-23 12:05:53 -07:00
KieranBrantnerMagee 87d00b69d3
preparer resource caching framework (#10126)
* Initial commit of preparer resource caching functionality.  Demonstrates use on the servicebus queue tests.  This will allow tests that opt-in to utilize resources cached from previous equivalent resource creation steps, to improve test runtime.  Deletion is delayed until the end of all pending tests, via a session fixture.
* Inferred caching is currently disabled. (You have to explicitly declare a parent resource is cached if a child is cached, otherwise an exception will be thrown before test run)
* Aggregates cache key with parents, such that, for instance, a service bus underneath a EU RG won't be swapped for a service bus underneath an NA RG. 
* Switch cache usage in test classes to use decorators for ease, add helper to resource group preparer.
* Clean up preparer logging and documentation, tweaks to ensure pylint is happy.
* Add azure-devtools to servicebus dev-requirements (to allow local test runs to properly consume preparer logic)
* add random_name_enabled to resource_testcase cached helper wrapper so that this functionality is leveraged by default (solves a lot of engsys problems with resource collision)
* fix bug in how trimmed_kwargs are used such that we do not trim the kwargs that we pass to deletion, since we may remove elements needed for removal.
* Move resource cache cleanup into base conftest
* Default preparer logging to warn and above to ensure visibility of potential failures.
* Preparer logging is not on by default, but pushed more detail into creation failure exceptions to compensate, as the primary goal of the additional logging was to ensure users saw all possible details of what is typically a Critical Failure.
* Add longer timeout to tests.yml to support still-lengthy sb tests, make preparer exception catching more comprehensive
* Add unit tests for the caching preparer.  Reverse the deferred delete order to try and emulate as closely as possible the first-in-last-out deletion behavior from non-cached resources.
2020-03-18 17:04:20 -07:00
Zim Kalinowski d4280b8a5c
Upgraded code report (#10272)
* upgraded code report

* remove garbage
2020-03-12 15:41:34 +08:00
Phoenix He 6915b9c079
Update code_report to support python 3.8 (#10096)
Co-authored-by: Phoenix He <tih@microosft.com>
2020-03-10 16:24:23 -07:00
Laurent Mazuel 4cda4c5550
Update 404 link (#10241) 2020-03-10 16:05:25 -07:00
KieranBrantnerMagee 48c410b654
Create a new helper in azure_testcase, get_replayable_random_resource_name, to be used by mgmt tests to properly fetch names in live vs nonlive scenarios while still aligning recordings. (#10082)
Emplace this helper in servicebus management tests and regenerate recordings.
Ensure servicebus preparers use the scrubber to properly align live and nonlive test names.
2020-03-05 11:45:16 -08:00
Charles Lowell 513260d0de
Adopt vcrpy 3.0.0 (#9747) 2020-02-12 12:54:14 -08:00
Krista Pratico 5f7035f23b
[textanalytics] Fix live test framework (#9777)
* fixes to test framework b/c new release of azure-mgmt-cognitiveservices

* fix for recorded tests and service bug failing live tests

* actually fix live/recorded tests

* also fix for legacy tests
2020-02-07 17:09:03 -08:00
Chidozie Ononiwu a444400d0d
Convert .rst to .md (#9548)
* Rst->Md Batch

* RST->Md Core/azure

* RST->Md azure-common

* HISTORY.md -> CHANGELOG.md, azure-core, update setup.py for azure-batch

* HISTORY -> CHANGELOG azure-core-tracing-opencensus

* HISTORY -> CHANGELOG

* rst -> md azure-mgmt

* rst -> md

* HISTORY -> CHANGELOG

* HISTORY -> CHANGELOG

* rst -> md

* add long discription

* Revert azure-mgmt-keyvault to rst

* Revert azure-mgmt-eventhub to .rst

* Ignore readmes in docsettings.yml

* Convert remaining rst to md
2020-02-06 15:44:10 -08:00
Chidozie Ononiwu f3743bf0ac
Move Readme and Changelog template from RST -> MD (#9510)
* Move Readme and Changelog template from RST -> MD

* Switch Management HISTORY.rst to CHANGELOG.md

* Include .md in Manifest

* Convert readmes and Update setup.py

* Fix manifest.in and setup.py
2020-02-04 17:29:05 -08:00
Laurent Mazuel ab4c566a08
Test update to support autorest v3 generated client (#9695)
* Allow credential in testframework

* Adapt test framework to support azure-core based Mgmt client

* Fixing more credential things

* Fix missing script declaration

* Update azure_testcase.py
2020-02-04 10:27:18 -08:00
praveenkuttappan 92c1e2554b
trigger CI for track2 when tools is changed (#9699)
* trigger CI for track2 when tools is changed
2020-02-03 15:40:36 -08:00
Kieran Brantner-Magee 941b510d38 Merge branch 'kibrantn/servicebus/unify-track2-into-master-final' 2020-01-28 13:37:53 -08:00
Charles Lowell 21e2282f98
Support matching content in playback (#9587) 2020-01-28 12:25:59 -08:00
Kieran Brantner-Magee 796ef17013 Use existing live_test_only logic instead of novel decorator
thread through random_name_required and force utilization for ResourceGroups via a RandomNameResourceGroup helper in devtools_testutils
2020-01-24 16:46:34 -08:00
Laurent Mazuel 6c3227c439
Improve StoragePreparer (#8930)
* Support env variables and stuff

* More tests

* Accept storage account for account_url

* Sync queue shared tests files

* more changes

* Feedback

* Fix queue import

* Fix playback mode

* Updated blob test account URLs

* Updated queue test account URLs

* Secondary endpoints needs init too

* Better support of connection string

* Fixed missing awaits

* Fix file share test pass

* Strip / if endpoints are from ARM GET

Co-authored-by: Rakshith Bhyravabhotla <rakshith.bhyravabhotla@gmail.com>
Co-authored-by: annatisch <antisch@microsoft.com>
2020-01-23 13:10:24 -08:00
Scott Beddall 04d7b6c5fd
Adding testutils to defined packages within azure-common (#9365)
* adding testutils to defined packages within azure-common
* moving testutils out of azure-common and into azure-sdk-tools
2020-01-08 14:52:38 -08:00
Krista Pratico 39c3c4076d
[textanalytics] Refactor tests to use global preparer (#9288)
* refactor text analytics and cognitive services test case, remove core dev req for track1

* adds global text analytics preparer

* changes all tests to use global text analytics preparer
2020-01-02 14:08:55 -08:00
Laurent Mazuel b9812dfe57
Support AZURE_RESOURCEGROUP_NAME (#9198)
* Support AZURE_RESOURCEGROUP_NAME

* Simplify storage global account

* Live are for data-plane only
2019-12-18 16:46:04 -08:00
Krista Pratico 398de90ae2
[textanalytics] Setting up live test pipeline (#9178)
* testing ci pr validation

* update tests.yml

* run serially

* try running parallel with random name enabled

* remove AZURE_ prefix in env vars name for AAD auth tests

* add AZURE_ prefix to endpoint env var
2019-12-18 13:54:57 -08:00
Laurent Mazuel e69325a4be
Add 3.8 in Mgmt template (#9206) 2019-12-18 11:04:12 -08:00
iscai-msft f48da8bd83
AzureNameError now just passes to Exception (#9193) 2019-12-17 11:19:02 -08:00
praveenkuttappan ba7baf2705
PyPIClient module is failing on Python 2.7 and <Python 3.6 versions (#9183) 2019-12-16 18:16:43 -08:00
iscai-msft 2d5b028fb7 correct super call for AzureNameError (#9173) 2019-12-16 16:23:24 -08:00
Krista Pratico 647f54445c
[textanalytics] Moves textanalytics track2 and renames namespace/package (#9149)
* moves text analytics track 2 to sdk/textanalytics and renames to azure-ai-textanalytics

* more renames

* fix env var name for async testcase

* bump azure-core version in setup.py

* update shared reqs

* readme.rst -> readme.md for nspkg

* pylint fixes for nspkg

* change nspkg version

* update nspkg manifest.in

* temp add azure-ai-nspkg to dev_requirements.txt until pkg released

* update code from swagger fixes

* review updates
2019-12-16 15:34:57 -08:00
iscai-msft a0083a6bae
Testing framework: added ReservedResourceName error handling (#9164) 2019-12-16 12:51:55 -08:00
iscai-msft 4a485f00ca
Patch to key vault testing framework (#9117) 2019-12-13 17:41:06 -08:00
Krista Pratico c6fb69fd74
Revert "[cognitiveservices] Text Analytics track 2" (#9118)
* Revert "[cognitiveservices] Text Analytics track 2 (#8568)"

This reverts commit ea199172e4.

* Packaging update of azure-cognitiveservices-language-textanalytics
2019-12-12 14:07:37 -08:00
iscai-msft 2c9b330964
Key Vault: redoing tests with random vault naming (#9005) 2019-12-11 11:35:15 -08:00
Scott Beddall 58f395913c
azure-devtools should never install the upstream pypi version. removing implicit dependency to ensure that (#9065)
adding sdk tools and dev tools as default
2019-12-10 13:26:48 -08:00
Krista Pratico ea199172e4
[cognitiveservices] Text Analytics track 2 (#8568)
* adding generated code for TA v3-p1

* started work on convenience layer for detect entities

* working on batched operations

* fixes the document language model, swagger needs update

* working on single operations

* updated generated code, working on error handling

* more error handling work

* error handling for entities

* fixes results and errors combined response

* adds autosegmentation of batches and renames operations

* fix policy

* adds async client, refactoring, and ran black

* whole batch error handling

* fix async client

* fix error handler, fix testcase

* update generated code - commit c0df36f

* adds azure core to setup and updates to Error model

* add docstrings and fix python 2 errors

* fix bug in validate input

* add request id policy, update docstrings, and version

* fix python 2

* adds some tests and single operation samples

* add conftest

* fix python 2

* enable pylint in CI for textanalytics

* fix pylint mistake

* add another test

* fix single method raised errors and unskip tests

* more samples and a few fixes

* refactor error method

* re-generated code at commit 013ee15 and fixes as a result

* feedback - single operations return same type as batch

* simplify policy

* fix test for python 2

* add async single methods, samples, tests

* add samples to manifest.in

* DocumentLanguage returns a single DetectedLanguage per document

* support batch language/country hint

* models inherit from dictmixin + a few tests

* ignore samples readme and fix type hints

* aad support

* review feedback and wip readme

* fix readme

* fix readme again

* mypy clean and enabled mypy failures in CI

* default country and language hint + tests

* revert documentlanguage returning a single detectedlanguage per document

* add literalincludes to samples

* update history and convert .rst to .md

* renamed detect_language to detect_languages

* renames LanguageInput -> DetectLanguageInput and MultiLanguageInput -> TextDocumentInput

* review feedback

* update shared reqs for msrest
2019-12-06 11:19:04 -08:00
iscai-msft 86afbc1206 passing random_name_enabled to appropriate class (#9007) 2019-12-04 16:56:09 -08:00
Laurent Mazuel 1ef96d6efc Make preparer force https for storage account (#8563)
* Update storage_testcase.py

* small fix
2019-11-11 09:43:32 -08:00
Laurent Mazuel 134bee78b5
Move queue to global preparer (#8270)
* Initital Commit

* Create a _shared folder for tests

* Share the session fixture as well

* More global preparers

* Fix collect_ignore_glob path

* Make list_queue compatible with global storage account

* Add @live_test pytest decorator

* Re-record

* Add live_test_only marker

* lru_cache doesn't exist on 2.7

* Make live_test_only a global marker

* Fix async test_token_credential test
2019-10-30 15:37:44 -07:00
Charles Lowell 2eca50db0d Handle self.resource_moniker == None (#8239) 2019-10-28 10:39:56 -07:00
Laurent Mazuel 86bf332d69
Blob test new migration (#8215)
* Test framework improvement

* Test update

* Rercordings

* CI configuration

* Missing pytest.ini
2019-10-25 15:05:42 -07:00
Laurent Mazuel 6f8b93a4af
Update base.py (#7801) 2019-10-16 09:42:24 -07:00
Krista Pratico 28bbc3cb63
[devtools-cognitiveservices] temp fix to allow passing cog key in headers for azure-core (#7471)
* allow cog key pass in headers

* change param to legacy

* adding legacy param to text analytics test
2019-09-27 15:11:06 -07:00
Krista Pratico 7342b9e3c3 adds back create mgmt client (#7470) 2019-09-27 14:25:52 -07:00
iscai-msft 5e291ac1f5 re-added login request scrubber (#7345) 2019-09-18 14:19:58 -07:00
Laurent Mazuel ededddf3e0
Read env variables and not settings if available (#7101)
* Read env variables and not settings if available

* Remove ADLA_JOB_ID from main MgmtTestCase

* Missing self

* Fix incorrect settings usage

* Remove AD_DOMAIN from mgmt testcase

* Add set_value_to_scrub

* Fix create_mgmt_client

* Remove CLIENT_OID from main mgmttestcase

* No packaging update for KV certificates

* Packaging update of azure-mgmt-datalake-analytics

* Packaging update of azure-graphrbac

* Fix missing return
2019-09-16 12:27:25 -07:00
Rakshith Bhyravabhotla 71e62fa9da
Un-use deprecated method in devtools (#7222)
* Un-use deprecated method

* make it python 2 compatible
2019-09-13 10:14:04 -07:00
Krista Pratico 58e3bf101c
[cognitive-services] cog services devtools test framework (#7087)
* cog sci test framework

* wait for account creation

* add fixme for luis authoring key

* have mgmt testcase inherit from azure testcase

* move text analytics to new test framework

* add back code in constructor for mgmt testcase
2019-09-12 09:28:45 -07:00
Rakshith Bhyravabhotla c433e47397 Storage Preview 3 Release (#7154)
* Storage swagger (#6777)

* Python swagger update

This only changes to the official swagger version and regenerates

* Upgrade blobs swagger to 2019-02-02

* Fixed namespace dir and header

* Enable XML for blobs

* Generate vanilla blobs

* Fixed global parameters in swagger spec

* Regenerated blobs

* Revert "Fixed global parameters in swagger spec"

This reverts commit 75bd21b00a.

* Moved parameter fix to readme

* Fixed blob list serialization

* Fix for new metadata model

* Fixed datetime formatting

* Fixed required access policy

* Fixed readme analysis

* Regenerated queues

* Regenerated files

* Fixed files datetime

* Skip tests pending msrest fix

* Fixed for queue XML

* Fix for docsettings

* [storage] Fix for Files upload return type (#6772)

* Fix missing import

* Fix for Files inconsistent return types

* Blob async trace decorators

* [SnapshotSAS]Add Snapshot SAS (#6819)

* [SnapshotSAS]Add Snapshot SAS

* [SnapshotSAS]Extract SharedAccessSignature for Blob File and Queue

* [SnapshotSAS]Fix Typo

* [SnapshotSAS]Delete Redundant code

The removed code is for another feature.

* [SnapshotSAS]Stylistic Tweak

* Updating Storage Files swagger to 2019-02-02 (#6872)

* Updating Storage Files swagger to 2019-02-02

This includes a few transform changes to set default values for new required
parameters and marked certain 8601 dates as strings when they use more precision
that Python's dates.

I'm seeing a few test failures that I'm hoping someone on the Python side can
investigate (mostly "The specified share is being deleted. Try operation later."
that I was seeing before my changes).  There are a few other failures related to
new service features that we can fix if easy or disable and file a work item to
get these changes in.  The recorded tests will also have to be updated, but we
don't need to block on that right now.

* skip file permission related tests

* [Storage] File swagger updates (#6926)

* Updating Storage Files swagger to 2019-02-02

This includes a few transform changes to set default values for new required
parameters and marked certain 8601 dates as strings when they use more precision
that Python's dates.

I'm seeing a few test failures that I'm hoping someone on the Python side can
investigate (mostly "The specified share is being deleted. Try operation later."
that I was seeing before my changes).  There are a few other failures related to
new service features that we can fix if easy or disable and file a work item to
get these changes in.  The recorded tests will also have to be updated, but we
don't need to block on that right now.

* swagger changes

* [storage] make storage pylint-clean (#6929)

* make storage pylint-clean

* feedback

* Remove Storage swagger files and reference azure-rest-api-specs (#6943)

Also includes some changes to the generated code updated to the latest version
of blobs

* Append block from url sync and async (#6925)

* [Sync][AppendBlock]

* [Async][AppendBlock]Add append_block_from_url

* [Blob][AppendBlock]add recordings for append_block_from_url

* [Blob][AppendBlock]fix failing CI

* [Blob][AppendBlock]fix Pylint

* [Blob][AppendBlock]Adjust Stylistic Things

* [UpdatePage]add upload_pages_from_url sync and async (#6960)

* [UpdatePage]add upload_pages_from_url sync and async

* [UploadPage]Adjust Stylistic Things

* Fix Pylint

* Fix Pylint

* [Queues] Migrate to devtools test framework (#6882)

* initial migration

* samples

* comments

* queues test fixes

* recodings update

* update

* comment address

* pylint fix

* comments address

* Put range from url (#7081)

* [File]Upload Range From Url Sync

* [File]Upload Range From Url ASync

* Fix Pylint

* Fix Pylint

* CPK--Client Provided Encryption Key (#7104)

* [Blob]CPK without test

* Add Generated Code

* Fix Pylint

* [Blob][CPK]Test

* Add Missing Recordings

* [Blob][CPK]use existing field self.scheme

* File rest parity (#7001)

* [File][RestParity]Rest Parity Sync

Add Rest Parity Sync part(except create permission)
tweak _shared package a bit

* [File][RestParity]Rest Parity Async

Add Rest Parity Async part(except create permission)

* [File][RestParity]Add Rest Parity Async Recording Files

Add recording files for both sync and async

* [File][RestParity]Fix CI

* [File][RestParity]Recording again to fix CI

* Add Generated Code

* Stylistic Things and Record

* [Swagger][BugFix]workaround to fix swagger generated code

* [File][RestParity]Add Create_Permission API and Test

* Fix Test

* Fix Pylint

* Revert the workaround

* [File][RestParity]Tweak Documentation and Tests

* delete .dat file

* [Blob][SAS] Added support for identity SAS (#7020)

* [Storage] Incremented version for preview 3 and updated change log (#7156)

* Update Azure Core and msrest

* Add Workaround for SharePermissions,revert msrest

* Update version and history.md

* updates on history.md

* minor change

* more changes

* [Storage] Fix flaky tests (#7179)

* Update HISTORY.md

* Fix some typo in error message

* Fix Some Tests

* some more fixes

* Skip OAUTH Test
2019-09-10 16:52:05 -07:00
Scott Beddall 674af83a0a
vcrpy forcing earlier version (#6745) 2019-08-09 12:14:33 -07:00
Zim Kalinowski 337db3c8e2
adding dockerfile (#6393) 2019-07-18 09:08:35 +08:00
Laurent Mazuel 8c0d9c29b1
Fix installation instruction 2019-07-15 14:47:51 -07:00
Laurent Mazuel 24ddcedaae
Update changelog_generics.rst 2019-07-03 12:13:49 -07:00
annatisch 1f02e1bc1a
Azure Storage File Track2 (#6106)
* Files Skeleton (#5921)

* Generate storage files autorest layer (#5926)

* Generate autorest layer

* oops

* Rename files to file

* [Storage Files] API skeleton with helper files (#5965)

* Hookup File Service Client (#5977)

* Hookup share client (#6000)

* commit1

* Hook up Share Client

* Directory client hookup + File client  Hookup (#6040)

* file hookup

* changes

* [storage-files]Started adding files tests (#6051)

* Updated shared module

* Added tests

* First test pass

* Fixed client tests

* Fixed service props tests

* share tests (#6084)

* random commit

* share tests

* changes

* revert to fake settings

* Updates for file client tests

* Merged clients

* Fixed tests

* Recorded tests

* Clean test pass

* Packaging update of azure-storage-file

* Fixed acl test

* Fixed copy test

* More recordings

* Fixed copy recordings

* Fixed directory test

* Added close handles

* Updated packaging

* Updated user agent policy

* Updated dependencies

* Fixed handles tests

* Fixed syntax

* Files dependency conflict

* docstrings for files (#6128)

* Storage-File readme (#6156)

* adds file readme

* fix anchor for upload file

* Removed Py3.4 tag

* Clean pylint

* Fixed generated models

* Code samples for files (#6159)

* adds code samples for files

* fixes recording

* fixes code samples and adds literalincludes for docs

* fix links for readme

* Fix CI

* [storage-file] Docs updates (#6189)

* Fix failure to parse UTF8 files with BOM (#6160)

* Fix failure to parse UTF8 files with BOM

* Match frozen requirements in cosmos

* build universal wheels (#6173)

* Batch of doc

* Typo

* Update README and HISTORY of EventHub (#6151)

* Update readme

* Update sample code, obtain connection string and documentation reference in readme

* Remove import os in readme

* Added identity snippets in readme

* Update history, readme and license

* Update history

* Update history of EventHub

* Fix wrong version

* Update history of EventHub

* Update history to be more specific

* Update install command in readme for a preview version

* Update reference documentation link in readme

* don't scan anything under doc/ (#6185)

* Docs updates

* Some docs fixes

* Expand test coverage (#6170)

* Fixed model reference

* Fixed another reference

* Azure Storage Queue Track2 (#6039)

* Initial commit for Queues (#5656)

* Initial commit

* fix build

* fix build - 2

* add version

* API buildout (#5686)

* [Storage Queues] Add autorest layer to storage queues (#5687)

* add queue.json in swagger

* Add autorest layer

* Hooking up Queue client and Queue Service Client (#5817)

* Queue client

* changes

* shared access signature

* some fixes

* add tests

* Delete settings_real.py

* Refactored shared code and added tests

* Packaging update of azure-storage-queue

* Revert "Packaging update of azure-storage-queue"

This reverts commit fdc62ab270.

* Add packaging overwrite

* Fixed setup

* Fixed dependency

* Storage Queues readme (#6073)

* queues readme [wip]

* small fixes

* docstrings for queues (#6066)

* Updated user-agent policy

* Updated token test

* Updated message iterator to pageable

* Renamed dequeue to receive

* Removed Py3.4 tag

* Clean pylint

* Code samples for queues (#6088)

* adds code samples for queues

* fixes to code samples and adds literalincludes for docs

* add links for TODO

* uses unicode strings for python2 compatibility

* fix readme link

* Fix CI

* [Storage Queue] pylint  + mypy pass (#6187)

* [storage-queue] Docs updates (#6186)

* Docs updates

* First round review feedback

* Adopt MSAL 0.4.1 (#6176)

* Azure Storage Blob Track2 (#5896)

* Storage blob track2 (#5894)

* Blob storage track 2

* Started pylint fixes

* Clean pylint

* Started blob walk

* Started docstrings

* Support walk blob

* Pylint

* Refactored upload

* Pylint

* Packaging update of azure-storage-blob

* Fixes to storage dependencies in CI (#5900)

* Revert "Packaging update of azure-storage-blob"

This reverts commit aeeb3ceb59.

* Fix Storage CI

* Fixed imports

* updating ccount_key_arg -> account_key_arg

* updating ordering

* Packaging update of azure-storage-blob

* Revert "Packaging update of azure-storage-blob"

This reverts commit 66d68773cb.

* reverting 66d68773cb. adding sdk_packaging.toml file

* docstrings for blobs (#5954)

* [storage-blob] Refactor shared code (#5960)

* Fix Storage CI

* Fixed imports

* Refactor shared storage code

* Fixed XML error

* Reverted change to models

* Merged models docstrings

* Fix setup.py version

* Missing recordings

* Fix storage SDK conflict

* Packaging update of azure-eventhubs

* Revert "Packaging update of azure-eventhubs"

This reverts commit df844f7046.

* Fix EH packaging

* Updated shared code

* Review feedback

* [azure-storage-blob] Policy updates + simple upload/download (#6162)

* Last blob updates

* Azure core dependency version

* Update to user-agent policy

* Review feedback

* Removed old python tags

* Code samples for blobs (#6093)

* adds code samples for blobs

* fixes blob code samples and adds literalincludes for docs

* Storage Blobs Readme [wip] (#6011)

* blobs readme wip

* adding some samples and fixes for readme

* fix settings import

* moving code samples to a different PR

* small fixes to readme

* fill links for pypi and identity

* populating TODO links

* Fix CI

* [Storage Blob] pylint + mypy passs (#6175)

* pylint + mypy passs

* comments

* [storage-blob] Docs updates (#6184)

* Docs updates

* Some docstring fixes

* [storage-blob] Test rename (#6197)

* Test rename

* Removed test init files

* More renames

* Try flattening tests

* Blob test imports

* Flattened queue tests

* Renamed queue test case

* Updated manifest

* Renamed testcase

* Renamed samples

* Flattened tests

* Update PyPI package links on readme Key Vault (#6194)

* Renamed recordings

* fixes sample readme links (#6198)

* [azure-storage] Missing crypto dependency (#6203)

* [azure-storage] Missing crypto dependency

* Updated queue setup with crypto

* Fixed blob nspkg dependency

* Fixed queue nspkg dependency

* Added storage nspkg to shared deps

* Fixed dependencies

* Separate settings files

* [Storage File] pylint + mypy pass (#6202)
2019-07-03 08:07:56 -07:00
annatisch c93e46ec91
Azure Storage Blob Track2 (#5896)
* Storage blob track2 (#5894)

* Blob storage track 2

* Started pylint fixes

* Clean pylint

* Started blob walk

* Started docstrings

* Support walk blob

* Pylint

* Refactored upload

* Pylint

* Packaging update of azure-storage-blob

* Fixes to storage dependencies in CI (#5900)

* Revert "Packaging update of azure-storage-blob"

This reverts commit aeeb3ceb59.

* Fix Storage CI

* Fixed imports

* updating ccount_key_arg -> account_key_arg

* updating ordering

* Packaging update of azure-storage-blob

* Revert "Packaging update of azure-storage-blob"

This reverts commit 66d68773cb.

* reverting 66d68773cb. adding sdk_packaging.toml file

* docstrings for blobs (#5954)

* [storage-blob] Refactor shared code (#5960)

* Fix Storage CI

* Fixed imports

* Refactor shared storage code

* Fixed XML error

* Reverted change to models

* Merged models docstrings

* Fix setup.py version

* Missing recordings

* Fix storage SDK conflict

* Packaging update of azure-eventhubs

* Revert "Packaging update of azure-eventhubs"

This reverts commit df844f7046.

* Fix EH packaging

* Updated shared code

* Review feedback

* [azure-storage-blob] Policy updates + simple upload/download (#6162)

* Last blob updates

* Azure core dependency version

* Update to user-agent policy

* Review feedback

* Removed old python tags

* Code samples for blobs (#6093)

* adds code samples for blobs

* fixes blob code samples and adds literalincludes for docs

* Storage Blobs Readme [wip] (#6011)

* blobs readme wip

* adding some samples and fixes for readme

* fix settings import

* moving code samples to a different PR

* small fixes to readme

* fill links for pypi and identity

* populating TODO links

* Fix CI

* [Storage Blob] pylint + mypy passs (#6175)

* pylint + mypy passs

* comments

* [storage-blob] Docs updates (#6184)

* Docs updates

* Some docstring fixes

* [storage-blob] Test rename (#6197)

* Test rename

* Removed test init files

* More renames

* Try flattening tests

* Blob test imports

* Flattened queue tests

* Renamed queue test case
2019-07-02 09:11:48 -07:00
Laurent Mazuel c2a49496dd
3.4 is dead (#6131) 2019-06-27 10:16:06 -07:00
Laurent Mazuel 36406dafc7
Merged report for multi-api package 2019-06-21 16:35:26 -07:00
Laurent Mazuel 45095e4425
Add SwaggerToSdk CLI (#5989) 2019-06-20 12:47:12 -07:00
Laurent Mazuel 824a5a2477
Devtools (#5759)
* Initial commit

* Initial commit

* Initial commit

* wip: initial work - incomplete

* Copy code from https://github.com/Azure/azure-cli/tree/master/src/azure-cli-testsdk

* Add vcrpy version from azure-cli

* Add VSCode ignores

* Add Azure imports

* Start converting CLI commands to SDK calls

* Minor proofreading

* Add required common and mock modules

* Add deps, update pkgs and url

* Package structure

* Add more editor ignores

* Remove azure deps and nonexistent HISTORY ref

* Remove Azure mgmt dependencies

* Remove azure.common dependency

* Add dependency on six

* Remove CLI-specific stuff

* Remove CLI exception

* Remove most CLI-centric patches

* Remove older CLI-centric base class

* Add sleep patch back in

* First steps toward a unified config

* Config and no-record headers

Add config object to ScenarioTest
Add fake header for deactivating recording
Align cmdline options with vcr.py options

* Move recording-deactivation header detection to right place

* Add way to set default config file from scenario test

* Remove 'CLI' from env vars

* Reinstate patch_long_run_operation_delay

* New record disabling mechanism

* Modify config options for better backwards compatibility

* Ignore more VS stuff

* Remove jmespath dependency, update vcrpy

* Remove checkers

* Remove unuseds, make patches/processors kwargs

* Remove checkers, used only for CLI

* Update import and instance var name

* Remove unused imports

* line organization

* Update version number and vcrpy version

* Add a little more to README, add setup.cfg

* Add unit tests for TestConfig

* Add travis.yml and update dependencies

* Update author email

* Dummy push to try to trigger a Travis build

* Another dummy commit for Travis

* Switch to README.rst

* Update Travis tag pointer

* Use io to get encoding arg when reading README

* Remove unnecessary import

* Expose most everything in top-level namespace

* ScenarioTest -> ReplayableTest; update version

* Update version

* Remove unused os.path import

* Fix super call

* Fix super call in setUp

* Update ReplayableTest import

* Use earlier vcrpy, update version num

* Don't fix vcrpy version

* Drop "cli" from default random name prefix

* Add deployment to Travis

* Specify universal wheel

* Bump version to 0.2.2 for testing CI release process

* Let preparer subclasses override create_random_name

* De-"privatize" mock_in_unit_test and expose it

* Bump version to 0.3.0

* Set disable_recording from kwarg

* Don't treat mock_in_unit_test as a unittest

* Remove skip for mock_in_unit_test, specify test dir

* Update version numbers

* Remove extraneous requirements

* Remove outdated README.md stuff

* Update install for new requirements.txt

* Add 3.6-dev to pythons

* Update code style and run pylint in Travis

* Integrate with codecov.io

* Add test cover IntegrationTestBase

Also check in IntelliJ IDEA workspace configuration just in case someone
else is using PyCharm

* Add test case for LiveTest constructor

* Add tests cover create_random_name

* Add test covering get_sha1_hash

* Add test cover RecordingProcessor base class

* Add test covering SubscriptionRecordingProcessor

* Configure code coverage using configuration file

* Use unittest instead of nosetests to drive the automation

* Fix a few code style issues

* Rename coveragerc file

* Add AccessTokenProcessor

* Split intro and overview into clauses

* Back to paragraphs

* Update intro, add vcr link

* Update intro paragraph to be more general

* Remove reference to command modules

* Update test and module refs; clarify VCR.py role

* Remove outdated reference to class with builtin preparer

* Replace intro text

Use intro stolen from defunct recording_vcr_tests.md

* s/ScenarioTest/ReplayableTest/

* Add note about semantic linefeeds

* Make semantic linefeeds note an HTML comment

* Remove CLI examples and add links to consumers

* Remove doc for legacy test case class

* Finish sentence

* Add subclass kwarg information

* Fix subscription ID removal and test new cases

* Fix no-self-use linter complaint

* Downgrade the version of vcrpy dependency

from 1.11.1 to 1.11.0 due to a sympton similar to this
https://github.com/kevin1024/vcrpy/issues/318

* Bump version to 0.5.0 to prepare for release

* Fix import on Py3 not-TravisCI

* Fix recordmode

* Tight config test

* url parsing fix

* fixed pylint import order

* pylint import fix

* added record processor for slashes

* changed processor name

* Bump version 0.5.0 => 0.5.1

* Fix SubscriptionIdReplacer

* Update version 0.5.1 => 0.5.2

* Update __init__.py

* Detect leaked LRO poller

* PyLint happiness

* Improve error message

* wip

* fix error

* use base 64

* simplify

* add comments

* fix tests

* fix lint error

* use newer pylint to avoid invalid line errors

* add a new test

* address review feedback

* address review feedback

* support large response payload

* remove useless single quots from the error message

* setup: update version

* do not use preparer model for allowing large payload

* address review feedback

* Support Autorest.Python 3.x LRO leak (#42)

* Support Autorest.Python 3.x LRO leak

* PyLint happyness

* Bump version to 0.5.5

* Update the resource removal sequence

Also:
1. Adopt py.test over nosetest
2. Cleanup some test code

* remove x-ms-authorization-auxiliary header

* fix lint error

* update version

* Add some CI tools to devtools

* Readme update

* Some tests configuration

* Use Pytest as test launcher

* PyLint fixes

* CI tools tests are Py3.6 only

* PyLint CI tools only if 3.6

* CI tools tests recording

* Dont't Pylint the tests

* Fix incorrect usage of os.environ

* Make tests X-platform valid

* Fix test dependent of traceback

* Robust preparer testing

* PyGithub 1.40

* Release 1.1.0

* Allow clone_to_path to have both PR and SHA1 (#49)

* Allow clone_to_path to have both PR and SHA1

* Fix test

* Update github_tools.py (#55)

* SingleValueReplacer.process_request properly decodes request.body if its type is byte. (#56)

* Remove pointless files

* Move to tools

* Update dev_requirement file

* Don't record requests to AAD OAuth2 v2.0 endpoint

* Use devtools from repo, not from PyPI

* Fix mock dep
2019-06-10 10:15:46 -07:00
Laurent Mazuel 9c07a776fe
Tools folder (#5734)
* Move to SDK tools

* Change them all

* Update dev_setup

* Template should ask no update by default

* Refix dev_setup

* Do not check Readme inside tools folder

* Re-re-fix and tested dev_setup

* Blackened
2019-06-07 15:46:24 -07:00