Fix the typo in the test

CA cert will never be equal to the serving-kube-apiserver cert so it seems like a copy-paste error.

Signed-off-by: Vladimir Pouzanov <farcaller@gmail.com>
This commit is contained in:
Vladimir Pouzanov 2022-09-28 17:27:23 +01:00 committed by Brad Davidson
parent b411864be5
commit b44d81a6f3

View File

@ -71,7 +71,7 @@ var _ = Describe("certificate rotation", Ordered, func() {
Expect(err).ToNot(HaveOccurred()) Expect(err).ToNot(HaveOccurred())
certHashAfter, err := testutil.RunCommand("md5sum " + tmpdDataDir + "/server/tls/serving-kube-apiserver.crt | cut -f 1 -d' '") certHashAfter, err := testutil.RunCommand("md5sum " + tmpdDataDir + "/server/tls/serving-kube-apiserver.crt | cut -f 1 -d' '")
Expect(err).ToNot(HaveOccurred()) Expect(err).ToNot(HaveOccurred())
Expect(caCertHash).To(Not(Equal(certHashAfter))) Expect(certHash).To(Not(Equal(certHashAfter)))
Expect(caCertHash).To(Equal(caCertHashAfter)) Expect(caCertHash).To(Equal(caCertHashAfter))
}) })
}) })