Skip to content

Commit

Permalink
Publish example metrics for automatic doc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
kormoc committed Jan 21, 2017
1 parent 82f3455 commit 19359af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/collectors/gridengine/test/testgridengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ def test_queue_stats_should_work_with_real_data(
'queues.secondary_q.temp_disabled': 1,
'queues.secondary_q.manual_intervention': 0
}

self.setDocExample(collector=self.collector.__class__.__name__,
metrics=published_metrics,
defaultpath=self.collector.config['path'])

self.assertPublishedMany(publish_mock, published_metrics)

@patch.object(GridEngineCollector, '_queue_stats_xml')
Expand Down

0 comments on commit 19359af

Please sign in to comment.