mirror of
https://github.com/meganz/MEGAcmd
synced 2025-08-31 13:55:10 +00:00
Add integration test to ensure CMD-283 fix is working.
This commit is contained in:
@@ -13,6 +13,9 @@
|
||||
* program.
|
||||
*/
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <gmock/gmock.h>
|
||||
|
||||
#include "MegaCmdTestingTools.h"
|
||||
#include "TestUtils.h"
|
||||
|
||||
@@ -49,3 +52,14 @@ TEST_F(NOINTERACTIVEReadTest, Find)
|
||||
EXPECT_CONTAINS(result_paths, "testReadingFolder01/folder01/file03.txt");
|
||||
EXPECT_CONTAINS(result_paths, "testReadingFolder01/folder02/subfolder03/file02.txt");
|
||||
}
|
||||
|
||||
TEST_F(NOINTERACTIVELoggedInTest, WhoamiLCMD283)
|
||||
{
|
||||
// CMD-283: whoami -l reports wrong details about account storage use
|
||||
auto r = executeInClient({"whoami", "-l"});
|
||||
|
||||
std::vector<std::string> details_out = splitByNewline(r.out());
|
||||
ASSERT_THAT(details_out, testing::Not(testing::IsEmpty()));
|
||||
|
||||
EXPECT_THAT(details_out, testing::Not(testing::Contains(testing::ContainsRegex("Available storage:\\s+0\\.00\\s+Bytes"))));
|
||||
}
|
||||
|
Reference in New Issue
Block a user