Skip to content

Commit c80fb62

Browse files
committed
added wildcard test
1 parent 8988703 commit c80fb62

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/unit/trace/test_ext_utils.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,17 @@ def test_disable_tracing_url_root_empty_exclude(self):
100100
disable_tracing = utils.disable_tracing_url(url, excludelist_paths)
101101
self.assertTrue(disable_tracing)
102102

103+
def test_disable_tracing_url_wildcard(self):
104+
excludelist_paths = [r'test/(\w+/)*tracing']
105+
106+
url = 'http://127.0.0.1:8080/test/no/tracing'
107+
disable_tracing = utils.disable_tracing_url(url, excludelist_paths)
108+
self.assertTrue(disable_tracing)
109+
110+
url = 'http://127.0.0.1:8080/test/tracing'
111+
disable_tracing = utils.disable_tracing_url(url, excludelist_paths)
112+
self.assertTrue(disable_tracing)
113+
103114
def test_disable_tracing_hostname_default(self):
104115
url = '127.0.0.1:8080'
105116

0 commit comments

Comments
 (0)