From 723bb80a1d5b59ea42acb040dd8f113fcaba4f35 Mon Sep 17 00:00:00 2001 From: Beka Davis <31743465+bekadavis9@users.noreply.github.com> Date: Fri, 29 Mar 2024 05:52:31 -0400 Subject: [PATCH] Add REST CI test to read/write group metadata. (#4833) Add REST CI test to read/write group metadata. --- TYPE: NO_HISTORY --- test/src/unit-capi-group.cc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/test/src/unit-capi-group.cc b/test/src/unit-capi-group.cc index 802faa30497..4c1dee4ecda 100644 --- a/test/src/unit-capi-group.cc +++ b/test/src/unit-capi-group.cc @@ -5,7 +5,7 @@ * * The MIT License * - * @copyright Copyright (c) 2022-2023 TileDB Inc. + * @copyright Copyright (c) 2022-2024 TileDB Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -411,12 +411,14 @@ TEST_CASE_METHOD( TEST_CASE_METHOD( GroupFx, - "C API: Group Metadata, write/read", - "[capi][group][metadata][read]") { + "C API: Group Metadata, write/read, rest", + "[capi][group][metadata][rest][regression][sc-4821]") { // Create and open group in write mode // TODO: refactor for each supported FS. - std::string temp_dir = fs_vec_[0]->temp_dir(); - create_temp_dir(temp_dir); + std::string fs_temp_dir = fs_vec_[0]->temp_dir(); + create_temp_dir(fs_temp_dir); + std::string temp_dir = + fs_vec_[0]->is_rest() ? "tiledb://unit/" + fs_temp_dir : fs_temp_dir; std::string group1_uri = temp_dir + "group1"; REQUIRE(tiledb_group_create(ctx_, group1_uri.c_str()) == TILEDB_OK); @@ -510,7 +512,7 @@ TEST_CASE_METHOD( rc = tiledb_group_close(ctx_, group); REQUIRE(rc == TILEDB_OK); tiledb_group_free(&group); - remove_temp_dir(temp_dir); + remove_temp_dir(fs_temp_dir); } TEST_CASE_METHOD(