Skip to content

Commit 0c48c28

Browse files
committed
Merge pull request Azure#78 from tjprescott/AddStorageDataPlaneCommands
Add storage data plane commands
2 parents c2189a5 + e1b8ee6 commit 0c48c28

File tree

5 files changed

+264
-50
lines changed

5 files changed

+264
-50
lines changed

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,4 @@ src/build
5757
/.vs/config/applicationhost.config
5858

5959
# Azure deployment credentials
60-
*.pubxml
61-
60+
*.pubxml

azure-cli.pyproj

+13
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,15 @@
4242
<Compile Include="azure\cli\extensions\transform.py" />
4343
<Compile Include="azure\cli\extensions\__init__.py" />
4444
<Compile Include="azure\cli\main.py" />
45+
<Compile Include="azure\cli\tests\command_specs\test_spec_network.py" />
46+
<Compile Include="azure\cli\tests\command_specs\test_spec_resource.py" />
47+
<Compile Include="azure\cli\tests\command_specs\test_spec_vm.py" />
48+
<Compile Include="azure\cli\tests\command_specs\__init__.py" />
4549
<Compile Include="azure\cli\tests\test_argparse.py">
4650
<SubType>Code</SubType>
4751
</Compile>
4852
<Compile Include="azure\cli\tests\test_autocommand.py" />
53+
<Compile Include="azure\cli\tests\test_commands.py" />
4954
<Compile Include="azure\cli\tests\test_connection_verify.py" />
5055
<Compile Include="azure\cli\tests\test_output.py" />
5156
<Compile Include="azure\cli\_debug.py" />
@@ -73,6 +78,8 @@
7378
<Folder Include="azure\cli\commands" />
7479
<Folder Include="azure\cli\extensions\" />
7580
<Folder Include="azure\cli\tests\" />
81+
<Folder Include="azure\cli\tests\command_specs\" />
82+
<Folder Include="azure\cli\tests\recordings\" />
7683
</ItemGroup>
7784
<ItemGroup>
7885
<Interpreter Include="..\env\">
@@ -87,6 +94,12 @@
8794
<Architecture>X86</Architecture>
8895
</Interpreter>
8996
</ItemGroup>
97+
<ItemGroup>
98+
<Content Include="azure\cli\tests\recordings\command_specs.test_spec_network.test_network_usage_list.yaml" />
99+
<Content Include="azure\cli\tests\recordings\command_specs.test_spec_resource.test_resource_group_list.yaml" />
100+
<Content Include="azure\cli\tests\recordings\command_specs.test_spec_vm.test_vm_usage_list_westus.yaml" />
101+
<Content Include="azure\cli\tests\recordings\README.rst" />
102+
</ItemGroup>
90103
<Import Project="$(PtvsTargetsFile)" Condition="Exists($(PtvsTargetsFile))" />
91104
<Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" Condition="!Exists($(PtvsTargetsFile))" />
92105
</Project>

src/azure/cli/commands/_command_creation.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ def get_mgmt_service_client(client_type, config_type):
1212

1313
return client
1414

15-
def get_data_service_client(service_type, account_name, account_key):
16-
client = service_type(account_name=account_name, account_key=account_key)
15+
def get_data_service_client(service_type, account_name, account_key, connection_string=None):
16+
client = service_type(account_name=account_name,
17+
account_key=account_key,
18+
connection_string=connection_string)
1719
# TODO: enable Fiddler and user agent (task #115270703, #115270881)
1820
return client

0 commit comments

Comments
 (0)