Skip to content

Commit

Permalink
PMM-12251 Fix another tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriCtvrtka committed Nov 28, 2023
1 parent f661d7c commit 78783fc
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 28 deletions.
12 changes: 6 additions & 6 deletions api-tests/management/external_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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{
Expand All @@ -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{
Expand All @@ -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{
Expand All @@ -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{
Expand Down Expand Up @@ -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{
Expand Down
8 changes: 4 additions & 4 deletions api-tests/management/haproxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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{
Expand All @@ -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{
Expand All @@ -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{
Expand Down
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.UnregisterNodes(t, nodeID)
defer pmmapitests.RemoveNodes(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.UnregisterNodes(t, nodeID)
defer pmmapitests.RemoveNodes(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.UnregisterNodes(t, nodeID)
defer pmmapitests.RemoveNodes(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.UnregisterNodes(t, nodeID)
defer pmmapitests.RemoveNodes(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.UnregisterNodes(t, nodeID)
defer pmmapitests.RemoveNodes(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.UnregisterNodes(t, nodeID)
defer pmmapitests.RemoveNodes(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.UnregisterNodes(t, nodeID)
defer pmmapitests.RemoveNodes(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.UnregisterNodes(t, nodeID)
defer pmmapitests.RemoveNodes(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.UnregisterNodes(t, nodeID)
defer pmmapitests.RemoveNodes(t, nodeID)
defer RemovePMMAgentWithSubAgents(t, pmmAgentID)

serviceName := pmmapitests.TestString(t, "service-name")
Expand Down
8 changes: 4 additions & 4 deletions api-tests/management/postgresql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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")
Expand All @@ -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")
Expand All @@ -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")
Expand Down
10 changes: 5 additions & 5 deletions api-tests/management/proxysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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")
Expand All @@ -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")
Expand Down Expand Up @@ -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")
Expand All @@ -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")
Expand Down

0 comments on commit 78783fc

Please sign in to comment.