Skip to content

Commit

Permalink
Print node name in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
sunetfreitag committed Nov 12, 2024
1 parent db567c3 commit 9b072ab
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test_webdav.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def run(self):
client.mkdir(g_sharedTestFolder)
logger.info(f'After mkdir: {client.list()}')
except Exception as error:
logger.error(f'Error making folder {g_sharedTestFolder}: {error}')
logger.error(f'Error making folder {g_sharedTestFolder} on {self.name}: {error}')
g_testPassed[fullnode] = False
g_testThreadsRunning -= 1
return
Expand Down Expand Up @@ -342,7 +342,7 @@ def run(self):
try:
folders = ''
cnt = -1
folder = 'webdav_test'
folder = 'test_webdav'
self.TestWebDAV.assertEqual(client.list().count(f'{g_personalBucket}/'), 1)
path = g_personalBucket + '/' + folder
client.mkdir(path)
Expand Down Expand Up @@ -394,7 +394,7 @@ def run(self):
client = Client(options)

folders = ''
folder = 'webdav_test'
folder = 'test_webdav'

try:
cnt = -1
Expand Down Expand Up @@ -532,7 +532,7 @@ def test_logger(self):
def test_webdav_dne_check_basic_auth(self):
global logger
global g_testThreadsRunning
logger.info(f'webdav_test_dne_check')
logger.info(f'test_webdav_dne_check')
drv = sunetnextcloud.TestTarget()
for fullnode in drv.fullnodes:
with self.subTest(mynode=fullnode):
Expand All @@ -550,7 +550,7 @@ def test_webdav_dne_check_basic_auth(self):
def test_webdav_dne_check_app_token(self):
global logger
global g_testThreadsRunning
logger.info(f'webdav_test_dne_check')
logger.info(f'test_webdav_dne_check')
drv = sunetnextcloud.TestTarget()
for fullnode in drv.fullnodes:
with self.subTest(mynode=fullnode):
Expand All @@ -567,7 +567,7 @@ def test_webdav_dne_check_app_token(self):

def test_webdav_list(self):
global logger
logger.info(f'webdav_test_list')
logger.info(f'test_webdav_list')
drv = sunetnextcloud.TestTarget()
for fullnode in drv.fullnodes:
with self.subTest(mynode=fullnode):
Expand All @@ -585,7 +585,7 @@ def test_webdav_list(self):
def test_webdav_multicheckandremove(self):
global logger
global g_testPassed
logger.info(f'webdav_test_multicheckandremove')
logger.info(f'test_webdav_multicheckandremove')
drv = sunetnextcloud.TestTarget()
for fullnode in drv.fullnodes:
logger.info(f'WebDAV multicheck for {fullnode}')
Expand Down

0 comments on commit 9b072ab

Please sign in to comment.