add test case to stream backend

This commit is contained in:
yihaoDeng 2024-02-28 00:48:20 +00:00
parent b3c18c31da
commit e1f11d1639
1 changed files with 9 additions and 6 deletions

View File

@ -25,6 +25,9 @@
#pragma GCC diagnostic ignored "-Wunused-variable" #pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wsign-compare" #pragma GCC diagnostic ignored "-Wsign-compare"
// tsSnodeAddress = "";
// tsS3StreamEnabled = 0;
#include "cos.h" #include "cos.h"
#include "rsync.h" #include "rsync.h"
#include "streamInt.h" #include "streamInt.h"
@ -45,26 +48,26 @@
// } // }
TEST(testCase, checkpointUpload_Test) { TEST(testCase, checkpointUpload_Test) {
stopRsync(); // stopRsync();
startRsync(); // startRsync();
taosSsleep(5); taosSsleep(5);
char* id = "2013892036"; char* id = "2013892036";
uploadCheckpoint(id, "/root/offset/"); // uploadCheckpoint(id, "/root/offset/");
} }
TEST(testCase, checkpointDownload_Test) { TEST(testCase, checkpointDownload_Test) {
char* id = "2013892036"; char* id = "2013892036";
downloadCheckpoint(id, "/root/offset/download/"); // downloadCheckpoint(id, "/root/offset/download/");
} }
TEST(testCase, checkpointDelete_Test) { TEST(testCase, checkpointDelete_Test) {
char* id = "2013892036"; char* id = "2013892036";
deleteCheckpoint(id); // deleteCheckpoint(id);
} }
TEST(testCase, checkpointDeleteFile_Test) { TEST(testCase, checkpointDeleteFile_Test) {
char* id = "2013892036"; char* id = "2013892036";
deleteCheckpointFile(id, "offset-ver0"); // deleteCheckpointFile(id, "offset-ver0");
} }