Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -631,18 +631,16 @@ var _ = Describe(

By("Validate the proper NTP servers are listed in the config", func() {
execCmd := "cat /etc/chrony.conf"
cmdOutput, err := cluster.ExecCmdWithStdoutWithRetries(APIClient, 5, 30*time.Second, execCmd)
cmdOutput, err := cluster.ExecCommandOnSNOWithRetries(APIClient, 6, 50*time.Second, execCmd)
Expect(err).ToNot(HaveOccurred(), "could not execute command: %s", err)

for _, stdout := range cmdOutput {
for _, ntpSource := range strings.Split(MGMTConfig.AdditionalNTPSources, ",") {

Expect(strings.ReplaceAll(stdout, "\n", "")).To(ContainSubstring("server %s",
ntpSource),
"error: the expected NTP source %s wasn't found", ntpSource)
}
for _, ntpSource := range strings.Split(MGMTConfig.AdditionalNTPSources, ",") {

Expect(strings.ReplaceAll(cmdOutput, "\n", "")).To(ContainSubstring("server %s",
ntpSource),
"error: the expected NTP source %s wasn't found", ntpSource)
}

})
})

Expand Down