@@ -38,10 +38,10 @@ func TestScrapeInfoSchemaInnodbTablespaces(t *testing.T) {
38
38
mock .ExpectQuery (sanitizeQuery (innodbTablespacesTablenameQuery )).WillReturnRows (rows )
39
39
40
40
tablespacesTablename := "INNODB_SYS_TABLESPACES"
41
- columns = []string {"SPACE" , "NAME" , "FILE_FORMAT" , "ROW_FORMAT" , "SPACE_TYPE" , " FILE_SIZE" , "ALLOCATED_SIZE" }
41
+ columns = []string {"SPACE" , "NAME" , "FILE_FORMAT" , "ROW_FORMAT" , "FILE_SIZE" , "ALLOCATED_SIZE" }
42
42
rows = sqlmock .NewRows (columns ).
43
- AddRow (1 , "sys/sys_config" , "Barracuda" , "Dynamic" , "Single" , 100 , 100 ).
44
- AddRow (2 , "db/compressed" , "Barracuda" , "Compressed" , "Single" , 300 , 200 )
43
+ AddRow (1 , "sys/sys_config" , "Barracuda" , "Dynamic" , 100 , 100 ).
44
+ AddRow (2 , "db/compressed" , "Barracuda" , "Compressed" , 300 , 200 )
45
45
query := fmt .Sprintf (innodbTablespacesQuery , tablespacesTablename , tablespacesTablename )
46
46
mock .ExpectQuery (sanitizeQuery (query )).WillReturnRows (rows )
47
47
@@ -54,10 +54,10 @@ func TestScrapeInfoSchemaInnodbTablespaces(t *testing.T) {
54
54
}()
55
55
56
56
expected := []MetricResult {
57
- {labels : labelMap {"tablespace_name" : "sys/sys_config" , "file_format" : "Barracuda" , "row_format" : "Dynamic" , "space_type" : "Single" }, value : 1 , metricType : dto .MetricType_GAUGE },
57
+ {labels : labelMap {"tablespace_name" : "sys/sys_config" , "file_format" : "Barracuda" , "row_format" : "Dynamic" }, value : 1 , metricType : dto .MetricType_GAUGE },
58
58
{labels : labelMap {"tablespace_name" : "sys/sys_config" }, value : 100 , metricType : dto .MetricType_GAUGE },
59
59
{labels : labelMap {"tablespace_name" : "sys/sys_config" }, value : 100 , metricType : dto .MetricType_GAUGE },
60
- {labels : labelMap {"tablespace_name" : "db/compressed" , "file_format" : "Barracuda" , "row_format" : "Compressed" , "space_type" : "Single" }, value : 2 , metricType : dto .MetricType_GAUGE },
60
+ {labels : labelMap {"tablespace_name" : "db/compressed" , "file_format" : "Barracuda" , "row_format" : "Compressed" }, value : 2 , metricType : dto .MetricType_GAUGE },
61
61
{labels : labelMap {"tablespace_name" : "db/compressed" }, value : 300 , metricType : dto .MetricType_GAUGE },
62
62
{labels : labelMap {"tablespace_name" : "db/compressed" }, value : 200 , metricType : dto .MetricType_GAUGE },
63
63
}
0 commit comments