Граф коммитов

270 Коммитов

Автор SHA1 Сообщение Дата
Travis Prescott 3f474a37c9 [Network] Add AppGateway subresource tests (#4137)
* Add app gateway tests.

* Fix recording.

* Add more tests.

* Add app-gateway probe test.

* Add app-gateway rule test

* Fix three_state_flag.
2017-08-07 15:07:32 -07:00
Travis Prescott 08769b352a [VMSS] Fix issue when creating scale set with existing LB/AG (#4001)
* Fix #3986.

* Add defaulting logic for existing LB/AG
2017-07-11 15:31:22 -07:00
Travis Prescott d99362eae3 [VM/VMSS] Improve create validation (#3950)
* Investigation

* Fix #3857.

* VM/VMSS debugging statements.

* Add debugging statements to VM/VMSS create.

* Rebase conflicts

* Fix issue with default admin username.

* Re-record tests.
2017-07-03 17:28:16 -07:00
Travis Prescott 9badaecec5 [ARM] Improve deployment parameter parsing (#3850)
* Move parameter logic from validator to custom command.

* Add test files.

* Enhance test coverage.

* Re-tests

* Re-record tests.
2017-06-27 09:39:40 -07:00
Travis Prescott f3af11873a Update Visual Studio proj files for relocated tests. (#3854) 2017-06-22 09:54:11 -07:00
Travis Prescott 460a9f4082 Add generic exception handling for template progress reporting (#3799)
* Close #3795.

* Code review feedback.
2017-06-21 13:49:17 -07:00
Mohammad Derakhshani 0ef94e4176 cosmosdb: add support for default ttl (#3761)
* documentdb cli minor improvement

* updates help description for credentials
* minor change to formatting of failure error message
* --coll-name changed to --collection-name

* documentdb: minor error message change

* pyproj updated to include all cosmosdb files

* cosmosdb: add support for collection default ttl

* cosmosdb: history file updated

* updated pyproj files

* fixed code style

* cosmosdb: review comments addressed

* addressed code style issue

* code style issue fixed

* logic simplified

* fixed history

* remove unwanted stashed changes

* remove unwanted files
2017-06-19 22:04:16 -07:00
Travis Prescott 757e40d2c9 Fix deployment parameters parsing and update test (#3743) 2017-06-15 16:59:37 -07:00
Travis Prescott 3753b503aa [ARM] Add KEY=VALUE syntax for deployment create (#3637)
* Merry progress.

* Refactoring progress.

* Finish implementation.

* Finishing touches.
2017-06-09 10:41:00 -07:00
Jared Moore e897601224 Add sql show-capabilities command (#3444)
* Implemented sql show-capabilities command

* Separate filter and search argument groups

* Beginning support for elastic pool capabilities

* Fixed errors loading sdk operations

* Design change: prune based on depth

* Added capabilities help and examples

* More capabilities help

* Add test stub and fix lint errors

* Added first verification

* Fixed prune by depth logic

* Split up db and pool capabilities

* Added show param to db capabilities

* Pool capability params

* Case insensitive comparison

* Hide with empty instead of deleting

* Initial tests for capabilities

* Help for new db/pool capabilities commands

* Fix style

* details -> detail (better?) and documented dtu param

* Fixed test failures

* Fixed style-related feedback

* Removed VS upgrade log

* Removed 'is not None' per feedback

* Reverted parameters.py change

* Finished capabilities testing

* Add storage/max-size alias to elastic-pool create

* `is None` -> `not`

* FIxed indentation

* `--show-details`/`-d` to harmonize with `az vm show`

* Add Search arg group for pool capabilities

* Fixed style errors

* Simplify list comprehension with truthiness

* Renamed to list-editions; removed enum check on edition/slo args

* Fixed wonky help text

* Fixed pylint

* Added comments regarding elastic-pool param names

* Fixed testsdk style error

* Added history.rst entry for list-editions commands

* Fixed syntax error on python 2
2017-05-31 16:26:12 -07:00
Panda Wang 40c111b3da CLI commands for azure billing and consumption (#3402) 2017-05-25 14:03:24 -07:00
annatisch 1203e0d28b Batch SDK update (#3370)
* Updated SDK version dependency

* Merged restructured test suite

* Added cmd output checks

* SDK updates and test fixes

* Re-recorded tests

* Re-recorded tests

* doc update

* style fixes

* More style fixes
2017-05-19 15:18:25 -07:00
Travis Prescott af91c60f1d [Monitor] Revised Alert Rule Commands (#3373)
* Progress on new alert rules.

* Fix alert rules client.

* Alternate alert rule create.

* Progress.

* Add mechanism to support resource name components or ID.

* Continue work

* Alert rule progress.

* Finish up work on alert update.

* Tests and tweaks.

* Code review feedback.

* Add custom exception handler to fix #3334.
2017-05-18 10:36:25 -07:00
Travis Prescott 93b5b4baa5 [VM] `vm open-port` fix (#3354)
* Do not update the NIC/subnet unless NSG had to be created.

* Fix test and change output to always output the NSG.
2017-05-17 08:29:16 -07:00
Travis Prescott 5df3cbf40b Case insensitive command path and tests. (#3355) 2017-05-15 16:47:45 -07:00
Travis Prescott 3e10c0fcee [Role] Service Principal KeyVault integration (#3133)
* Progress

* Support KeyVault scenarios on create-for-rbac

* Update reset-credentials to mirror create-for-rbac KeyVault logic.

* Add tests

* T/S invalid start/end date.

* Refactor logic.

* Fix GetDefaultPolicy entries for Python2.

* Workaround for RoleCreateScenarioTest issues.

* Update release notes.

* Consolidate --cert and --cert-name.  Update help.  Refactor validation.

* Code review feedback.

* Update version

* Revert KeyVault dataplane version.

* Code review comments.

* Refactor tests to ensure app ID is deleted.
2017-05-11 10:16:22 -07:00
Suna Liu b397cd1f06 [RDBMS] Add Test Scenarios (#3240)
* Add test cases for mysql and postgrs command module

* Add test recordings

* Address comments and refresh recordings
2017-05-11 07:43:15 -07:00
Travis Prescott 047d00e9b9 Verify multi-NIC order. (#3266) 2017-05-10 12:11:27 -07:00
vivsriaus 873f3d6ebb Update default arm api version, update ARM package, add test for CrossRG (#3256) 2017-05-08 20:51:58 -07:00
Suna Liu c88ef10875 [RDBMS] MySQL/Postgres command support (#3236)
* Initial commit for mysql and postgres command module

* Remove test files, will add them and recordings later

* Remove test files in proj file
2017-05-08 12:22:56 -07:00
Sarthak Narang 890155527a Removing az container module (#3156)
* Removing az container module

* Reverting formatting change.
2017-05-03 15:38:27 -07:00
Yugang Wang eb1b2192bc FunctionApp: basic operations (#3146) 2017-05-03 10:32:22 -07:00
kostenray 21e1f9d60c azure cognitive service CLI initial version (#3060)
* initial update

* update

* add the CLI for 2017-04-18 swagger file

* cognitive service cli - inital version'

* rollback debug code change

* style refactoring update

* update

* change the term text to yellow highlighted

* code comment fix - update #1

* fix code comments - update #2

* 1.fix flake 8 styling error
2. add the depedencies in setup,

* fix an change in our service legal terms.

* fix a help.py styling issue

* update the setup.py

* update description of setup.py
2017-05-02 14:56:30 -07:00
Yugang Wang 00c859ab5e appservice: support configure data connections (#3006) 2017-05-01 21:56:06 -07:00
Yugang Wang ef0fa90f8f core: capture exceptions caused by unregistered provider and auto-register it (#3045) 2017-05-01 11:46:33 -07:00
Mohammad Derakhshani ce8b827b06 azure-cli documentdb dataplane (#3061)
* DocumentDB cmdlets

added the support for documentdb database and collection management

database management:
create: Creates an Azure DocumentDB database.
delete: Deletes an Azure DocumentDB database.
exists: Returns a boolean indicating whether the database exists.
list  : Lists all Azure DocumentDB databases.
read  : Reads an Azure DocumentDB database.

collection management:
create: Creates an Azure DocumentDB collection.
delete: Deletes an Azure DocumentDB collection.
exists: Returns a boolean indicating whether the collection exists.
list  : Lists all Azure DocumentDB collections.
read  : Reads an Azure DocumentDB collection.
update: Updates an Azure DocumentDB collection.

* azure-cli documentdb data-plane improvement

 * support for error handling
 * support for account key/name/url-connection from env variable
 * minor improvements

* documentdb: updated HISTORY.rst and bumped version to 0.1.4

* documentdb: fixed a typo in setup.py

added the missing ','

* re-ordering imports

* reordering imports

* minor code style cleanup

* minor code style cleanup

* minor code style cleanup

* pylint: trailing spaces removed

* addressed all pylint code style warnings and print out command result

 * pyling code style warnings addressed
 * now we print out some results from update and create operation

* pylint py35 addressed

* set default indexing policy to range range

* documentdb: addressed review comments

* changed cliError to cli_error

* minor improvements:

 * using resource group name and account name, key is retrieved
 * a new exception handler added
2017-05-01 09:13:51 -07:00
bganapa a6b8fd8a53 changing the profile name to match powershell profile name and removing the unused profile (#2979)
* changing the profile name to match powershell profile name and removing the unused profile

* Changes in the API Format validation for supporting the literal 'profile' as part of the profile name

* unit test changes for profile names
2017-04-28 16:59:18 -07:00
Troy Dai 4e9bec4e45 Update storage tests (#3007)
* Update storage tests

1. Move tests from test_storage.py to other test files;
2. Adopt ScenarioTests
3. Retire old storage test base

* Update and remove storage test recordings
2017-04-27 08:59:50 -07:00
Johan Stenberg (MSFT) c1684ea00f Performance: Stop using pkg_resources/declare_namespace (#2951)
* Performance: fix up namespace

* Exclude azure_bdist_wheel.py from flak8 verification

* Ignore remaining azure_bdist_wheel.py files from flake8 and stop running pylint on azure-cli-nspkg namespace package

* Temporarily fix up flake8 script to exclude the azure_bdist_wheel.py files

* Add missing azure_bdist_wheel file for the testsdk

* Allow empty __init__.py files and exclude azure_bdist_wheel.py files from check for valid license header

* Add azure_bdist_wheel.py files to project file

* Bump minor version for all modules

* Accidentally bumped the dependency on the azure-nspkg to 3.0.0 or later (which obviously can't be found)

* Revert version bump - we'll do that when we release instead.

* Partial add of azure-cli-command_modules-nspkg to allow reuse of the same azure_bdist_wheel.py file that the azure sdk is using

* - Change things so we use an identical azure_bdist_wheel.py/setup.cfg file as the rest of the azure sdk. This required adding an azure-cli-command_modules-nspkg package since the sdk version uses the name of the package as the path in which to look for/exclude __init__.py files.

* Update actual name of src/azure-cli-command_modules-nspkg to azure-cli-command-module-nspkg since that makes setuptools happier.

* Stop building sdists

* Address code review feedback:
- set correct version requirement for azure-cli-nspkg in the command_modules nspkg setup.py
- Remove hard-coded dependency on azure cli nspkg from azure cli core and let the bdist_wheel extension added it required.
2017-04-25 12:39:44 -07:00
Travis Prescott 6da8f26313 Add exception_handler kwarg support to generic_update and generic_wait command registration. (#2901) 2017-04-19 10:37:32 -07:00
Alfan T P 3f4409b8f3 Adding ability to scale for Redis Cache, adding tests (#2821)
* adding ability to scale for redis cache

* adding tests for redis cache, adding change in history.rst

* fixing test failures

* fixing build errors

* removing sku-capacity and sku-family and adding vm-size as variable. Adding 'getting deprecated' message for update-settings command

* fixing build

* incorporating CR comments
2017-04-17 11:08:19 -07:00
Yugang Wang 5c53a3b60f role: fix role definition update and accept custom password on create SP (#2845)
* rbac:bug fixes on role and sp update

* ensure role name is not reset during update

* add tests

* remove nonlocal usages which is 3.x only
2017-04-14 01:25:36 +02:00
Yugang Wang b3b1b4e695 ACS: remove the old smart create templates and a few more improvements (#2801)
* wip

* refresh tests

* move acs tests to acs modules

* fix style check error

* update history

* add test for kubenetes create

* support ssh keygen in test
2017-04-11 10:06:46 -07:00
Travis Prescott fa855def74 [Compute] Fix issues with VMSS and VM availability set update. (#2773)
* Fix issues with VMSS and VM availability set update.

* Update help. Fix #2762.
2017-04-05 14:00:48 -07:00
Travis Prescott 4c98204f3b Alter JSON string parsing from shell (#2705)
* Progress

* Temp fix.

More robust parsing for dictionary-like parameters.
2017-04-03 16:02:09 -07:00
Travis Prescott 2f0cb9daf5 [Network] Convert Load Balancer and App Gateway Create to Dynamic Templates (#2668)
* Group params.

* Import VMSS implementation of template builder.

* Update template builders.

* Add custom command logic.

* Update LB params.

* Update load balancer create.

* AppGateway progress

* App gateway progress.

* Re-record tests.

* Code review feedback.
2017-03-30 11:00:40 -07:00
begoldsm a60c395448 Refactor of DataLake module into dls and dla modules (#2604)
* Set official version for ADL

* Renaming feedback for data lake, first iteration.

This renames all of the data lake commands to dla and dls
It breaks them into separate modules
It updates our params to more nicely follow the '-' standard.
Updates tests to use new naming.
Updates help to use new naming.

* Add ACL and expiry support to DLS and tests

* Add all the information to history for dla and dls

* Fix pylint errors.

Ran an older version of check_style which didn't catch these.

* Address PR feedback

remove "optional" strings in help text
update history
update versions
update dependencies.

* fixed the access test and put it in the right test

* Sync to latest and re-record test

This test was failing due to a change in the test recording processor
that I hadn't sync. After sync and re-record, test passes.

* Address one last PR comment

Turns out, after additional testing, that I do not even need to do any
quoting at all, since it is handled during URI crafting by the
underlying client. Removing it and using isoformat.
2017-03-27 11:09:56 -07:00
Jared Moore 5b003900db Removed duplicate sql utils code (#2629)
* Remove duplicate sql utils & validator code

Fixes #2628

* Fixed bad merge
2017-03-27 11:09:00 -07:00
Nathan afee409b33 Import/Export CLI changes for SAS key (#2584)
* Add examples, custom code handling, and testing for Import/Export using SAS key

* Fix help section

* Change test to be Python 2 compatible, re-do recording

* Addressed comments, fix linter issues

* Update dependency to azure-mgmt-sql==0.4.0

* Fixed Import/Export examples

* Fixed auth_type param in db export
2017-03-25 08:36:46 -07:00
Travis Prescott 43d788cd4a [Compute] Add AppGateway support to VMSS create (#2570)
* Add application gateway to VMSS create.

* Add mutual exclusion validation to network balancer arguments.

* Permit app-gateway or load-balancer frontend when instance count <= 100

* Code review fixes.

* Code review feedback.
2017-03-24 13:45:27 -07:00
annatisch 29d8a30bfb [Batch] Added output table formatting (#2602)
* Added special output transformers

* Fixed names with hyphens

* Add the table format for commands.

* added mgmt table transforms

* Some fixes to table formatting

* style fixes

* Some test fixes

* Removed duplicate formatting
2017-03-24 13:00:11 -07:00
Yugang Wang 96fd150a68 core: support login using service principal with a cert (#2457) 2017-03-15 13:57:14 -07:00
Travis Prescott 4a496384c3 [KeyVault] Enable creation of KeyVault using service principal. (#2447)
* Enable creation of KeyVault using service principal.
2017-03-10 10:57:34 -08:00
Jared Moore ad9c974cae Design changes and tests for SQL DB replication commands (#2379)
* Replica command redesign. Implemented failover command.

* Initial db replica test which creates multiple resource groups

* replica cmd work

* Fixed failover test error

* Failover test succeeded

* Dont use exceptions for control flow. Fixed style

* Rename --secondary-* params to --partner-* for consistency

* Fixed indentation warning

* Fixed style errors in vcr base

* Rename failover to set-primary-replica.

This makes it clearer that the operation is performed on the secondary. Also makes replica-related commands more visually distinct.

* Move replica commands into sql db replica subgroup

* Removed --partner prefix from replica create properties where possible

* Converting tests to ScenarioTest

* All tests except server mgmt are recorded

* server mgmt is now recorded

* Revert change to vcr test base

* Updated sql tests path in pyproj

* Another pyproj change

* Fully revert vcr test base

* Refactor sql tests. Stop being so selfish.

* Reverted line break change in preparers
2017-03-09 20:22:47 -08:00
begoldsm 19ede86b78 Initial ADLS and ADLA commands (#2257)
* Initial ADLS and ADLA commands

This just gets initial structure in place based on redis commands. This
has not yet been replaced to have functional ADL commands yet.

initial functional ADL commands in python

Update versions and add initial custom functions

Add customizations and flesh out commands.

Add full help and fix up custom logic for ADL

Add filesystem commands.

explicitly convert to ints.

* Update to fix my one test and get all the help in

* Remove my debug logic.

* Address PR feedback.

add dashes into some command names
commonize parameters
fix help
add the ability to determine location based on resource group

* remove common params that are globally defined.

* Add more tests, address some comments

Address comments about help
Still todo:
Tests for job, catalog and file
Add validators.

* Add tests and fixes for filesystem.

* pylint and test fixes for ADL

There is one test remaining that needs to be fixed, and validators are
required, but this covers pretty much all necessary changes.

* Add validators and fix pylint and tests

Add resource group validator
Fix tests for scrubbing Job IDs
Re-record job test
Address remaining pylint issues.

* fix help, address 2.7 pylint.

* Address PR comments

* add help and functionality for the generic @file

* Fix pylint error.

* Address final PR comments

Move mock.patch to my test file
move mock_get_uuid_str() to my test file
move all tests to the root of azure-cli-datalake
fix single params to work properly (missing empty second param)

* Fixing tests.

* Missing comma breaking tests

* fix incorrect param in help.
2017-03-09 17:08:17 -08:00
Yugang Wang 5794d2c00f appservice: misc bug fixes(locations, trace when browse, polish error) (#2407)
* appservice: misc bug fixes(locations, trace when browse, polish error)

* rename --start-trace to --logs

* address review feedback
2017-03-09 20:40:27 +01:00
Travis Prescott 7bb18e08ee [Network] Convert network creates to use SDK (#2371)
* Fix RouteTable create failure.

* Workaround for RouteTable delete service bug.

* Convert express route circuit create.

* Convert traffic manager profile.

* Convert NIC create progress.

* Convert NSG create to SDK method.

* Local and VNet Gateway create converted to SDK calls.

* Re-record test.
2017-03-03 15:06:05 -08:00
Travis Prescott be7374b73d Initial fix. (#2345) 2017-03-02 11:01:52 -08:00
Travis Prescott 8fb6b56d5b [VM] Allow VM creation with specialized VHD (#2256)
* Enable specialized VHD. Refactor logic.

* Re-re-record ACS test...

* Troubleshoot CI.

* Address code review feedback.

* Code review feedback.
2017-03-01 09:59:52 -08:00
Travis Prescott 7e9cc47e04 [Network] Convert VNet Create to use SDK (#2269)
* Inital work.

* Finish conversion to template deployment.

* Switch to SDK backed custom command. Remove FC.

* Fix code review comment.
2017-03-01 09:43:49 -08:00