Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
parvathika committed Dec 19, 2024
1 parent 5f84d4c commit 2fea19c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Tests/unit_test/test_LegacyPlugin_NetworkAPIs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,14 @@ TEST_F(NetworkTest, RegisteredMethods)

}

TEST_F(NetworkInitializedTest, getInterfaces)
TEST_F(NetworkTest, getInterfaces)
{
EXPECT_EQ(Core::ERROR_UNAVAILABLE, handler.Invoke(connection, _T("getInterfaces"), _T("{}"), response));
EXPECT_EQ(response, string(""));
EXPECT_EQ(Core::ERROR_NONE, handler.Invoke(connection, _T("getInterfaces"), _T("{}"), response));
EXPECT_THAT(response, ::testing::ContainsRegex(_T("\"interface\":\"ETHERNET\"")));
EXPECT_THAT(response, ::testing::ContainsRegex(_T("\"macAddress\":\"AA:AA:AA:AA:AA:AA\"")));
EXPECT_THAT(response, ::testing::ContainsRegex(_T("\"enabled\":true")));
EXPECT_THAT(response, ::testing::ContainsRegex(_T("\"connected\":true")));
EXPECT_THAT(response, ::testing::ContainsRegex(_T("\"success\":true")));
}


Expand Down

0 comments on commit 2fea19c

Please sign in to comment.