diff --git a/vsts/dps-e2e.yaml b/vsts/dps-e2e.yaml index bed45ee66..bc1e525fb 100644 --- a/vsts/dps-e2e.yaml +++ b/vsts/dps-e2e.yaml @@ -227,10 +227,10 @@ stages: exit 1 fi - export IOTHUB_CONNECTION_STRING=$(az iot hub connection-string show -g $AZURE_RESOURCE_GROUP --hub-name $AZURE_IOTHUB_NAME --pn iothubowner --query "connectionString" --output tsv) + export IOTHUB_CONNECTION_STRING=$(az iot hub connection-string show -g $AZURE_RESOURCE_GROUP --hub-name $AZURE_IOTHUB_NAME --pn iothubowner --hostname-type classic --query "connectionString" --output tsv) export EVENTHUB_CONNECTION_STRING=$(az iot hub connection-string show -g $AZURE_RESOURCE_GROUP --hub-name $AZURE_IOTHUB_NAME --eh --query "connectionString" --output tsv) - time az iot dps linked-hub create -g $AZURE_RESOURCE_GROUP --dps-name $AZURE_DPS_NAME --connection-string "$IOTHUB_CONNECTION_STRING" + time az iot dps linked-hub create -g $AZURE_RESOURCE_GROUP --dps-name $AZURE_DPS_NAME --connection-string "$IOTHUB_CONNECTION_STRING" --hostname-type classic export DPS_CONNECTION_STRING=$(az iot dps connection-string show -g $AZURE_RESOURCE_GROUP --dps-name $AZURE_DPS_NAME --policy-name provisioningserviceowner --query "connectionString" --output tsv) export DPS_ID_SCOPE=$(az iot dps show --name $AZURE_DPS_NAME -g $AZURE_RESOURCE_GROUP --query properties.idScope --output tsv) diff --git a/vsts/python-e2e.yaml b/vsts/python-e2e.yaml index ad60f0667..12ec7bbdf 100644 --- a/vsts/python-e2e.yaml +++ b/vsts/python-e2e.yaml @@ -52,7 +52,7 @@ stages: time az iot hub create -g $AZURE_RESOURCE_GROUP -n $AZURE_IOTHUB_NAME --dla false --mintls 1.2 --partition-count 4 --sku S1 - export IOTHUB_CONNECTION_STRING=$(az iot hub connection-string show -g $AZURE_RESOURCE_GROUP --hub-name $AZURE_IOTHUB_NAME --pn iothubowner --query "connectionString" --output tsv) + export IOTHUB_CONNECTION_STRING=$(az iot hub connection-string show -g $AZURE_RESOURCE_GROUP --hub-name $AZURE_IOTHUB_NAME --pn iothubowner --hostname-type classic --query "connectionString" --output tsv) export EVENTHUB_CONNECTION_STRING=$(az iot hub connection-string show -g $AZURE_RESOURCE_GROUP --hub-name $AZURE_IOTHUB_NAME --eh --query "connectionString" --output tsv) # Limit Azure API concurrency while creating independent groups faster. diff --git a/vsts/python-nightly.yaml b/vsts/python-nightly.yaml index 662a4fba6..9c6e63754 100644 --- a/vsts/python-nightly.yaml +++ b/vsts/python-nightly.yaml @@ -35,7 +35,7 @@ stages: time az iot hub create -g $AZURE_RESOURCE_GROUP -n $AZURE_IOTHUB_NAME --dla false --mintls 1.2 --partition-count 4 --sku S1 - export IOTHUB_CONNECTION_STRING=$(az iot hub connection-string show -g $AZURE_RESOURCE_GROUP --hub-name $AZURE_IOTHUB_NAME --pn iothubowner --query "connectionString" --output tsv) + export IOTHUB_CONNECTION_STRING=$(az iot hub connection-string show -g $AZURE_RESOURCE_GROUP --hub-name $AZURE_IOTHUB_NAME --pn iothubowner --hostname-type classic --query "connectionString" --output tsv) export EVENTHUB_CONNECTION_STRING=$(az iot hub connection-string show -g $AZURE_RESOURCE_GROUP --hub-name $AZURE_IOTHUB_NAME --eh --query "connectionString" --output tsv) # Limit Azure API concurrency while creating independent groups faster. @@ -191,8 +191,10 @@ stages: - script: | cd $(Build.SourcesDirectory)/tests/e2e/iothub_e2e echo "Using consumer group: ${IOTHUB_E2E_EVENTHUB_CONSUMER_GROUP}" - # "not x" means "include all tests that don't have the tag named 'x'", which is everything. - uv run --no-sync pytest --transport=$(transport) --junitxml=junit/TEST-python-e2e.xml -o junit_suite_name="$(Agent.JobName)" -m "not x" + # The nightly runs every test, including the stress tests that pytest.ini deselects by default + # (addopts -m "not stress"); a command-line -m replaces that default. Use only registered + # markers: pytest 9.2+ rejects unknown marker names in -m with --strict-markers. + uv run --no-sync pytest --transport=$(transport) --junitxml=junit/TEST-python-e2e.xml -o junit_suite_name="$(Agent.JobName)" -m "stress or not stress" displayName: 'E2E Device Client MQTT Connection String' env: IOTHUB_E2E_IOTHUB_CONNECTION_STRING: $(IOTHUB_CONNECTION_STRING)