Skip to content

Commit 3f84939

Browse files
committed
debug
1 parent c57b363 commit 3f84939

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/test_exposition.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,14 @@ def my_auth_handler(url, method, timeout, headers, data):
360360
return tls_auth_handler(url, method, timeout, headers, data, os.path.join(certs_dir, "cert.pem"), os.path.join(certs_dir, "key.pem"))
361361

362362
print("HERE")
363+
for root, dirs, files in os.walk(os.path.dirname(os.path.realpath(__file__))):
364+
level = root.replace(path, '').count(os.sep)
365+
indent = ' ' * 4 * level
366+
print(f"{indent}{os.path.basename(root)}/")
367+
sub_indent = ' ' * 4 * (level + 1)
368+
for file in files:
369+
print(f"{sub_indent}{file}")
370+
363371
push_to_gateway(self.address, "my_job_with_tls_auth", self.registry, handler=my_auth_handler)
364372
self.assertEqual(self.requests[0][0].command, 'PUT')
365373
self.assertEqual(self.requests[0][0].path, '/metrics/job/my_job_with_tls_auth')

0 commit comments

Comments
 (0)