Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark Monitoring As Flaky #258

Merged
merged 1 commit into from
Apr 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions monitoring/api/v3/custom_metric_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

from custom_metric import create_custom_metric, get_custom_metric
from custom_metric import read_timeseries, write_timeseries_value
from gcp.testing.flaky import flaky
import list_resources

""" Custom metric domain for all custom metrics"""
Expand All @@ -37,6 +38,7 @@
CUSTOM_METRIC_DOMAIN, METRIC_NAME)


@flaky
def test_custom_metric(cloud_config):
PROJECT_RESOURCE = "projects/{}".format(cloud_config.project)
client = list_resources.get_client()
Expand Down
4 changes: 4 additions & 0 deletions monitoring/api/v3/list_resources_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@

import re

from gcp.testing.flaky import flaky
import list_resources

METRIC = 'compute.googleapis.com/instance/cpu/usage_time'


@flaky
def test_list_monitored_resources(cloud_config, capsys):
PROJECT_RESOURCE = "projects/{}".format(cloud_config.project)
client = list_resources.get_client()
Expand All @@ -38,6 +40,7 @@ def test_list_monitored_resources(cloud_config, capsys):
assert regex.search(stdout) is not None


@flaky
def test_list_metrics(cloud_config, capsys):
PROJECT_RESOURCE = "projects/{}".format(cloud_config.project)
client = list_resources.get_client()
Expand All @@ -49,6 +52,7 @@ def test_list_metrics(cloud_config, capsys):
assert regex.search(stdout) is not None


@flaky
def test_list_timeseries(cloud_config, capsys):
PROJECT_RESOURCE = "projects/{}".format(cloud_config.project)
client = list_resources.get_client()
Expand Down