Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
gshaibi committed Jul 15, 2024
1 parent 1567fed commit a893a5f
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions internal/status-exporter/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,12 @@ func getTestCases() map[string]testCase {
},
},
expectedLabels: map[string]string{
"nvidia.com/gpu.present": "true",
"nvidia.com/gpu.memory": "20000",
"nvidia.com/gpu.count": "1",
"nvidia.com/mig.strategy": "mixed",
"nvidia.com/gpu.product": "Tesla P100",
"run.ai/fake.gpu": "true",
"nvidia.com/gpu.deploy.dcgm-exporter": "true",
"nvidia.com/gpu.deploy.device-plugin": "true",
"nvidia.com/gpu.present": "true",
"nvidia.com/gpu.memory": "20000",
"nvidia.com/gpu.count": "1",
"nvidia.com/mig.strategy": "mixed",
"nvidia.com/gpu.product": "Tesla P100",
"run.ai/fake.gpu": "true",
},
expectedMetrics: []*dto.MetricFamily{
{
Expand Down Expand Up @@ -309,14 +307,12 @@ func getTestCases() map[string]testCase {
},
},
expectedLabels: map[string]string{
"nvidia.com/gpu.present": "true",
"nvidia.com/gpu.memory": "20000",
"nvidia.com/gpu.count": "2",
"nvidia.com/mig.strategy": "mixed",
"nvidia.com/gpu.product": "Tesla P100",
"run.ai/fake.gpu": "true",
"nvidia.com/gpu.deploy.dcgm-exporter": "true",
"nvidia.com/gpu.deploy.device-plugin": "true",
"nvidia.com/gpu.present": "true",
"nvidia.com/gpu.memory": "20000",
"nvidia.com/gpu.count": "2",
"nvidia.com/mig.strategy": "mixed",
"nvidia.com/gpu.product": "Tesla P100",
"run.ai/fake.gpu": "true",
},
expectedMetrics: []*dto.MetricFamily{
{
Expand Down

0 comments on commit a893a5f

Please sign in to comment.