Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add agent check-in interval to agent install tests
Browse files Browse the repository at this point in the history
Omitting the agent check-in interval when patching the
`fleet-controller` config map would now lead to errors when setting up
agents with a check-in interval bearing the default value for a
duration, ie 0s.
That interval is now set with a hard-coded value, which is of no
importance for such tests, for the sake of not being zero.
weyfonk committed Oct 22, 2024
1 parent 60d35cf commit 8f07ba4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/multi-cluster/installation/agent_test.go
Original file line number Diff line number Diff line change
@@ -27,8 +27,9 @@ var _ = Describe("Fleet installation with TLS agent modes", func() {
"cattle-fleet-system",
"--type=merge",
"-p",
// Agent check-in interval cannot be 0. Any other value will do here.
fmt.Sprintf(
`{"data":{"config":"{\"apiServerURL\": \"https://google.com\", \"apiServerCA\": \"\", \"agentTLSMode\": \"%s\"}"}}`,
`{"data":{"config":"{\"apiServerURL\": \"https://google.com\", \"apiServerCA\": \"\", \"agentTLSMode\": \"%s\", \"agentCheckinInterval\": \"1m\"}"}}`,
agentMode,
),
)

0 comments on commit 8f07ba4

Please sign in to comment.