Skip to content

Commit 33831b3

Browse files
author
eliranb
committed
Update error message in LightrunJavaAgent controller tests to reflect new configuration validation for deploymentName and workloadName, enhancing clarity in failure conditions.
1 parent 1af59a3 commit 33831b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/lightrunjavaagent_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ var _ = Describe("LightrunJavaAgent controller", func() {
11271127

11281128
for _, condition := range lrAgentResult.Status.Conditions {
11291129
if condition.Type == reconcileTypeNotProgressing && condition.Status == metav1.ConditionTrue &&
1130-
condition.Reason == "reconcileFailed" && strings.Contains(condition.Message, "DeploymentName and WorkloadName are both set but differ") {
1130+
condition.Reason == "reconcileFailed" && strings.Contains(condition.Message, "invalid configuration: use either deploymentName (legacy) OR workloadName with workloadType, not both") {
11311131
return true
11321132
}
11331133
}

0 commit comments

Comments
 (0)