Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devtools #5759

Merged
merged 171 commits into from
Jun 10, 2019
Merged

Devtools #5759

merged 171 commits into from
Jun 10, 2019

Conversation

lmazuel
Copy link
Member

@lmazuel lmazuel commented Jun 7, 2019

@scbedd because it was not that complicated and more fair for people that contributed to that project, I kept the history ;)

@lmazuel lmazuel added the EngSys This issue is impacting the engineering system. label Jun 7, 2019
@lmazuel lmazuel requested a review from scbedd June 7, 2019 23:00
@lmazuel lmazuel merged commit 824a5a2 into master Jun 10, 2019
@lmazuel lmazuel deleted the devtools branch June 10, 2019 17:15
rajivnandivada pushed a commit to rajivnandivada/azure-sdk-for-python that referenced this pull request Jul 3, 2019
* 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
kevin1024/vcrpy#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 (Azure#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 (Azure#49)

* Allow clone_to_path to have both PR and SHA1

* Fix test

* Update github_tools.py (Azure#55)

* SingleValueReplacer.process_request properly decodes request.body if its type is byte. (Azure#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EngSys This issue is impacting the engineering system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants