Skip to content

Commit

Permalink
Merge dev changes (Azure#395)
Browse files Browse the repository at this point in the history
* Introducing IoT Hub dataplane RBAC support + various improvements (Azure#341)

* Introducing IoT Hub dataplane RBAC support.
* IoT Hub rbac support for most commands.
* Removed deprecated nested IoT edge artifacts.
* Removed deprecated show-connection-string artifacts.
* --auth-type supports configurable defaults.
* Improved IoT Hub test infrastructure.
* Significant refactor of IoT Hub tests.
* Various additional improvements.
* All warnings from tests are now shown.
* Uamqp integration with jwt auth.
* Modify HISTORY.rst

* Iotc command versioning (Azure#340)

* add support for v1 and preview routes
* update history file
* address review comments
* lint fixes

* Add warning for qos deprecation and update contributing guide (Azure#342)

* Add warning for qos deprecation and update contributing guide
* removing version from deprecate_info
* Integration tests command update in Contributing guide

* Iotc command ga (Azure#348)

* remove preview tags
* history updates

* Use enum value instead of literal str. (Azure#349)

* Managed identity support for device-identity import and export  (Azure#344)

* Fix for new identity parameter format
* test updates
* better differentiation of storage vars
* updated to remove *all* user-identitites after storage tests until CLI core is patched

* Update azext_metadata.json (Azure#351)

* Increment version to v0.10.13

* Update README.md

* Update HISTORY.rst

* Add dataplane reset (Azure#352)

* pr comments
* update dt reset to only support deleting both
* Remove unused import

* C2D messaging improvements. (Azure#354)

* Remove hiding of warnings from sample pytest.ini

* Digital Twin wait commands (Azure#345)

* update to use wait
* fix error status code
* int testing
* update help

* Add Identity Storage Account ID param to sentinel values (Azure#355)

* Module identity renew key (Azure#356)

* initial changes
* update params, help
* add missing module to test
* Word change

* Update README.md

* Pipeline updates (Azure#359)

* Pipeline updates

Added nightly build pipeline

Added template to run tests against minimum supported AZ CLI

* Pipeline parameter refactoring

* Moved deprecated ubuntu images to `ubuntu-latest`

Co-authored-by: Paymaun <[email protected]>

* Check for conditionals before running test jobs (Azure#363)

* Update d2c and simulate commands to return errors for non SaS devices - update help to reflect the change (Azure#346)

* Add warning for qos deprecation and update contributing guide

* removing version from deprecate_info

* Integration tests command update in Contributing guide

* Update help message for d2c command and mqtt simulation to indicate only sas auth is supported

* Checks and error messages when non SAS devices are used for MQTT operations

* Indentation update in help file

* fix styling

* Adding enum and updating test

* Addressed comments

* Update simulate message (Azure#371)

IoTHub is not a MQTT Broker

* Make gitHubConnection a variable. (Azure#373)

* Iotc updates (Azure#368)

* initial commit

* add integration tests.

* history file update. lint fixes

* history updates

* Update HISTORY.rst

* address review comments

Co-authored-by: Ryan K <[email protected]>

* Edge deployment validation changes. (Azure#382)

* Only system module content is validated by default.
* The target schema used is with respect to "schemaVersion" in
  "properties.desired".
* Any schema defintion processing issues will skip validation.

* Couple linter fixes. (Azure#384)

* Extend generate token (Azure#375)

* generate sas token with all parsers
* style fixes
* update param, parser enum
* updates with respect to pr
* updated error message

* Roll pipeline ubuntu versions back to Ubuntu-16.04 (Azure#386)

* Support for upcoming changes in Track 2 SDKs (Azure#383)

* Initial DPS track 2 breaking change fixes
* Test update to patch azure cli core Profile.get_subscription_id
* revert change of unit test subscription id

* Remove six (Azure#387)

Co-authored-by: Paymaun <[email protected]>

* Separate IoT Hub per test suite to enable parallel test execution

* Addressed comments

* minor update

* test environment pipeline updates

* Update help for --login and --hub-name (Azure#389)

* Update mock import. (Azure#391)

* Refactoring and addressing comments

* Update setup.py

* fstrings fix

* Formatting updates to tests

* Create one hub per test suite and provide Data contributor role to user

* Account refresh and test class parallel run

* remove commented parts of test

* lint updates

* Merge with dev

* Azure devops merge fix

Co-authored-by: Paymaun <[email protected]>
Co-authored-by: valluriraj <[email protected]>
Co-authored-by: Ryan K <[email protected]>
Co-authored-by: Paymaun Heidari <[email protected]>
Co-authored-by: vilit1 <[email protected]>
Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
  • Loading branch information
7 people committed Jul 28, 2021
1 parent 152764f commit 899096a
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 1 deletion.
8 changes: 8 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
Release History
===============

0.10.15
+++++++++++++++

**IoT Central updates**

* Adds support for listing device groups
* Adds support for listing roles and get role by id

0.10.14
+++++++++++++++

Expand Down
11 changes: 11 additions & 0 deletions azext_iot/central/command_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,17 @@ def load_central_commands(self, _):
cmd_group.command("create", "create_device_template")
cmd_group.command("delete", "delete_device_template")

with self.command_group(
"iot central device-group", command_type=central_device_groups_ops, is_preview=True
) as cmd_group:
cmd_group.command("list", "list_device_groups")

with self.command_group(
"iot central role", command_type=central_roles_ops, is_preview=True
) as cmd_group:
cmd_group.show_command("show", "get_role")
cmd_group.command("list", "list_roles")

with self.command_group(
"iot central device twin", command_type=central_device_twin_ops,
) as cmd_group:
Expand Down
4 changes: 4 additions & 0 deletions azext_iot/central/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@
from azext_iot.central.models.devicetwin import DeviceTwin
from azext_iot.central.models.templatepreview import TemplatePreview
from azext_iot.central.models.templatev1 import TemplateV1
from azext_iot.central.models.deviceGroupPreview import DeviceGroupPreview
from azext_iot.central.models.rolePreview import RolePreview


__all__ = [
"DevicePreview",
"DeviceGroupPreview",
"DeviceV1",
"DeviceTwin",
"TemplatePreview",
"TemplateV1",
"RolePreview"
]
7 changes: 7 additions & 0 deletions azext_iot/central/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,10 @@ def load_central_arguments(self, _):
options_list=["--module-id", "-m"],
help="Provide IoT Edge Module ID if the device type is IoT Edge.",
)

with self.argument_context("iot central role") as context:
context.argument(
"role_id",
options_list=["--role-id", "-r"],
help="Provide a unique identifier for the role"
)
9 changes: 9 additions & 0 deletions azext_iot/central/providers/preview/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,19 @@
from azext_iot.central.providers.preview.api_token_provider_preview import (
CentralApiTokenProviderPreview,
)
from azext_iot.central.providers.preview.device_group_provider_preview import (
CentralDeviceGroupProviderPreview
)
from azext_iot.central.providers.preview.role_provider_preview import (
CentralRoleProviderPreview
)

__all__ = [
"CentralDeviceProviderPreview",
"CentralDeviceTemplateProviderPreview",
"CentralUserProviderPreview",
"CentralApiTokenProviderPreview",
"CentralDeviceGroupProviderPreview",
"CentralRoleProviderPreview"

]
2 changes: 1 addition & 1 deletion azext_iot/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import os

VERSION = "0.10.14"
VERSION = "0.10.15"
EXTENSION_NAME = "azure-iot"
EXTENSION_ROOT = os.path.dirname(os.path.abspath(__file__))
EXTENSION_CONFIG_ROOT_KEY = "iotext"
Expand Down
4 changes: 4 additions & 0 deletions azext_iot/tests/central/test_iot_central_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
CentralDeviceProviderV1,
CentralDeviceTemplateProviderV1,
)
from azext_iot.central.providers.preview import (
CentralDeviceGroupProviderPreview,
CentralRoleProviderPreview
)
from azext_iot.central.models.devicetwin import DeviceTwin
from azext_iot.central import models as central_models
from azext_iot.monitor.property import PropertyMonitor
Expand Down

0 comments on commit 899096a

Please sign in to comment.