diff --git a/api-tests/management/external_test.go b/api-tests/management/external_test.go index a7b4585aff..a2e66e78cb 100644 --- a/api-tests/management/external_test.go +++ b/api-tests/management/external_test.go @@ -299,7 +299,7 @@ func TestAddExternal(t *testing.T) { nodeName := pmmapitests.TestString(t, "node-name") genericNode := pmmapitests.AddGenericNode(t, nodeName) nodeID := genericNode.NodeID - defer pmmapitests.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(t, nodeID) params := &external.AddExternalParams{ Context: pmmapitests.Context, @@ -319,7 +319,7 @@ func TestAddExternal(t *testing.T) { nodeName := pmmapitests.TestString(t, "node-name") genericNode := pmmapitests.AddGenericNode(t, nodeName) nodeID := genericNode.NodeID - defer pmmapitests.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(t, nodeID) serviceName := pmmapitests.TestString(t, "service-name") params := &external.AddExternalParams{ @@ -341,7 +341,7 @@ func TestAddExternal(t *testing.T) { nodeName := pmmapitests.TestString(t, "node-name") genericNode := pmmapitests.AddGenericNode(t, nodeName) nodeID := genericNode.NodeID - defer pmmapitests.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(t, nodeID) serviceName := pmmapitests.TestString(t, "service-name") params := &external.AddExternalParams{ @@ -363,7 +363,7 @@ func TestAddExternal(t *testing.T) { nodeName := pmmapitests.TestString(t, "node-name") genericNode := pmmapitests.AddGenericNode(t, nodeName) nodeID := genericNode.NodeID - defer pmmapitests.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(t, nodeID) serviceName := pmmapitests.TestString(t, "service-name") params := &external.AddExternalParams{ @@ -385,7 +385,7 @@ func TestAddExternal(t *testing.T) { nodeName := pmmapitests.TestString(t, "node-name") genericNode := pmmapitests.AddGenericNode(t, nodeName) nodeID := genericNode.NodeID - defer pmmapitests.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(t, nodeID) serviceName := pmmapitests.TestString(t, "service-name") params := &external.AddExternalParams{ @@ -517,7 +517,7 @@ func TestRemoveExternal(t *testing.T) { serviceName := pmmapitests.TestString(t, "service-remove-wrong-type") nodeName := pmmapitests.TestString(t, "node-remove-wrong-type") nodeID, serviceID := addExternal(t, serviceName, nodeName) - defer pmmapitests.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(t, nodeID) defer pmmapitests.RemoveServices(t, serviceID) removeServiceOK, err := client.Default.Service.RemoveService(&service.RemoveServiceParams{ diff --git a/api-tests/management/haproxy_test.go b/api-tests/management/haproxy_test.go index 5bf448ed23..290e7fc868 100644 --- a/api-tests/management/haproxy_test.go +++ b/api-tests/management/haproxy_test.go @@ -296,7 +296,7 @@ func TestAddHAProxy(t *testing.T) { nodeName := pmmapitests.TestString(t, "node-name") genericNode := pmmapitests.AddGenericNode(t, nodeName) nodeID := genericNode.NodeID - defer pmmapitests.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(t, nodeID) params := &ha_proxy.AddHAProxyParams{ Context: pmmapitests.Context, @@ -313,7 +313,7 @@ func TestAddHAProxy(t *testing.T) { nodeName := pmmapitests.TestString(t, "node-name") genericNode := pmmapitests.AddGenericNode(t, nodeName) nodeID := genericNode.NodeID - defer pmmapitests.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(t, nodeID) serviceName := pmmapitests.TestString(t, "service-name") params := &ha_proxy.AddHAProxyParams{ @@ -332,7 +332,7 @@ func TestAddHAProxy(t *testing.T) { nodeName := pmmapitests.TestString(t, "node-name") genericNode := pmmapitests.AddGenericNode(t, nodeName) nodeID := genericNode.NodeID - defer pmmapitests.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(t, nodeID) serviceName := pmmapitests.TestString(t, "service-name") params := &ha_proxy.AddHAProxyParams{ @@ -351,7 +351,7 @@ func TestAddHAProxy(t *testing.T) { nodeName := pmmapitests.TestString(t, "node-name") genericNode := pmmapitests.AddGenericNode(t, nodeName) nodeID := genericNode.NodeID - defer pmmapitests.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(t, nodeID) serviceName := pmmapitests.TestString(t, "service-name") params := &ha_proxy.AddHAProxyParams{ diff --git a/api-tests/management/mongodb_test.go b/api-tests/management/mongodb_test.go index 0499f86201..4285db2894 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.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(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.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(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.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(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.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(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 f6b5a009f2..2c9e757e37 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.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(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.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(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.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(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.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(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.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(t, nodeID) defer RemovePMMAgentWithSubAgents(t, pmmAgentID) serviceName := pmmapitests.TestString(t, "service-name") diff --git a/api-tests/management/postgresql_test.go b/api-tests/management/postgresql_test.go index 7a41ceeb7c..b1658bfdd9 100644 --- a/api-tests/management/postgresql_test.go +++ b/api-tests/management/postgresql_test.go @@ -483,7 +483,7 @@ func TestAddPostgreSQL(t *testing.T) { NodeName: nodeName, NodeType: pointer.ToString(node.RegisterNodeBodyNodeTypeGENERICNODE), }) - defer pmmapitests.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(t, nodeID) defer RemovePMMAgentWithSubAgents(t, pmmAgentID) params := &postgresql.AddPostgreSQLParams{ @@ -501,7 +501,7 @@ func TestAddPostgreSQL(t *testing.T) { NodeName: nodeName, NodeType: pointer.ToString(node.RegisterNodeBodyNodeTypeGENERICNODE), }) - defer pmmapitests.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(t, nodeID) defer RemovePMMAgentWithSubAgents(t, pmmAgentID) serviceName := pmmapitests.TestString(t, "service-name") @@ -525,7 +525,7 @@ func TestAddPostgreSQL(t *testing.T) { NodeName: nodeName, NodeType: pointer.ToString(node.RegisterNodeBodyNodeTypeGENERICNODE), }) - defer pmmapitests.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(t, nodeID) defer RemovePMMAgentWithSubAgents(t, pmmAgentID) serviceName := pmmapitests.TestString(t, "service-name") @@ -550,7 +550,7 @@ func TestAddPostgreSQL(t *testing.T) { NodeName: nodeName, NodeType: pointer.ToString(node.RegisterNodeBodyNodeTypeGENERICNODE), }) - defer pmmapitests.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(t, nodeID) defer RemovePMMAgentWithSubAgents(t, pmmAgentID) serviceName := pmmapitests.TestString(t, "service-name") diff --git a/api-tests/management/proxysql_test.go b/api-tests/management/proxysql_test.go index fbfd2727c0..cb4cd8c98b 100644 --- a/api-tests/management/proxysql_test.go +++ b/api-tests/management/proxysql_test.go @@ -452,7 +452,7 @@ func TestAddProxySQL(t *testing.T) { NodeName: nodeName, NodeType: pointer.ToString(node.RegisterNodeBodyNodeTypeGENERICNODE), }) - defer pmmapitests.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(t, nodeID) defer RemovePMMAgentWithSubAgents(t, pmmAgentID) params := &proxysql.AddProxySQLParams{ @@ -470,7 +470,7 @@ func TestAddProxySQL(t *testing.T) { NodeName: nodeName, NodeType: pointer.ToString(node.RegisterNodeBodyNodeTypeGENERICNODE), }) - defer pmmapitests.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(t, nodeID) defer RemovePMMAgentWithSubAgents(t, pmmAgentID) serviceName := pmmapitests.TestString(t, "service-name") @@ -494,7 +494,7 @@ func TestAddProxySQL(t *testing.T) { NodeName: nodeName, NodeType: pointer.ToString(node.RegisterNodeBodyNodeTypeGENERICNODE), }) - defer pmmapitests.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(t, nodeID) defer RemovePMMAgentWithSubAgents(t, pmmAgentID) serviceName := pmmapitests.TestString(t, "service-name") @@ -547,7 +547,7 @@ func TestAddProxySQL(t *testing.T) { NodeName: nodeName, NodeType: pointer.ToString(node.RegisterNodeBodyNodeTypeGENERICNODE), }) - defer pmmapitests.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(t, nodeID) defer RemovePMMAgentWithSubAgents(t, pmmAgentID) serviceName := pmmapitests.TestString(t, "service-name") @@ -571,7 +571,7 @@ func TestAddProxySQL(t *testing.T) { NodeName: nodeName, NodeType: pointer.ToString(node.RegisterNodeBodyNodeTypeGENERICNODE), }) - defer pmmapitests.UnregisterNodes(t, nodeID) + defer pmmapitests.RemoveNodes(t, nodeID) defer RemovePMMAgentWithSubAgents(t, pmmAgentID) serviceName := pmmapitests.TestString(t, "service-name")