Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate resources for Central tests #498

Merged
merged 14 commits into from
Mar 11, 2022
10 changes: 5 additions & 5 deletions azext_iot/central/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def load_central_arguments(self, _):
context.argument(
"central_dns_suffix",
options_list=["--central-dns-suffix", "--central-api-uri"],
help="The IoT Central DNS suffix associated with your application. Default value is: azureiotcentral.com",
help="The IoT Central DNS suffix associated with your application.",
)
context.argument(
"device_id",
Expand Down Expand Up @@ -324,7 +324,7 @@ def load_central_arguments(self, _):
"sasTtl",
options_list=["--sas-ttl"],
help="The amount of time the device’s request to upload a file is valid before it expires."
" ISO 8601 duration standard. Default 1h.",
" ISO 8601 duration standard. Default: 1h.",
)

with self.argument_context("iot central file-upload-config update") as context:
Expand All @@ -347,7 +347,7 @@ def load_central_arguments(self, _):
"sasTtl",
options_list=["--sas-ttl"],
help="The amount of time the device’s request to upload a file is valid before it expires."
" ISO 8601 duration standard. Default 1h.",
" ISO 8601 duration standard. Default: 1h.",
)

with self.argument_context("iot central organization") as context:
Expand Down Expand Up @@ -433,7 +433,7 @@ def load_central_arguments(self, _):
"batch_type",
options_list=["--batch-type", "--bt"],
default=False,
help="Specify if batching is done on a number of devices or a percentage of the total. Default: False",
help="Specify if batching is done on a number of devices or a percentage of the total.",
)
context.argument(
"batch",
Expand Down Expand Up @@ -511,7 +511,7 @@ def load_central_arguments(self, _):
"filter",
options_list=["--filter", "-f"],
default=None,
help="IoT Central Query Language based filter, more details from: ",
help="IoT Central Query Language based filter, more details from: aka.ms/iotcquery",
)
context.argument(
"source",
Expand Down
6 changes: 3 additions & 3 deletions azext_iot/monitor/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ def start_multiple_monitors(
# TODO: remove when deprecating
# pylint: disable=no-member
tasks = (
asyncio.Task.all_tasks()
if sys.version_info < (3, 9)
else asyncio.all_tasks()
asyncio.Task.all_tasks(loop)
if sys.version_info < (3, 7)
else asyncio.all_tasks(loop)
)
for t in tasks: # pylint: disable=no-member
t.cancel()
Expand Down
Loading