Skip to content

Commit

Permalink
Merge branch 'main' into RDKTV-31102-stable2
Browse files Browse the repository at this point in the history
  • Loading branch information
tamilselvanak authored Jul 12, 2024
2 parents 7278a3d + be5b1fa commit ed15828
Show file tree
Hide file tree
Showing 5 changed files with 1,262 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/workflows/L2-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ jobs:
-DCMAKE_DISABLE_FIND_PACKAGE_RBus=ON
-DPLUGIN_SYSTEMSERVICES=ON
-DPLUGIN_TELEMETRY=ON
-DPLUGIN_WAREHOUSE=ON
-DPLUGIN_HDCPPROFILE=ON
-DPLUGIN_NETWORK=ON
-DPLUGIN_TEXTTOSPEECH=ON
Expand Down
12 changes: 1 addition & 11 deletions Tests/L2Tests/L2TestsPlugin/tests/Telemetry_L2Test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ JSONRPC::LinkType<Core::JSON::IElement> jsonrpc(TELEMETRY_CALLSIGN, TELEMETRYL2T
JsonObject result;
std::string message;
JsonObject expected_status;
uint32_t signalled = TELEMETRYL2TEST_STATE_INVALID;

/* Without params and with Params as "No status" expecting Fail case*/
status = InvokeServiceMethod("org.rdk.Telemetry.1", "setReportProfileStatus", params, result);
Expand Down Expand Up @@ -343,7 +342,6 @@ TEST_F(Telemetry_L2test, TelemetrylogApplicationEvent){
JsonObject result;
std::string message;
JsonObject expected_status;
uint32_t signalled = TELEMETRYL2TEST_STATE_INVALID;

/* Without params expecting Fail case*/
status = InvokeServiceMethod("org.rdk.Telemetry.1", "logApplicationEvent", params, result);
Expand Down Expand Up @@ -384,7 +382,6 @@ TEST_F(Telemetry_L2test, TelemetryAbortReport){
JsonObject result;
std::string message;
JsonObject expected_status;
uint32_t signalled = TELEMETRYL2TEST_STATE_INVALID;
struct _rbusObject rbObject;

status = InvokeServiceMethod("org.rdk.Telemetry.1", "abortReport", params, result);
Expand Down Expand Up @@ -451,9 +448,6 @@ TEST_F(Telemetry_L2test, TelemetryImplementationMock){
JsonObject result;
std::string message;
JsonObject expected_status;
uint32_t signalled = TELEMETRYL2TEST_STATE_INVALID;
struct _rbusObject rbObject;


EXPECT_CALL(*p_telemetryApiImplMock, t2_init(::testing::_))
.Times(::testing::AnyNumber());
Expand Down Expand Up @@ -520,8 +514,6 @@ TEST_F(Telemetry_L2test, TelemetryRbusOpeningErrorCheck){
JsonObject result;
std::string message;
JsonObject expected_status;
uint32_t signalled = TELEMETRYL2TEST_STATE_INVALID;
struct _rbusObject rbObject;

EXPECT_CALL(*p_rBusApiImplMock, rbus_open(::testing::_, ::testing::_))
.Times(2)
Expand Down Expand Up @@ -563,9 +555,7 @@ TEST_F(Telemetry_L2test, TelemetryReportUploadErrorCheck){
JsonObject result;
std::string message;
JsonObject expected_status;
uint32_t signalled = TELEMETRYL2TEST_STATE_INVALID;
struct _rbusObject rbObject;
struct _rbusValue rbValue;

ON_CALL(*p_rBusApiImplMock, rbus_open(::testing::_, ::testing::_))
.WillByDefault(
Expand Down Expand Up @@ -596,4 +586,4 @@ TEST_F(Telemetry_L2test, TelemetryReportUploadErrorCheck){
status = InvokeServiceMethod("org.rdk.Telemetry.1", "uploadReport", params, result);
EXPECT_EQ(Core::ERROR_NONE, status);

}
}
Loading

0 comments on commit ed15828

Please sign in to comment.