Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
224 commits
Select commit Hold shift + click to select a range
f243b67
Create MaintenancemanagerL2.cpp
Abhinavpv28 Sep 1, 2025
447020b
Update L2-tests.yml
Abhinavpv28 Sep 1, 2025
68e4c0e
Update CMakeLists.txt
Abhinavpv28 Sep 1, 2025
bdbd36a
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 1, 2025
b3f15cb
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 1, 2025
6c2b723
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 1, 2025
1a09654
Update L2-tests.yml
Abhinavpv28 Sep 2, 2025
43df7a8
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 3, 2025
6d5dda3
Update L2-tests.yml
Abhinavpv28 Sep 3, 2025
38688ea
Update CMakeLists.txt
Abhinavpv28 Sep 3, 2025
db453b3
Update CMakeLists.txt
Abhinavpv28 Sep 3, 2025
fa935d7
Update L2-tests.yml
Abhinavpv28 Sep 4, 2025
1d2b230
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 4, 2025
e6b1127
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 4, 2025
d2d32f6
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 4, 2025
6de3989
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 4, 2025
e71d668
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 4, 2025
8deb39c
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 4, 2025
75a7b56
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 4, 2025
36faa9f
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 4, 2025
48b56da
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 4, 2025
1ea1b76
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 4, 2025
2b417b4
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 5, 2025
9a6ef46
Update L2-tests.yml
Abhinavpv28 Sep 5, 2025
14fd29a
Update L2-tests.yml
Abhinavpv28 Sep 5, 2025
9b5f221
Update L2-tests.yml
Abhinavpv28 Sep 5, 2025
bf7b42a
Update L2-tests.yml
Abhinavpv28 Sep 5, 2025
69a6fa2
Update L2-tests.yml
Abhinavpv28 Sep 5, 2025
269d6a6
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 9, 2025
4d1d39a
Update L2-tests.yml
Abhinavpv28 Sep 9, 2025
b5714c8
Update L2-tests.yml
Abhinavpv28 Sep 9, 2025
52ba74a
Update L2-tests.yml
Abhinavpv28 Sep 9, 2025
81a1f3f
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 9, 2025
602c2eb
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 9, 2025
e28a99c
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 9, 2025
155eefa
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 9, 2025
e19d4ec
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 9, 2025
8e02f8e
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 9, 2025
06dada0
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 9, 2025
2412d19
Update CMakeLists.txt
Abhinavpv28 Sep 9, 2025
12be1e4
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 9, 2025
dc226ea
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 9, 2025
f4e2139
Update CMakeLists.txt
Abhinavpv28 Sep 9, 2025
03d8844
Update CMakeLists.txt
Abhinavpv28 Sep 9, 2025
81a451b
Update CMakeLists.txt
Abhinavpv28 Sep 9, 2025
9cee9f8
Update CMakeLists.txt
Abhinavpv28 Sep 9, 2025
c40e5db
Update CMakeLists.txt
Abhinavpv28 Sep 9, 2025
3db02c6
Update CMakeLists.txt
Abhinavpv28 Sep 9, 2025
0596c23
Update CMakeLists.txt
Abhinavpv28 Sep 9, 2025
f0fe93b
Update CMakeLists.txt
Abhinavpv28 Sep 9, 2025
62a3804
Update L2-tests.yml
Abhinavpv28 Sep 10, 2025
79c0b8e
Update L2-tests.yml
Abhinavpv28 Sep 10, 2025
8d263bd
Update L2-tests.yml
Abhinavpv28 Sep 10, 2025
eb0d147
Update L2-tests.yml
Abhinavpv28 Sep 10, 2025
0eb8e90
Update L2-tests.yml
Abhinavpv28 Sep 10, 2025
652899d
Update L2-tests.yml
Abhinavpv28 Sep 10, 2025
cab5a17
Update L2-tests.yml
Abhinavpv28 Sep 10, 2025
1d0cd92
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 10, 2025
f089f7a
Update CMakeLists.txt
Abhinavpv28 Sep 10, 2025
fd01d77
Update CMakeLists.txt
Abhinavpv28 Sep 10, 2025
2eddcba
Update CMakeLists.txt
Abhinavpv28 Sep 10, 2025
f56c326
Update CMakeLists.txt
Abhinavpv28 Sep 10, 2025
0b41df8
Update CMakeLists.txt
Abhinavpv28 Sep 10, 2025
ba5107a
Update CMakeLists.txt
Abhinavpv28 Sep 10, 2025
5b2afb4
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 10, 2025
05e7895
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 10, 2025
048933d
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 10, 2025
9f67a14
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 11, 2025
7b35b07
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 11, 2025
b010ce8
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 11, 2025
749b462
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 11, 2025
a8e388b
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 11, 2025
a205da1
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 11, 2025
2338910
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 11, 2025
db946e4
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 11, 2025
cfcdbce
Update L2-tests.yml
Abhinavpv28 Sep 11, 2025
6c9446e
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 11, 2025
490cfc6
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 11, 2025
e3ed942
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 11, 2025
fc691ca
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 11, 2025
d908304
Update L2-tests.yml
Abhinavpv28 Sep 12, 2025
f27e08e
Update L2-tests.yml
Abhinavpv28 Sep 13, 2025
16f04c1
Update L2-tests.yml
Abhinavpv28 Sep 13, 2025
d7b16f4
Update L2-tests.yml
Abhinavpv28 Sep 13, 2025
a8dc10a
Update CMakeLists.txt
Abhinavpv28 Sep 13, 2025
95ca157
Update L2-tests.yml
Abhinavpv28 Sep 13, 2025
86c147b
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 13, 2025
10141a3
Update L2-tests.yml
Abhinavpv28 Sep 13, 2025
c83e9fd
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 13, 2025
eb8b9b7
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 14, 2025
523ac31
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 14, 2025
387ea24
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 14, 2025
4395634
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 14, 2025
2c4cf42
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 14, 2025
aa5f598
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 14, 2025
1d1dc42
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 14, 2025
7191484
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 14, 2025
39206f4
Update L2-tests.yml
Abhinavpv28 Sep 14, 2025
a870f51
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 14, 2025
9be4c0f
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 14, 2025
e27d4ff
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 14, 2025
c1f88c3
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 15, 2025
743d533
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 15, 2025
bd1a433
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 15, 2025
f050625
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 15, 2025
5e2f7a7
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 15, 2025
9ff16a8
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 15, 2025
1c10b34
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 15, 2025
27268af
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 15, 2025
7244f7d
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 15, 2025
047420f
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 15, 2025
72a75cd
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 15, 2025
647ffa3
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 15, 2025
0a9cba0
Update L2-tests.yml
Abhinavpv28 Sep 15, 2025
6a02fe3
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 15, 2025
80ef7fe
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 15, 2025
4b3b43f
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 15, 2025
265cb9a
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 15, 2025
7de4828
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 15, 2025
973bec6
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 15, 2025
a1868da
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 15, 2025
7c39ab8
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 15, 2025
bfdb671
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 16, 2025
3b20d0c
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 16, 2025
3f4248f
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 16, 2025
4b40e40
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 16, 2025
fca586f
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 16, 2025
a027e71
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 16, 2025
1fdd48c
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 16, 2025
ba40838
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 16, 2025
70b323c
Update MaintenanceManager.cpp
Abhinavpv28 Sep 16, 2025
1bb7474
Update MaintenanceManager.cpp
Abhinavpv28 Sep 16, 2025
d4978eb
Update MaintenanceManager.cpp
Abhinavpv28 Sep 16, 2025
73f2cde
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 16, 2025
57d23c1
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 16, 2025
fcffa8a
Update MaintenanceManager.cpp
Abhinavpv28 Sep 16, 2025
1713ce6
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 16, 2025
fb9fd2e
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 16, 2025
458dd27
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 16, 2025
bb7b7ff
Update MaintenanceManager.cpp
Abhinavpv28 Sep 16, 2025
3d6efc9
Update MaintenanceManager.cpp
Abhinavpv28 Sep 16, 2025
ba098c1
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 16, 2025
08806b5
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 16, 2025
7e48c28
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 16, 2025
4657f9a
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 16, 2025
c19936d
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 16, 2025
0594a1d
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
5a77eeb
Update CMakeLists.txt
Abhinavpv28 Sep 17, 2025
9b5c0a7
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
a7bf4cd
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
42a0785
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
0df0601
Update L2-tests.yml
Abhinavpv28 Sep 17, 2025
c467263
Update L2-tests.yml
Abhinavpv28 Sep 17, 2025
941e305
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
4f0de3a
Update L2-tests.yml
Abhinavpv28 Sep 17, 2025
8ec18b1
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
abc1fc5
Update L2-tests.yml
Abhinavpv28 Sep 17, 2025
8fa0411
Update L2-tests.yml
Abhinavpv28 Sep 17, 2025
ddb457a
Update L2-tests.yml
Abhinavpv28 Sep 17, 2025
bc76538
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
589c6ca
Update L2-tests.yml
Abhinavpv28 Sep 17, 2025
f6a40a0
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
a83bece
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
8961e51
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
ab39482
Update MaintenanceManager.cpp
Abhinavpv28 Sep 17, 2025
280b46f
Update MaintenanceManager.h
Abhinavpv28 Sep 17, 2025
18dbd9d
Update MaintenanceManager.cpp
Abhinavpv28 Sep 17, 2025
84274c5
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
91d06be
Update MaintenanceManager.cpp
Abhinavpv28 Sep 17, 2025
16ea143
Update MaintenanceManager.cpp
Abhinavpv28 Sep 17, 2025
d5535c3
Update MaintenanceManager.cpp
Abhinavpv28 Sep 17, 2025
b6c5838
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
b2f449b
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
beebca1
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
7ac63ee
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
55f4f5e
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
a9429c7
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
4391046
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
47ca930
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
0587815
Update MaintenanceManager.cpp
Abhinavpv28 Sep 17, 2025
2125486
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
7f803c8
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
0e37710
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
083b444
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 17, 2025
5747616
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 18, 2025
b11eac4
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 18, 2025
6f9aeec
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 18, 2025
0015eba
Update MaintenanceManager.cpp
Abhinavpv28 Sep 18, 2025
f8a28bd
Update MaintenanceManager.cpp
Abhinavpv28 Sep 18, 2025
34e3010
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 18, 2025
42ee2c8
Update MaintenanceManager.cpp
Abhinavpv28 Sep 18, 2025
748ebc2
Update MaintenanceManager.cpp
Abhinavpv28 Sep 18, 2025
26b9d82
Update MaintenanceManager.cpp
Abhinavpv28 Sep 18, 2025
baa7221
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 18, 2025
6071f73
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 18, 2025
1aa195b
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 18, 2025
bd3e527
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 18, 2025
465dd98
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 18, 2025
f9b27ee
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 18, 2025
41da20b
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 18, 2025
64bdd4d
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 18, 2025
e7c4e54
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 18, 2025
f9f01d1
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 18, 2025
7088d17
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 19, 2025
c7049c1
Update MaintenanceManager.cpp
Abhinavpv28 Sep 19, 2025
8479e6e
Update MaintenanceManager.cpp
Abhinavpv28 Sep 19, 2025
9915949
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 19, 2025
b42fd9b
Update MaintenanceManager.cpp
Abhinavpv28 Sep 19, 2025
4b6fd36
Update MaintenanceManager.cpp
Abhinavpv28 Sep 19, 2025
ae381e5
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 19, 2025
03bf724
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 19, 2025
4794b05
Update MaintenanceManager.cpp
Abhinavpv28 Sep 19, 2025
6d92b94
Update MaintenanceManager.cpp
Abhinavpv28 Sep 19, 2025
568f0a3
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 19, 2025
29afe26
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 19, 2025
20ed642
Merge pull request #145 from rdkcentral/develop
Abhinavpv28 Sep 19, 2025
e8d22af
Create Mockmaintenancemanager.cpp
Abhinavpv28 Sep 19, 2025
52c6b0c
Create MockMaintenancemanager.h
Abhinavpv28 Sep 19, 2025
93dc7a2
Update MockMaintenancemanager.h
Abhinavpv28 Sep 19, 2025
2359dbd
Update L2-tests.yml
Abhinavpv28 Sep 19, 2025
8da0406
Update MaintenanceManager.cpp
Abhinavpv28 Sep 19, 2025
4b54a07
Update L2-tests.yml
Abhinavpv28 Sep 19, 2025
7e02eb3
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 20, 2025
2aa4f3d
Update MaintenancemanagerL2.cpp
Abhinavpv28 Sep 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 28 additions & 4 deletions .github/workflows/L2-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,15 @@ jobs:
with:
repository: rdkcentral/entservices-testframework
path: entservices-testframework
ref: develop
ref: feature/L2mm
token: ${{ secrets.RDKCM_RDKE }}

- name: Checkout networkmanager
uses: actions/checkout@v3
with:
repository: rdkcentral/networkmanager
path: networkmanager
ref: feature/L2mock
token: ${{ secrets.RDKCM_RDKE }}

- name: Checkout googletest
Expand All @@ -128,6 +136,7 @@ jobs:
run: |
cd $GITHUB_WORKSPACE/entservices-softwareupdate
patch -p1 < $GITHUB_WORKSPACE/entservices-testframework/patches/Firmware_postFlash.patch
patch -p1 < $GITHUB_WORKSPACE/entservices-testframework/patches/maintenancemanager.patch
cd -

- name: Build ThunderTools
Expand Down Expand Up @@ -197,7 +206,7 @@ jobs:
cmake --build build/entservices-apis -j8
&&
cmake --install build/entservices-apis

- name: Generate external headers
# Empty headers to mute errors
run: >
Expand Down Expand Up @@ -373,6 +382,7 @@ jobs:
-DCMAKE_DISABLE_FIND_PACKAGE_RFC=ON
-DCMAKE_DISABLE_FIND_PACKAGE_RBus=ON
-DPLUGIN_FIRMWAREUPDATE=ON
-DPLUGIN_MAINTENANCEMANAGER=ON
-DUSE_THUNDER_R4=ON
-DPLUGIN_L2Tests=ON
-DRDK_SERVICE_L2_TEST=ON
Expand All @@ -382,6 +392,17 @@ jobs:
cmake --build build/entservices-softwareupdate -j8
&&
cmake --install build/entservices-softwareupdate

- name: Generate IARM headers
run: |
touch install/usr/lib/libIARMBus.so
mkdir -p install/usr/include/rdk/iarmbus
touch install/usr/include/rdk/iarmbus/libIARM.h
cd "${{github.workspace}}/networkmanager/tests/"
mkdir -p headers/rdk/iarmbus
cd headers
touch rdk/iarmbus/libIARM.h rdk/iarmbus/libIBus.h


- name: Build entservices-testframework
run: >
Expand All @@ -392,6 +413,8 @@ jobs:
-DCMAKE_INSTALL_PREFIX="$GITHUB_WORKSPACE/install/usr"
-DCMAKE_MODULE_PATH="$GITHUB_WORKSPACE/install/tools/cmake"
-DHIDE_NON_EXTERNAL_SYMBOLS=OFF
-DRDK_SERVICE_L2_TEST=ON
-DL2_TEST_OOP_RPC=ON
-DCMAKE_CXX_FLAGS="
-DEXCEPTIONS_ENABLE=ON
-fprofile-arcs
Expand All @@ -401,6 +424,7 @@ jobs:
-DTHUNDER_VERSION_MAJOR=4
-DTHUNDER_VERSION_MINOR=4
-DDEVICE_TYPE=AVOutputTV
-DMOCKACCESSOR_LIBRARIES=ON
-DPLUGIN_PERSISTENTSTORE_PATH="/tmp/secure/persistent/rdkservicestore"
-DPLUGIN_PERSISTENTSTORE_LEGACYPATH="/tmp/persistent/rdkservicestore"
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers
Expand Down Expand Up @@ -445,6 +469,7 @@ jobs:
-DCMAKE_DISABLE_FIND_PACKAGE_RFC=ON
-DCMAKE_DISABLE_FIND_PACKAGE_RBus=ON
-DPLUGIN_FIRMWAREUPDATE=ON
-DPLUGIN_MAINTENANCEMANAGER=ON
-DUSE_THUNDER_R4=ON
-DPLUGIN_L2Tests=ON
-DRDK_SERVICE_L2_TEST=ON
Expand Down Expand Up @@ -559,8 +584,7 @@ jobs:
LD_LIBRARY_PATH=$GITHUB_WORKSPACE/install/usr/lib:$GITHUB_WORKSPACE/install/usr/lib/wpeframework/plugins:${LD_LIBRARY_PATH}
RdkServicesL2Test &&
cp -rf $(pwd)/rdkL2TestResults.json $GITHUB_WORKSPACE/rdkL2TestResultsWithoutValgrind.json &&
rm -rf $(pwd)/rdkL2TestResults.json

rm -rf $(pwd)/rdkL2TestResults.json
- name: Run unit tests with valgrind
if: ${{ !env.ACT }}
run: >
Expand Down
13 changes: 12 additions & 1 deletion MaintenanceManager/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set(MODULE_NAME ${NAMESPACE}${PLUGIN_NAME})
set(PLUGIN_MAINTENANCEMGR_STARTUPORDER "" CACHE STRING "To configure startup order of MaintenanceManager plugin")

find_package(${NAMESPACE}Plugins REQUIRED)

#add_executable(${MODULE_NAME}
add_library(${MODULE_NAME} SHARED
MaintenanceManager.cpp
Module.cpp)
Expand Down Expand Up @@ -61,6 +61,17 @@ if (ENABLE_JOURNAL_LOGGING)
target_link_libraries(${MODULE_NAME} PRIVATE systemd)
endif()

if (RDK_SERVICE_L2_TEST)
find_library(TESTMOCKLIB_LIBRARIES NAMES TestMocklib)
if (TESTMOCKLIB_LIBRARIES)
message ("linking mock libraries ${TESTMOCKLIB_LIBRARIES} library")
target_link_libraries(${MODULE_NAME} PRIVATE ${TESTMOCKLIB_LIBRARIES})
target_link_options(${MODULE_NAME} PRIVATE -Wl,--wrap,open -Wl,--wrap,mkdir -Wl,--wrap,mount -Wl,--wrap,umount -Wl,--wrap,ioctl -Wl,--wrap,statvfs -Wl,--wrap,statfs -Wl,--wrap,stat -Wl,--wrap,rmdir)
else (TESTMOCKLIB_LIBRARIES)
message ("Require ${TESTMOCKLIB_LIBRARIES} library")
endif (TESTMOCKLIB_LIBRARIES)
endif (RDK_SERVICES_L2_TEST)

# Add Task Timeout
if (TASK_TIMEOUT)
message(STATUS "Task Timeout set to ${TASK_TIMEOUT}")
Expand Down
2 changes: 2 additions & 0 deletions MaintenanceManager/MaintenanceManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ namespace WPEFramework
uint32_t startMaintenance(const JsonObject &parameters, JsonObject &response);
uint32_t stopMaintenance(const JsonObject &parameters, JsonObject &response);
uint32_t getMaintenanceMode(const JsonObject &parameters, JsonObject &response);
uint32_t isConnectedToInternet(const JsonObject& parameters, JsonObject& response);

}; /* end of MaintenanceManager service class */
} /* end of plugin */
} /* end of wpeframework */
Expand Down
15 changes: 15 additions & 0 deletions MaintenanceManager/Test/MockMaintenancemanager.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#pragma once
#include "../MaintenanceManager.h"

namespace WPEFramework {
namespace Plugin {

class MaintenanceManager : public PluginHost::IPlugin, public PluginHost::JSONRPC
{
public:
uint32_t MaintenanceManager::isConnectedToInternet(const JsonObject& parameters, JsonObject& response);

};

} // namespace Plugin
} // namespace WPEFramework
18 changes: 18 additions & 0 deletions MaintenanceManager/Test/Mockmaintenancemanager.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#pragma once
#include "../MaintenanceManager.h"

namespace WPEFramework {
namespace Plugin {

uint32_t MaintenanceManager::isConnectedToInternet(const JsonObject& parameters, JsonObject& response)
{
uint32_t rc = Core::ERROR_NONE;
MM_LOGINFO("Inside isConnectedTointernet");
//response["connectedToInternet"] = "true";
response["connectedToInternet"] = true;
response["success"] = "true";
return rc;
}

} // namespace Plugin
} // namespace WPEFramework
5 changes: 5 additions & 0 deletions Tests/L2Tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ if(PLUGIN_FIRMWAREUPDATE)
set(SRC_FILES ${SRC_FILES} tests/FirmwareUpdate_L2Test.cpp)
endif()

if(PLUGIN_MAINTENANCEMANAGER)
set(SRC_FILES ${SRC_FILES} tests/MaintenancemanagerL2.cpp)
endif()

add_library(${MODULE_NAME} SHARED ${SRC_FILES})

set_target_properties(${MODULE_NAME} PROPERTIES
Expand Down Expand Up @@ -65,6 +69,7 @@ target_include_directories(
../../../entservices-testframework/Tests/mocks/thunder
../../../entservices-testframework/Tests/mocks/devicesettings
../../../entservices-testframework/Tests/mocks/MockPlugin
../../../entservices-testframework/Tests/mocks/MockNetwork
../../../entservices-testframework/Tests/L2Tests/L2TestsPlugin
${CMAKE_INSTALL_PREFIX}/include
)
Expand Down
180 changes: 180 additions & 0 deletions Tests/L2Tests/tests/MaintenancemanagerL2.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "L2Tests.h"
#include "L2TestsMock.h"
#include <fstream>
#include <iostream>
#include <condition_variable>
#include "MockNetworkPlugin.h"
//#include "MockNetworkPlugin.cpp"

//gv
using ::testing::_;
using ::testing::Invoke;
using ::testing::Test;
using ::testing::StrEq;
using namespace WPEFramework;

/*
#define TEST_LOG(x, ...) fprintf( stderr, "\033[1;32m[%s:%d](%s)<PID:%d><TID:%d>" x "\n\033[0m", __FILE__, __LINE__, __FUNCTION__, getpid(), gettid(), ##__VA_ARGS__); fflush(stderr);

#define JSON_TIMEOUT (1000)
*/
#define MAINTENANCEMANAGER_CALLSIGN _T("org.rdk.MaintenanceManager")
#define MAINTENANCEMANAGERL2TEST_CALLSIGN _T("L2tests.1")



class MaintenanceManagerTest : public L2TestMocks {
protected:
virtual ~MaintenanceManagerTest() override;

public:
MaintenanceManagerTest();
};

MaintenanceManagerTest::MaintenanceManagerTest() : L2TestMocks() {
IARM_EventHandler_t controlEventHandler_;
uint32_t status = Core::ERROR_GENERAL;
status = ActivateService("org.rdk.MaintenanceManager");
EXPECT_EQ(Core::ERROR_NONE, status);
status =ActivateService("org.rdk.Network");
EXPECT_EQ(Core::ERROR_NONE, status);
/*
EXPECT_CALL(*p_iarmBusImplMock, IARM_Bus_RegisterEventHandler(StrEq(IARM_BUS_MAINTENANCE_MGR_NAME),IARM_BUS_MAINTENANCEMGR_EVENT_UPDATE, _))
.WillOnce(Invoke(
[&](const char* ownerName, IARM_EventId_t eventId, IARM_EventHandler_t handler) {
controlEventHandler_ = handler;
return IARM_RESULT_SUCCESS;
})); */


/* EXPECT_CALL(*p_iarmBusImplMock, IARM_Bus_RegisterEventHandler(StrEq(IARM_BUS_MAINTENANCE_MGR_NAME), IARM_BUS_DCM_NEW_START_TIME_EVENT, _))
.WillRepeatedly(Invoke(
[&](const char* ownerName, IARM_EventId_t eventId, IARM_EventHandler_t handler) {
EXPECT_TRUE(isValidCtrlmRcuIarmEvent(eventId));
controlEventHandler_ = handler;
return IARM_RESULT_SUCCESS;
})); */

// PluginHost::IShell::state state = PluginHost::IShell::state::ACTIVATED; //ghg
//ActivateService("org.rdk.Network");
//status = ActivateService("org.rdk.MockPlugin");
// EXPECT_EQ(Core::ERROR_NONE, status);


/*
status = ActivateService("org.rdk.Network");
EXPECT_EQ(Core::ERROR_NONE, status);

*/
/* status = ActivateService("org.rdk.Network");
EXPECT_EQ(Core::ERROR_NONE, status);
status = Core::ERROR_GENERAL;
status = ActivateService("org.rdk.AuthService");
EXPECT_EQ(Core::ERROR_NONE, status);
status = Core::ERROR_GENERAL; */

/*
status = Core::ERROR_GENERAL;
status = ActivateService("org.rdk.Network.1");
status = ActivateService("org.rdk.MaintenanceManager");
EXPECT_EQ(Core::ERROR_NONE, status);
JsonObject params, params1;
JsonObject results, results1;
params1["ipversion"] ="IPv4"; */

//status = InvokeServiceMethod("org.rdk.MaintenanceManager", "isConnectedToInternet", params1, results1);
//status = InvokeServiceMethod("org.rdk.Network", "isConnectedToInternet", params1, results1);
}

MaintenanceManagerTest::~MaintenanceManagerTest() {
uint32_t status = Core::ERROR_GENERAL;
status = DeactivateService("org.rdk.MaintenanceManager");
// EXPECT_EQ(Core::ERROR_NONE, status); //hbhj
}

//worked
// commented background

TEST_F(MaintenanceManagerTest, TestStartMaintenance)
{
JsonObject params, params1;
JsonObject results, results1;
params["maintenanceMode"] = "BACKGROUND";
params["optOut"] = "IGNORE_UPDATE";

//InvokeServiceMethod("org.rdk.MaintenanceManager", "isConnectedToInternet", params1, results1);

EXPECT_CALL(*p_iarmBusImplMock, IARM_Bus_BroadcastEvent)
.Times(::testing::AnyNumber())
.WillRepeatedly(
[](const char* ownerName, int eventId, void* arg, size_t argLen) {
return IARM_RESULT_SUCCESS;
});
sleep(30);
uint32_t status = InvokeServiceMethod("org.rdk.MaintenanceManager", "setMaintenanceMode", params, results);

params1["ipversion"] ="IPv4";
//InvokeServiceMethod("org.rdk.MaintenanceManager", "isConnectedToInternet", params1, results1);
//InvokeServiceMethod("org.rdk.Network.1", "isConnectedToInternet", params1, results1);
ASSERT_EQ(status, Core::ERROR_NONE);
ASSERT_EQ(results["success"].Boolean(), true);
DeactivateService("org.rdk.MaintenanceManager");


//status = DeactivateService("org.rdk.MaintenanceManager"); //jjj
// EXPECT_EQ(Core::ERROR_NONE, status);
}



TEST_F(MaintenanceManagerTest, TestStartMaintenance1)
{
JsonObject params;
JsonObject results;
params["reason"] = "scheduled";
sleep(10);
uint32_t status = InvokeServiceMethod("org.rdk.MaintenanceManager", "startMaintenance", params, results);

ASSERT_EQ(status, Core::ERROR_NONE);
ASSERT_EQ(results["success"].Boolean(), true);
}




/*
TEST_F(L2TestMocks, TestStartMaintenance)
{
JsonObject params;
JsonObject results;
params["reason"] = "scheduled";
uint32_t status = InvokeServiceMethod("MaintenanceManager.1", "startMaintenance", params, results);

ASSERT_EQ(status, Core::ERROR_NONE);
ASSERT_EQ(results["success"].Boolean(), true);
}
*/

/*
TEST_F(MaintenanceManagerTest, EmptyPartnerId) {
JsonObject params, result;
params["partnerId"] = "";
uint32_t status = InvokeServiceMethod("org.rdk.MaintenanceManager", "isConnectedToInternet", params, result);
EXPECT_NE(status, Core::ERROR_NONE); // Should fail or return error for empty partnerId
}
*/

//
/*
TEST_F(MaintenanceManagerTest, ValidDeviceInitializationContext) {

JsonObject contextData, fullResponse, result;
contextData["partnerId"] = "Sky";
contextData["regionalConfigService"] = "region.sky.com";
fullResponse["deviceInitializationContext"] = contextData;
uint32_t status = InvokeServiceMethod("org.rdk.MaintenanceManager", "setDeviceInitializationContext", fullResponse, result);
EXPECT_EQ(status, Core::ERROR_NONE); //hbbhkm
*/

Loading