Skip to content

arcctl: Consistent with other ARC services handling of hostname in TestCA

Code logic fix for hostname inconsistency in CI builds, etc discovered by @maikenp. In some cases (e.g. CI) name services provided hostname is different from 'hostname -f'. TestCA uses hostname for CA and host certificates naming and this should be consistent with names expected by other services.

This changeset introduce the logic that should be consistent with other services:

  • hostname comes from arc.conf (if available)
  • fallback to 'hostname -f' (the same as arc.conf defaults)
  • fallback to name services defined name

Merge request reports