message: [druid] Updating Druid refresh metadata tests
diff: @@ -346,8 +346,8 @@ class DruidTests(SupersetTestCase):
  self.login(username='admin')
  cluster = self.get_cluster(PyDruid)
  cluster.refresh_datasources()
  + datasource = cluster.datasources[0]
  - for i, datasource in enumerate(cluster.datasources):
  cols = (
  db.session.query(DruidColumn)
  .filter(DruidColumn.datasource_id == datasource.id)
  @@ -356,7 +356,7 @@ class DruidTests(SupersetTestCase):
  for col in cols:
  self.assertIn(
  col.column_name,
  - SEGMENT_METADATA[i]['columns'].keys(),
  + SEGMENT_METADATA[0]['columns'].keys(),
  )
  metrics = (
  @@ -389,8 +389,16 @@ class DruidTests(SupersetTestCase):
  instance = PyDruid.return_value
  instance.segment_metadata.return_value = metadata
  cluster.refresh_datasources()
  + datasource = cluster.datasources[0]
  +
  + column = (
  + db.session.query(DruidColumn)
  + .filter(DruidColumn.datasource_id == datasource.id)
  + .filter(DruidColumn.column_name == 'metric1')
  + ).one()
  +
  + self.assertEqual(column.type, 'LONG')
  - for i, datasource in enumerate(cluster.datasources):
  metrics = (
  db.session.query(DruidMetric)
  .filter(DruidMetric.datasource_id == datasource.id)
  @@ -410,8 +418,8 @@ class DruidTests(SupersetTestCase):
  self.login(username='admin')
  cluster = self.get_cluster(PyDruid)
  cluster.refresh_datasources()
  + datasource = cluster.datasources[0]
  - for i, datasource in enumerate(cluster.datasources):
  metrics = (
  db.session.query(DruidMetric)
  .filter(DruidMetric.datasource_id == datasource.id)
  @@ -425,8 +433,8 @@ class DruidTests(SupersetTestCase):
  # The verbose name should not change during a refresh.
  cluster.refresh_datasources()
  + datasource = cluster.datasources[0]
  - for i, datasource in enumerate(cluster.datasources):
  metrics = (
  db.session.query(DruidMetric)
  .filter(DruidMetric.datasource_id == datasource.id)
  