From b7b3779603543fde0fdae2e18fec2425de81948f Mon Sep 17 00:00:00 2001 From: omessir Date: Thu, 2 Nov 2023 10:32:02 -0400 Subject: [PATCH] fix agent version compatibility check --- cbcontainers/remote_configuration/validation_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cbcontainers/remote_configuration/validation_test.go b/cbcontainers/remote_configuration/validation_test.go index 68141877..88e1402d 100644 --- a/cbcontainers/remote_configuration/validation_test.go +++ b/cbcontainers/remote_configuration/validation_test.go @@ -58,7 +58,7 @@ func TestValidateFailsIfSensorAndOperatorAreNotCompatible(t *testing.T) { name: "sensor version is too high", versionToApply: "5.0.0", operatorCompatibility: models.OperatorCompatibility{ - MinAgent: models.AgentMinVersionNone, + MinAgent: models.MinVersionNone, MaxAgent: "4.0.0", }, }, @@ -67,7 +67,7 @@ func TestValidateFailsIfSensorAndOperatorAreNotCompatible(t *testing.T) { versionToApply: "0.9", operatorCompatibility: models.OperatorCompatibility{ MinAgent: "1.0.0", - MaxAgent: models.AgentMaxVersionLatest, + MaxAgent: models.MaxVersionLatest, }, }, } @@ -121,8 +121,8 @@ func TestValidateSucceedsIfSensorAndOperatorAreCompatible(t *testing.T) { name: "operator supports 'infinite' versions", versionToApply: "5.0.0", operatorCompatibility: models.OperatorCompatibility{ - MinAgent: models.AgentMinVersionNone, - MaxAgent: models.AgentMaxVersionLatest, + MinAgent: models.MinVersionNone, + MaxAgent: models.MaxVersionLatest, }, }, }