zebrunner / stf

Mirror for git@github.com:openstf/stf.git repository
Other
30 stars 18 forks source link

STF do not return remoteConnectUrl #975

Open akamarouski opened 3 months ago

akamarouski commented 3 months ago

We request remoteConnectUrl from STF with another information about device for mcloud-grid but from time to time this information missed from STF.

This issue happens randomly.

vdelendik commented 3 months ago

reoteConnectUrl is inited only after start using device because stf start adb proxying and can utilize range of ports as I remember.

ignacionar commented 3 months ago

Yes, the value needs to be generated first with these conditions:

The remoteConnectUrl value can be generated with this endpoint, but needs to follow the same conditions:

curl -X POST -H "Authorization: Bearer <token>" -H 'Content-Type: application/json' <stf-url>/api/v1/users/<email>/devices/<udid>/remoteConnect

akamarouski commented 3 months ago

All this conditions done before we trying to get remoteConnectUrl in mcloud-grid.