From 566873e28a10ad9134e39ad108e550e0c351e28a Mon Sep 17 00:00:00 2001 From: Matthew Larson Date: Thu, 8 Jun 2023 12:07:44 -0500 Subject: [PATCH] Fix long link name tests for REST VOL --- vol_link_test.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vol_link_test.c b/vol_link_test.c index 6811e81..986f803 100644 --- a/vol_link_test.c +++ b/vol_link_test.c @@ -306,6 +306,10 @@ test_create_hard_link_long_name(void) if (strcmp(vol_name, "daos") == 0) name_len = 99; + /* Max total URL length for REST VOL is 2048, leave room for the rest of the URL */ + if (strcmp(vol_name, "REST") == 0) + name_len = 1000; + /* Construct very long file name */ if ((objname = (char *)HDmalloc((size_t)(name_len + 1))) == NULL) TEST_ERROR; @@ -1491,6 +1495,10 @@ test_create_soft_link_long_name(void) if (strcmp(vol_name, "daos") == 0) name_len = 99; + /* Max total URL length for REST VOL is 2048, leave room for the rest of the URL */ + if (strcmp(vol_name, "REST") == 0) + name_len = 1000; + /* Construct very long file name */ if ((objname = (char *)HDmalloc((size_t)(name_len + 1))) == NULL) TEST_ERROR;