Skip to content

Commit

Permalink
PMM-12251 Another fix of tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriCtvrtka committed Nov 28, 2023
1 parent 78783fc commit cb9d359
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions api-tests/management/mongodb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ func TestAddMongoDB(t *testing.T) {
NodeName: nodeName,
NodeType: pointer.ToString(node.RegisterNodeBodyNodeTypeGENERICNODE),
})
defer pmmapitests.RemoveNodes(t, nodeID)
defer pmmapitests.UnregisterNodes(t, nodeID)
defer RemovePMMAgentWithSubAgents(t, pmmAgentID)

params := &mongodb.AddMongoDBParams{
Expand All @@ -471,7 +471,7 @@ func TestAddMongoDB(t *testing.T) {
NodeName: nodeName,
NodeType: pointer.ToString(node.RegisterNodeBodyNodeTypeGENERICNODE),
})
defer pmmapitests.RemoveNodes(t, nodeID)
defer pmmapitests.UnregisterNodes(t, nodeID)
defer RemovePMMAgentWithSubAgents(t, pmmAgentID)

serviceName := pmmapitests.TestString(t, "service-name")
Expand All @@ -494,7 +494,7 @@ func TestAddMongoDB(t *testing.T) {
NodeName: nodeName,
NodeType: pointer.ToString(node.RegisterNodeBodyNodeTypeGENERICNODE),
})
defer pmmapitests.RemoveNodes(t, nodeID)
defer pmmapitests.UnregisterNodes(t, nodeID)
defer RemovePMMAgentWithSubAgents(t, pmmAgentID)

serviceName := pmmapitests.TestString(t, "service-name")
Expand All @@ -518,7 +518,7 @@ func TestAddMongoDB(t *testing.T) {
NodeName: nodeName,
NodeType: pointer.ToString(node.RegisterNodeBodyNodeTypeGENERICNODE),
})
defer pmmapitests.RemoveNodes(t, nodeID)
defer pmmapitests.UnregisterNodes(t, nodeID)
defer RemovePMMAgentWithSubAgents(t, pmmAgentID)

serviceName := pmmapitests.TestString(t, "service-name")
Expand Down
10 changes: 5 additions & 5 deletions api-tests/management/mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ func TestAddMySQL(t *testing.T) {
NodeName: nodeName,
NodeType: pointer.ToString(node.RegisterNodeBodyNodeTypeGENERICNODE),
})
defer pmmapitests.RemoveNodes(t, nodeID)
defer pmmapitests.UnregisterNodes(t, nodeID)
defer RemovePMMAgentWithSubAgents(t, pmmAgentID)

params := &mysql.AddMySQLParams{
Expand All @@ -498,7 +498,7 @@ func TestAddMySQL(t *testing.T) {
NodeName: nodeName,
NodeType: pointer.ToString(node.RegisterNodeBodyNodeTypeGENERICNODE),
})
defer pmmapitests.RemoveNodes(t, nodeID)
defer pmmapitests.UnregisterNodes(t, nodeID)
defer RemovePMMAgentWithSubAgents(t, pmmAgentID)

serviceName := pmmapitests.TestString(t, "service-name")
Expand All @@ -523,7 +523,7 @@ func TestAddMySQL(t *testing.T) {
NodeName: nodeName,
NodeType: pointer.ToString(node.RegisterNodeBodyNodeTypeGENERICNODE),
})
defer pmmapitests.RemoveNodes(t, nodeID)
defer pmmapitests.UnregisterNodes(t, nodeID)
defer RemovePMMAgentWithSubAgents(t, pmmAgentID)

serviceName := pmmapitests.TestString(t, "service-name")
Expand Down Expand Up @@ -577,7 +577,7 @@ func TestAddMySQL(t *testing.T) {
NodeName: nodeName,
NodeType: pointer.ToString(node.RegisterNodeBodyNodeTypeGENERICNODE),
})
defer pmmapitests.RemoveNodes(t, nodeID)
defer pmmapitests.UnregisterNodes(t, nodeID)
defer RemovePMMAgentWithSubAgents(t, pmmAgentID)

serviceName := pmmapitests.TestString(t, "service-name")
Expand All @@ -601,7 +601,7 @@ func TestAddMySQL(t *testing.T) {
NodeName: nodeName,
NodeType: pointer.ToString(node.RegisterNodeBodyNodeTypeGENERICNODE),
})
defer pmmapitests.RemoveNodes(t, nodeID)
defer pmmapitests.UnregisterNodes(t, nodeID)
defer RemovePMMAgentWithSubAgents(t, pmmAgentID)

serviceName := pmmapitests.TestString(t, "service-name")
Expand Down

0 comments on commit cb9d359

Please sign in to comment.