# Functions
AssertError checks that the provided error matches the expected output.
AssertFileExists is a utility function for kubeadm testing that asserts if the given folder contains the given files.
AssertFilesCount is a utility function for kubeadm testing that asserts if the given folder contains count files.
GetDefaultInternalConfig returns a defaulted kubeadmapi.InitConfiguration.
SetupEmptyFiles is a utility function for kubeadm testing that creates one or more empty files (touch).
SetupInitConfigurationFile is a utility function for kubeadm testing that writes a InitConfiguration file into /config subfolder of a given temporary directory.
SetupPkiDirWithCertificateAuthority is a utility function for kubeadm testing that creates a CertificateAuthority cert/key pair into /pki subfolder of a given temporary directory.
SetupTempDir is a utility function for kubeadm testing, that creates a temporary directory NB.