@@ -38,10 +38,10 @@ func TestScrapeInfoSchemaInnodbTablespaces(t *testing.T) {
3838 mock .ExpectQuery (sanitizeQuery (innodbTablespacesTablenameQuery )).WillReturnRows (rows )
3939
4040 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" }
4242 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 )
4545 query := fmt .Sprintf (innodbTablespacesQuery , tablespacesTablename , tablespacesTablename )
4646 mock .ExpectQuery (sanitizeQuery (query )).WillReturnRows (rows )
4747
@@ -54,10 +54,10 @@ func TestScrapeInfoSchemaInnodbTablespaces(t *testing.T) {
5454 }()
5555
5656 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 },
5858 {labels : labelMap {"tablespace_name" : "sys/sys_config" }, value : 100 , metricType : dto .MetricType_GAUGE },
5959 {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 },
6161 {labels : labelMap {"tablespace_name" : "db/compressed" }, value : 300 , metricType : dto .MetricType_GAUGE },
6262 {labels : labelMap {"tablespace_name" : "db/compressed" }, value : 200 , metricType : dto .MetricType_GAUGE },
6363 }
0 commit comments