Skip to content

Commit

Permalink
passing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vilit1 committed Jun 6, 2024
1 parent c83344d commit 75396bb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 9 additions & 1 deletion azext_iot/tests/iothub/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def setup_hub_controlplane_states(
provisioned_storage = provisioned_iot_hubs_with_storage_user_module[0]["storage"]
storage_cstring = provisioned_storage["connectionString"]
storage_container = provisioned_storage["container"]["name"]
storage_endpoint_uri = provisioned_storage["storage"]["primaryEndpoints"]["blob"]

cosmosdb_container_name = provisioned_cosmos_db_module["container"]["name"]
cosmosdb_database_name = provisioned_cosmos_db_module["database"]["name"]
Expand Down Expand Up @@ -176,7 +177,14 @@ def setup_hub_controlplane_states(

cli.invoke(
f"iot hub message-endpoint create storage-container --en storagecontainer-key -g {hub_rg} -n {hub_name} -c "
f"{storage_cstring} --container {storage_container} -b 350 -w 250 --encoding json")
f"{storage_cstring} --container {storage_container} -b 350 -w 250 --encoding json"
)

cli.invoke(
f"iot hub message-endpoint create storage-container --en storagecontainer-{suffix} -g {hub_rg} -n {hub_name} "
f"--identity {user_identity_parameter} --endpoint-uri {storage_endpoint_uri} --container {storage_container} "
"-b 350 -w 250 --encoding json"
)

cli.invoke(
f"iot hub message-endpoint create cosmosdb-container --en cosmosdb-key -g {hub_rg} -n {hub_name} --container "
Expand Down
3 changes: 3 additions & 0 deletions azext_iot/tests/iothub/state/test_hub_state_int.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ def delete_system_endpoints(hub_name, rg):
cli.invoke(
f"iot hub routing-endpoint delete --hub-name {hub_name} -g {rg} -n queue-systemid"
)
cli.invoke(
f"iot hub routing-endpoint delete --hub-name {hub_name} -g {rg} -n storage-systemid"
)


@pytest.mark.hub_infrastructure(count=2, sys_identity=True, user_identity=True, storage=True, desired_tags="abc=def")
Expand Down

0 comments on commit 75396bb

Please sign in to comment.