Repository navigation
ci: run horton-e2e against a hub with local authentication disabled - #1277
Conversation
Pin the e2e-fx framework to 72c8b9527c9fd7459e4cf8901ad68f7e1e7df3a2 instead of master, for both the template repository resource and the framework clone, and create the hub with disable_local_auth: true. The service side of the tests then uses Microsoft Entra ID, and telemetry is read from an Event Hub the hub routes it to, so no IoT Hub shared access key is used.
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the Horton end-to-end CI authentication update.
No open issues 🎉
What changed in this PR
Updates Horton end-to-end CI to test against an IoT Hub with local authentication disabled, while leaving device authentication unchanged.
Changes:
- Pins both framework references to the commit supporting
disable_local_auth. - Enables Entra-only service authentication and routed Event Hub telemetry through the framework template.
| File | Description |
|---|---|
vsts/horton-e2e.yaml |
Pins the framework revision and enables disable_local_auth during resource creation. |
Review effort: Balanced
Same commit as before (72c8b95).
| type: github | ||
| name: Azure/iot-sdks-e2e-fx | ||
| ref: refs/heads/master | ||
| ref: c8c4e99e8dd99b8fe47896f833f49d1fee7747a8 # AzIotSdkTest 1.11.1 |
There was a problem hiding this comment.
It is meant to stay pinned, but not to this commit forever: the SHA gets bumped in a PR whenever a newer e2e-fx is needed, like any other dependency version.
Why pin at all: with master, every e2e-fx merge changed what this pipeline ran without a change here. That includes the hub setup, which now differs between the keyed and Entra-only paths.
Why a SHA instead of a tag: a tag can be moved or deleted after the fact, and a full commit SHA cannot. Pinning to the v1.11.x tag would work as well if you prefer readability over immutability; let me know and I'll switch it.
vsts/horton-e2e.yamlnow creates its per-run IoT Hub with local authentication disabled (Microsoft Entra ID only).c8c4e99e8dd99b8fe47896f833f49d1fee7747a8(AzIotSdkTest 1.11.1) instead ofmaster, in both thee2e_fxrepository resource andHorton.FrameworkRef. A full commit SHA is immutable, unlike a tag. That commit has thedisable_local_authparameter and retries throttled storage setup calls.disable_local_auth: truetosteps-create-azure-resources.yaml. The framework then:iot hub sdk service connection;Device authentication is unchanged. Test jobs take 12-18 minutes, which is within the lifetime of the access tokens.
Also sets a 10 s HTTP timeout on the provisioning e2e service client (
tests/e2e/provisioning_e2e/service_helper.py) so a hung response is retried by msrest instead of hitting the 60 s pytest timeout (seen in dps-e2e on this PR).