Skip to content

Commit

Permalink
PMM-12712 Small renaming.
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriCtvrtka committed Jan 10, 2024
1 parent 5885134 commit 8e05324
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions managed/services/agents/mongodb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,14 @@ func TestMongodbExporterConfig226(t *testing.T) {
}

func Test241PatchVersion(t *testing.T) {
versions := map[string]bool{
shardsCompatibility := map[string]bool{
"2.43.0": true,
"2.42.2": true,
"2.41.1": true,
"2.41.1-HEAD-xyz": true,
"2.41.0": false,
}
for pmmVersion, shardsCompatibility := range versions {
for pmmVersion, shardsSupported := range shardsCompatibility {
pmmAgentVersion := version.MustParse(pmmVersion)
node := &models.Node{
Address: "1.2.3.4",
Expand All @@ -260,7 +260,7 @@ func Test241PatchVersion(t *testing.T) {
}
actual, err := mongodbExporterConfig(node, mongodb, exporter, exposeSecrets, pmmAgentVersion)
require.NoError(t, err)
if shardsCompatibility {
if shardsSupported {
require.Contains(t, actual.Args, "--collector.shards")
} else {
require.NotContains(t, actual.Args, "--collector.shards")
Expand Down

0 comments on commit 8e05324

Please sign in to comment.