Fix token startup test

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/7455/head
Brad Davidson 2 years ago committed by Brad Davidson
parent cf9ebb3259
commit c98137ddca

@ -257,7 +257,9 @@ var _ = Describe("Various Startup Configurations", Ordered, func() {
tokenYAML := "token: aaaaaa.bbbbbbbbbbbbbbbb" tokenYAML := "token: aaaaaa.bbbbbbbbbbbbbbbb"
err := StartK3sCluster(append(serverNodeNames, agentNodeNames...), tokenYAML, tokenYAML) err := StartK3sCluster(append(serverNodeNames, agentNodeNames...), tokenYAML, tokenYAML)
Expect(err).To(HaveOccurred()) Expect(err).To(HaveOccurred())
Expect(err).To(ContainSubstring("failed to normalize server token")) logs, err := e2e.GetJournalLogs(serverNodeNames[0])
Expect(err).NotTo(HaveOccurred())
Expect(logs).To(ContainSubstring("failed to normalize server token"))
}) })
It("Kills the cluster", func() { It("Kills the cluster", func() {
err := KillK3sCluster(append(serverNodeNames, agentNodeNames...)) err := KillK3sCluster(append(serverNodeNames, agentNodeNames...))

Loading…
Cancel
Save