Skip to content

Commit

Permalink
fix agent version compatibility check
Browse files Browse the repository at this point in the history
  • Loading branch information
omessir committed Nov 2, 2023
1 parent 93367f2 commit b7b3779
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cbcontainers/remote_configuration/validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
},
Expand All @@ -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,
},
},
}
Expand Down Expand Up @@ -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,
},
},
}
Expand Down

0 comments on commit b7b3779

Please sign in to comment.