From efe65f1e89ad8f5c1305084b1526a62595f9e732 Mon Sep 17 00:00:00 2001 From: Jon Wayne Parrott Date: Fri, 14 Oct 2016 10:22:38 -0700 Subject: [PATCH] Fix monitoring test Change-Id: I31c4dc368617996bc5b95c1414a39b9d45e11ebe --- monitoring/api/v3/list_resources_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monitoring/api/v3/list_resources_test.py b/monitoring/api/v3/list_resources_test.py index 750b57406a64..e85b737f167b 100644 --- a/monitoring/api/v3/list_resources_test.py +++ b/monitoring/api/v3/list_resources_test.py @@ -37,7 +37,7 @@ def test_list_monitored_resources(cloud_config, capsys): client, PROJECT_RESOURCE) stdout, _ = capsys.readouterr() regex = re.compile( - 'An application running') + 'An application running', re.I) assert regex.search(stdout) is not None @@ -49,7 +49,7 @@ def test_list_metrics(cloud_config, capsys): client, PROJECT_RESOURCE, METRIC) stdout, _ = capsys.readouterr() regex = re.compile( - u'Delta CPU usage time') + u'Delta CPU', re.I) assert regex.search(stdout) is not None @@ -60,5 +60,5 @@ def test_list_timeseries(cloud_config, capsys): list_resources.list_timeseries( client, PROJECT_RESOURCE, METRIC) stdout, _ = capsys.readouterr() - regex = re.compile(u'list_timeseries response:\n') + regex = re.compile(u'list_timeseries response:\n', re.I) assert regex.search(stdout) is not None