Fix
I tried adding tests but:
Error: cannot receive/parse server data:Error checking computer in AD, object not found, not in authorized OU or invalid user trying to join domain. host=default-runner-7955b665f4-79l5n IP=188.185.101.165
For this to run it needs to be tested on a real machine we own.