Skip to content

Commit

Permalink
PMM-12811 fix Azure test
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Feb 6, 2024
1 parent 3c7a8cf commit d3ad3cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions managed/services/inventory/services_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func TestServices(t *testing.T) {
node, err := ns.AddRemoteAzureDatabaseNode(ctx, &inventoryv1.AddRemoteAzureNodeParams{NodeName: "test1", Region: "test-region", Address: "test"})
require.NoError(t, err)

rdsAgent, err := as.AddAzureDatabaseExporter(ctx, &inventoryv1.AddAzureDatabaseExporterParams{
azureAgent, err := as.AddAzureDatabaseExporter(ctx, &inventoryv1.AddAzureDatabaseExporterParams{
PmmAgentId: "pmm-server",
NodeId: node.NodeId,
PushMetrics: true,
Expand Down Expand Up @@ -243,8 +243,8 @@ func TestServices(t *testing.T) {
_, err = ss.Get(ctx, mySQLService.ServiceId)
tests.AssertGRPCError(t, status.New(codes.NotFound, fmt.Sprintf(`Service with ID "%s" not found.`, mySQLService.ServiceId)), err)

_, err = as.Get(ctx, rdsAgent.GetRdsExporter().AgentId)
tests.AssertGRPCError(t, status.New(codes.NotFound, fmt.Sprintf(`Agent with ID "%s" not found.`, rdsAgent.GetRdsExporter().AgentId)), err)
_, err = as.Get(ctx, azureAgent.GetAzureDatabaseExporter().AgentId)
tests.AssertGRPCError(t, status.New(codes.NotFound, fmt.Sprintf(`Agent with ID "%s" not found.`, azureAgent.GetAzureDatabaseExporter().AgentId)), err)

_, err = as.Get(ctx, mySQLAgent.GetMysqldExporter().AgentId)
tests.AssertGRPCError(t, status.New(codes.NotFound, fmt.Sprintf(`Agent with ID "%s" not found.`, mySQLAgent.GetMysqldExporter().AgentId)), err)
Expand Down

0 comments on commit d3ad3cc

Please sign in to comment.