Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commit 386f7f2

Browse files
author
Jon Wayne Parrott
committed
Fix monitoring test
Change-Id: I31c4dc368617996bc5b95c1414a39b9d45e11ebe
1 parent b350a80 commit 386f7f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/snippets/v3/list_resources_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def test_list_monitored_resources(cloud_config, capsys):
3737
client, PROJECT_RESOURCE)
3838
stdout, _ = capsys.readouterr()
3939
regex = re.compile(
40-
'An application running')
40+
'An application running', re.I)
4141
assert regex.search(stdout) is not None
4242

4343

@@ -49,7 +49,7 @@ def test_list_metrics(cloud_config, capsys):
4949
client, PROJECT_RESOURCE, METRIC)
5050
stdout, _ = capsys.readouterr()
5151
regex = re.compile(
52-
u'Delta CPU usage time')
52+
u'Delta CPU', re.I)
5353
assert regex.search(stdout) is not None
5454

5555

@@ -60,5 +60,5 @@ def test_list_timeseries(cloud_config, capsys):
6060
list_resources.list_timeseries(
6161
client, PROJECT_RESOURCE, METRIC)
6262
stdout, _ = capsys.readouterr()
63-
regex = re.compile(u'list_timeseries response:\n')
63+
regex = re.compile(u'list_timeseries response:\n', re.I)
6464
assert regex.search(stdout) is not None

0 commit comments

Comments
 (0)