From 19859de510f3bb8f8e67dc3a1b2f6f51905e93b7 Mon Sep 17 00:00:00 2001 From: Patrick LeBlanc Date: Mon, 13 May 2019 12:10:48 -0500 Subject: [PATCH] Added a test to the s3 module, attempt to copy a non-existant file. --- src/unit_tests.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/unit_tests.cpp b/src/unit_tests.cpp index 846e3e79f..280d0c515 100755 --- a/src/unit_tests.cpp +++ b/src/unit_tests.cpp @@ -1184,6 +1184,10 @@ void s3storageTest1() assert(exists); s3.deleteObject(testFile); s3.deleteObject(testFile2); + + err = s3.copyObject("this-does-not-exist", testFile2); + assert(err < 0); + assert(errno == ENOENT); } catch(exception &e) { @@ -1523,7 +1527,7 @@ int main() mergeJournalTest(); replicatorTest(); syncTest1(); - + s3storageTest1(); IOCReadTest1(); IOCTruncate();