- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for AssertFilesCount (0.21 sec)
-
cmd/kubeadm/test/util.go
t.Fatalf("failure while saving CA certificate and key: %v", err) } return certDir } // AssertFilesCount is a utility function for kubeadm testing that asserts if the given folder contains // count files. func AssertFilesCount(t *testing.T, dirName string, count int) { files, err := os.ReadDir(dirName) if err != nil { t.Fatalf("Couldn't read files from tmpdir: %s", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 01 05:59:41 UTC 2022 - 3.8K bytes - Viewed (0) -
cmd/kubeadm/app/phases/etcd/local_test.go
if !test.expectedError { if err != nil { t.Errorf("CreateLocalEtcdStaticPodManifestFile failed when not expected: %v", err) } // Assert expected files are there testutil.AssertFilesCount(t, manifestPath, 1) testutil.AssertFileExists(t, manifestPath, kubeadmconstants.Etcd+".yaml") manifestBytes, err := os.ReadFile(path.Join(manifestPath, kubeadmconstants.Etcd+".yaml")) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 14:07:27 UTC 2024 - 15.2K bytes - Viewed (0) -
cmd/kubeadm/app/phases/controlplane/manifests_test.go
if err != nil { t.Errorf("Error executing createStaticPodFunction: %v", err) return } // Assert expected files are there testutil.AssertFilesCount(t, manifestPath, len(test.components)) for _, fileName := range test.components { testutil.AssertFileExists(t, manifestPath, fileName+".yaml") } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Mar 03 14:43:47 UTC 2024 - 48.5K bytes - Viewed (0)