Skip to content

Commit

Permalink
add test oss put object
Browse files Browse the repository at this point in the history
  • Loading branch information
pkusunjy committed May 28, 2024
1 parent 69360c6 commit 58c8212
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ cc_test(
],
)

cc_test(
name = "test_oss",
srcs = [
"test_oss.cpp",
],
deps = [
"//src/plugin:oss",
"@com_google_googletest//:gtest_main",
],
)

cc_test(
name = "test_util",
srcs = [
Expand Down
12 changes: 12 additions & 0 deletions test/test_oss.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "gtest/gtest.h"
#include "src/plugin/oss.h"

plugin::OssClient client;

TEST(oss, initialize) {
ASSERT_EQ(client.initialize(), 0);
}

TEST(oss, put_object) {
ASSERT_EQ(client.put_object("example.jpg", "example.jpg"), 0);
}

0 comments on commit 58c8212

Please sign in to comment.