#!/usr/share/ucs-test/runner bash
# shellcheck shell=bash
## desc: |
##  Check that HTTPS connection against system FQDN works
## bugs: [44751]
## tags: [basic]
## packages:
##  - wget
## exposure: safe

eval "$(ucr shell ldap/master)"

if ! output=$(wget "https://$ldap_master" -O /dev/null 2>&1)
then
	echo "HTTPS connection to system FQDN '$ldap_master' doesn't work"
	echo "$output"
	echo
	getent hosts "$ldap_master" || true
	exit 1
fi
# vim: set ft=sh :
