diff --git a/api-tests/management/mongodb_test.go b/api-tests/management/mongodb_test.go index 4285db2894..0499f86201 100644 --- a/api-tests/management/mongodb_test.go +++ b/api-tests/management/mongodb_test.go @@ -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{ @@ -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") @@ -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") @@ -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") diff --git a/api-tests/management/mysql_test.go b/api-tests/management/mysql_test.go index 2c9e757e37..f6b5a009f2 100644 --- a/api-tests/management/mysql_test.go +++ b/api-tests/management/mysql_test.go @@ -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{ @@ -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") @@ -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") @@ -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") @@ -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")