Skip to content

Commit

Permalink
added wildcard test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasmiederer committed Mar 18, 2022
1 parent 8988703 commit c80fb62
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/unit/trace/test_ext_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,17 @@ def test_disable_tracing_url_root_empty_exclude(self):
disable_tracing = utils.disable_tracing_url(url, excludelist_paths)
self.assertTrue(disable_tracing)

def test_disable_tracing_url_wildcard(self):
excludelist_paths = [r'test/(\w+/)*tracing']

url = 'http://127.0.0.1:8080/test/no/tracing'
disable_tracing = utils.disable_tracing_url(url, excludelist_paths)
self.assertTrue(disable_tracing)

url = 'http://127.0.0.1:8080/test/tracing'
disable_tracing = utils.disable_tracing_url(url, excludelist_paths)
self.assertTrue(disable_tracing)

def test_disable_tracing_hostname_default(self):
url = '127.0.0.1:8080'

Expand Down

0 comments on commit c80fb62

Please sign in to comment.