Skip to content

Commit

Permalink
Fix monitoring tests (#799)
Browse files Browse the repository at this point in the history
* Fix monitoring tests
  • Loading branch information
waprin authored Feb 10, 2017
1 parent 8679220 commit 0adfa17
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions monitoring/api/v3/cloud-client/quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ def run_quickstart():

metric = client.metric(
type_='custom.googleapis.com/my_metric',
labels={
'status': 'successful',
}
labels={}
)

client.write_point(metric, resource, 3.14)
Expand Down
1 change: 0 additions & 1 deletion monitoring/api/v3/cloud-client/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def write_time_series():
metric = client.metric(
type_='custom.googleapis.com/my_metric',
labels={
'status': 'successful',
}
)
client.write_point(metric, resource, 3.14)
Expand Down
2 changes: 1 addition & 1 deletion monitoring/api/v3/cloud-client/snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_create_get_delete_metric_descriptor(capsys):
snippets.create_metric_descriptor()
snippets.get_metric_descriptor('custom.googleapis.com/my_metric')
out, _ = capsys.readouterr()
assert 'a simple example' in out
assert "value_type='DOUBLE'" in out
snippets.delete_metric_descriptor('custom.googleapis.com/my_metric')
out, _ = capsys.readouterr()
assert 'Deleted metric' in out
Expand Down

0 comments on commit 0adfa17

Please sign in to comment.