From 9f91fcb073b766c2a9b47c7f45c41d9e7c7f645a Mon Sep 17 00:00:00 2001 From: Paymaun Heidari Date: Mon, 12 Aug 2019 17:28:44 -0700 Subject: [PATCH] Apply tweaks for 0.8.0 * +is_preview for relevant commands * Py2.7 support for test_iot_pnp_int * +HISTORY.rst content --- HISTORY.rst | 4 ++++ azext_iot/commands.py | 8 ++++---- azext_iot/tests/test_iot_pnp_int.py | 1 + 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 4c4837c48..fb41ece50 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,6 +3,10 @@ Release History =============== +0.8.0 ++++++++++++++++ +* Added Azure IoT Plug & Play public preview functionality + 0.7.1 +++++++++++++++ * Added support for distribution tracing commands. diff --git a/azext_iot/commands.py b/azext_iot/commands.py index 0ab883b9b..2b68beaa1 100644 --- a/azext_iot/commands.py +++ b/azext_iot/commands.py @@ -74,7 +74,7 @@ def load_command_table(self, _): cmd_group.generic_update_command('update', getter_name='iot_hub_configuration_show', setter_name='iot_hub_configuration_update') - with self.command_group('iot hub distributed-tracing', command_type=iothub_ops) as cmd_group: + with self.command_group('iot hub distributed-tracing', command_type=iothub_ops, is_preview=True) as cmd_group: cmd_group.command('show', 'iot_hub_distributed_tracing_show') cmd_group.command('update', 'iot_hub_distributed_tracing_update') @@ -121,7 +121,7 @@ def load_command_table(self, _): cmd_group.command('show', 'iot_dps_registration_get') cmd_group.command('delete', 'iot_dps_registration_delete') - with self.command_group('iot dt', command_type=iotdigitaltwin_ops) as cmd_group: + with self.command_group('iot dt', command_type=iotdigitaltwin_ops, is_preview=True) as cmd_group: cmd_group.command('list-interfaces', 'iot_digitaltwin_interface_list') cmd_group.command('list-properties', 'iot_digitaltwin_properties_list') cmd_group.command('update-property', 'iot_digitaltwin_property_update') @@ -129,7 +129,7 @@ def load_command_table(self, _): cmd_group.command('monitor-events', 'iot_digitaltwin_monitor_events') cmd_group.command('list-commands', 'iot_digitaltwin_command_list') - with self.command_group('iot pnp interface', command_type=iotpnp_ops) as cmd_group: + with self.command_group('iot pnp interface', command_type=iotpnp_ops, is_preview=True) as cmd_group: cmd_group.command('show', 'iot_pnp_interface_show') cmd_group.command('list', 'iot_pnp_interface_list') cmd_group.command('create', 'iot_pnp_interface_create') @@ -137,7 +137,7 @@ def load_command_table(self, _): cmd_group.command('delete', 'iot_pnp_interface_delete') cmd_group.command('update', 'iot_pnp_interface_update') - with self.command_group('iot pnp capability-model', command_type=iotpnp_ops) as cmd_group: + with self.command_group('iot pnp capability-model', command_type=iotpnp_ops, is_preview=True) as cmd_group: cmd_group.command('show', 'iot_pnp_model_show') cmd_group.command('list', 'iot_pnp_model_list') cmd_group.command('create', 'iot_pnp_model_create') diff --git a/azext_iot/tests/test_iot_pnp_int.py b/azext_iot/tests/test_iot_pnp_int.py index 6ab827e2c..8ec2f6154 100644 --- a/azext_iot/tests/test_iot_pnp_int.py +++ b/azext_iot/tests/test_iot_pnp_int.py @@ -9,6 +9,7 @@ import os import sys +from io import open from os.path import exists from uuid import uuid4 from azure.cli.testsdk import LiveScenarioTest