Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
f6509b6
Azure-Fllet CLI generation.
rahuls-microsoft Oct 18, 2024
ea41620
Adding ComputeFleet CLI files.
rahuls-microsoft Oct 18, 2024
29ab46a
Merge branch 'Azure:dev' into dev
rahuls-microsoft Oct 19, 2024
f0ea798
Merge branch 'Azure:dev' into computefleet
rahuls-microsoft Oct 19, 2024
110ceb8
Az Fleet test generated by copilot and recordings.
rahuls-microsoft Oct 20, 2024
d4b0a0d
Test code generated by copilot using .net test code.
rahuls-microsoft Oct 20, 2024
fd14331
Update Tests and default parameters.
rahuls-microsoft Oct 21, 2024
9f8ab3f
Update Tests and default parameters. And Recordings.
rahuls-microsoft Oct 22, 2024
30e8ae0
Test Updates.
rahuls-microsoft Oct 22, 2024
840c67e
Merge branch 'dev' of https://github.com/Azure/azure-cli into dev
rahuls-microsoft Oct 22, 2024
23384fb
Test Updates.
rahuls-microsoft Oct 22, 2024
293c94b
Updates to call create with multiple params.
rahuls-microsoft Oct 22, 2024
c966088
Updated cmd with all options.
rahuls-microsoft Oct 22, 2024
ed43b9c
No Op
rahuls-microsoft Oct 22, 2024
d7867bf
Updates to test
rahuls-microsoft Oct 22, 2024
5aab668
Merge branch 'Azure:dev' into dev
rahuls-microsoft Oct 22, 2024
414fc77
remove old recording.
rahuls-microsoft Oct 22, 2024
8d60ba8
Update test and recordings, setup.
rahuls-microsoft Oct 22, 2024
130c99c
Updates to tests.
rahuls-microsoft Oct 23, 2024
3a573cf
commands.py update.
rahuls-microsoft Oct 23, 2024
a894600
Merge branch 'fleet' of https://github.com/rahuls-microsoft/azure-cli…
rahuls-microsoft Oct 23, 2024
7690904
Merge branch 'Azure:dev' into computefleet
rahuls-microsoft Oct 23, 2024
5612511
Merge branch 'Azure:dev' into fleet
rahuls-microsoft Oct 23, 2024
b87d827
Merge branch 'Azure:dev' into dev
rahuls-microsoft Oct 23, 2024
03c9eef
Merge branch 'dev' into fleet
rahuls-microsoft Oct 23, 2024
c334159
Merge branch 'dev' into computefleet
rahuls-microsoft Oct 23, 2024
35d0560
Config updates.
rahuls-microsoft Oct 23, 2024
2b2233c
Merge branch 'fleet' into computefleet
rahuls-microsoft Oct 23, 2024
5a74d61
Updates.
rahuls-microsoft Oct 23, 2024
ca62551
Config updtes.
rahuls-microsoft Oct 24, 2024
5e80c72
Updates.
rahuls-microsoft Oct 24, 2024
3fad900
Test update.
rahuls-microsoft Oct 24, 2024
92add65
Test Recordings
rahuls-microsoft Oct 24, 2024
706d99f
Remove local files.
rahuls-microsoft Oct 24, 2024
fc36a68
Updates based on Github CoPilot suggestions
rahuls-microsoft Oct 24, 2024
3b2cd4d
updates
rahuls-microsoft Oct 28, 2024
83c1524
Update cmd to - az azure-fleet list-vmss
rahuls-microsoft Oct 28, 2024
3e611dc
Adding list_vmss cmd reference and tests.
rahuls-microsoft Oct 28, 2024
4f5b055
Update the - az azure-fleet fleet update API example
rahuls-microsoft Oct 29, 2024
377fe33
Adding MGMT_COMPUTEFLEET to _shared.py.
rahuls-microsoft Oct 29, 2024
8cf3f6a
Updates based on Github Copilot and docs to add MGMT_COMPUTEFLEET in…
rahuls-microsoft Oct 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updates to tests.
  • Loading branch information
rahuls-microsoft committed Oct 23, 2024
commit 130c99c91bcd022fa18f975e2c94c941896f08ab
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
# pylint: disable=too-many-lines
# pylint: disable=too-many-statements

from knack.log import get_logger
#from knack.log import get_logger


logger = get_logger(__name__)
#logger = get_logger(__name__)
4 changes: 2 additions & 2 deletions src/azure-cli/azure/cli/command_modules/computefleet/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

setup(
name='azure-cli-computefleet',
version='0.1.0',
version='1.0.0',
description='Microsoft Azure Command-Line Tools Compute Fleet Module',
author='Your Name',
author_email='your-email@example.com',
author_email='rahuls@microsoft.com',
url='https://github.com/Azure/azure-cli',
packages=find_packages(),
include_package_data=True,
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -139,24 +139,12 @@ def test_fleet_create(self, fleet=fleet_name, rg=resource_group, loc=location, f
'tags': json.dumps(tags),
'tagsNew': json.dumps(tagsNew)
})

self.cmd('az computefleet create --name {fleet_name_spot} --resource-group {resource_group} --spot-priority-profile {spot_profile} --location {location} --tags {tags} ', checks=[
self.check('name', '{fleet_name_spot}'),
self.check('resourceGroup', '{resource_group}')
])


self.cmd('az computefleet create --name {fleet_name} --resource-group {resource_group} --spot-priority-profile {spot_profile} --compute-profile {compute_profile} --location {location} --tags {tags} ', checks=[
self.check('name', '{fleet_name}'),
self.check('resourceGroup', '{resource_group}')
])


self.cmd('az computefleet create --name {fleet_name_reg} --resource-group {resource_group} --spot-priority-profile {spot_profile} --compute-profile {compute_profile} --vm-sizes-profile {vm_sizes_profile} --zones {zones} --location {location} --tags {tagsNew} ', checks=[
self.check('name', '{fleet_name_reg'),
self.check('resourceGroup', '{resource_group}')
])


def test_fleet_update(self, fleet=fleet_name, rg=resource_group):
self.kwargs.update({
'fleet_name': fleet,
Expand All @@ -175,8 +163,7 @@ def test_fleet_show(self, fleet=fleet_name, rg=resource_group):
})

self.cmd('az computefleet show --name {fleet_name} --resource-group {resource_group}', checks=[
self.check('name', '{fleet_name}'),
self.check('resourceGroup', '{resource_group}')
self.check('name', '{fleet_name}')
])

@AllowLargeResponse()
Expand All @@ -187,7 +174,7 @@ def test_fleet_list(self, rg=resource_group):

self.cmd('az computefleet list --resource-group {resource_group}', checks=[
self.check('type(@)', 'array'),
self.check('length(@)', 3)
self.check('length(@)', 1)
])

def test_fleet_scale(self, fleet=fleet_name, rg=resource_group):
Expand Down Expand Up @@ -222,21 +209,13 @@ def test_fleet_delete(self, fleet=fleet_name, rg=resource_group, fleet_reg=fleet
self.cmd('az computefleet delete --name {fleet_name} --resource-group {resource_group}', checks=[
self.is_empty()
])

self.cmd('az computefleet delete --name {fleet_name_reg} --resource-group {resource_group}', checks=[
self.is_empty()
])

self.cmd('az computefleet delete --name {fleet_name_spot} --resource-group {resource_group}', checks=[
self.is_empty()
])

@AllowLargeResponse()
@record_only()
def test_all_fleet_operations(self):
self.test_fleet_create()
self.test_fleet_update()
self.test_fleet_show()
#self.test_fleet_show()
self.test_fleet_scale()
self.test_fleet_restart()
self.test_fleet_delete()
Expand Down