Skip to content

Commit

Permalink
Add REST CI test to read/write group metadata. (#4833)
Browse files Browse the repository at this point in the history
Add REST CI test to read/write group metadata.
---
TYPE: NO_HISTORY
  • Loading branch information
bekadavis9 authored Mar 29, 2024
1 parent d9ad8b4 commit 723bb80
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/src/unit-capi-group.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 723bb80

Please sign in to comment.