Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 2 additions & 6 deletions .github/workflows/L2-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,11 @@ jobs:

- name: Start mock-xconf service
run: |
docker run -d --name mockxconf -p 50050:50050 -p 50051:50051 -p 50052:50052 -v ${{ github.workspace }}:/mnt/L2_CONTAINER_SHARED_VOLUME ghcr.io/rdkcentral/docker-device-mgt-service-test/mockxconf:latest
docker run -d --name mockxconf -p 50050:50050 -p 50051:50051 -p 50052:50052 -e ENABLE_MTLS=true -v ${{ github.workspace }}:/mnt/L2_CONTAINER_SHARED_VOLUME ghcr.io/rdkcentral/docker-device-mgt-service-test/mockxconf:latest

- name: Copy xconf-dcm-response2 json to mockxconf service
run: |
docker cp ${{ github.workspace }}/test/test-artifacts/mockxconf/xconf-dcm-response2.json mockxconf:/etc/xconf/xconf-dcm-response2.json

- name: Start l2-container service
run: |
docker run -d --name native-platform --link mockxconf -v ${{ github.workspace }}:/mnt/L2_CONTAINER_SHARED_VOLUME ghcr.io/rdkcentral/docker-device-mgt-service-test/native-platform:latest
docker run -d --name native-platform --link mockxconf -e ENABLE_MTLS=true -v ${{ github.workspace }}:/mnt/L2_CONTAINER_SHARED_VOLUME ghcr.io/rdkcentral/docker-device-mgt-service-test/native-platform:latest

- name: Enter Inside Platform native container and run L2 Test
run: |
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,23 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [1.8.1](https://github.com/rdkcentral/telemetry/compare/1.8.0...1.8.1)

- RDK-60476: Reduce default connection pool size to 1 [`#260`](https://github.com/rdkcentral/telemetry/pull/260)
- RDK-60805: Adding L1 unit test cases for reportprofiles [`#265`](https://github.com/rdkcentral/telemetry/pull/265)

#### [1.8.0](https://github.com/rdkcentral/telemetry/compare/1.7.4...1.8.0)

> 6 February 2026

- RDK-60312: Remove fork calls for curl transactions [`#242`](https://github.com/rdkcentral/telemetry/pull/242)
- RDK-60533: L1 unit test cases - protocol/rbusMethod and http [`#241`](https://github.com/rdkcentral/telemetry/pull/241)
- RDKB-63348 : Fix duplicate close calls on file descriptor [`#251`](https://github.com/rdkcentral/telemetry/pull/251)
- RDK-60519: Adding L1 unit test cases - dcautil & ccspinterface [`#240`](https://github.com/rdkcentral/telemetry/pull/240)
- RDK-60519: Adding L1 unit test cases for scheduler [`#238`](https://github.com/rdkcentral/telemetry/pull/238)
- RDK-60304: Adding L1 unit test cases to improve code coverage [`#237`](https://github.com/rdkcentral/telemetry/pull/237)
- RDK-60303: Adding L1 unit test cases to improve code coverage for protocol/http [`#231`](https://github.com/rdkcentral/telemetry/pull/231)
- Changelog updates for 1.8.0 release [`8440d51`](https://github.com/rdkcentral/telemetry/commit/8440d513de7bdfda8331e44099f22b82c8cf669e)

#### [1.7.4](https://github.com/rdkcentral/telemetry/compare/1.7.3...1.7.4)

Expand Down
4 changes: 2 additions & 2 deletions build_inside_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ autoreconf --install
# FLags to print compiler warnings
DEBUG_CFLAGS="-Wall -Werror -Wextra"

export CFLAGS=" ${DEBUG_CFLAGS} -I${INSTALL_DIR}/include/rtmessage -I${INSTALL_DIR}/include/msgpack -I${INSTALL_DIR}/include/rbus -I${INSTALL_DIR}/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include -DFEATURE_SUPPORT_WEBCONFIG -DRDK_LOGGER -DPERSIST_LOG_MON_REF -DDCMAGENT"
export CFLAGS=" ${DEBUG_CFLAGS} -I${INSTALL_DIR}/include/rtmessage -I${INSTALL_DIR}/include/msgpack -I${INSTALL_DIR}/include/rbus -I${INSTALL_DIR}/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include -DFEATURE_SUPPORT_WEBCONFIG -DRDK_LOGGER -DPERSIST_LOG_MON_REF -DDCMAGENT -DENABLE_MTLS"

export LDFLAGS="-L/usr/lib/x86_64-linux-gnu -lglib-2.0"

./configure --prefix=${INSTALL_DIR} && make && make install
./configure --prefix=${INSTALL_DIR} --enable-rdkcertselector=yes && make && make install
5 changes: 5 additions & 0 deletions source/bulkdata/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@

#define MAX_LEN 256

#ifdef GTEST_ENABLE
#define sendReportOverHTTP __wrap_sendReportOverHTTP
#define sendCachedReportsOverHTTP __wrap_sendCachedReportsOverHTTP
#endif

static bool initialized = false;
static Vector *profileList;
static pthread_mutex_t plMutex;
Expand Down
7 changes: 6 additions & 1 deletion source/bulkdata/profilexconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -986,4 +986,9 @@ T2ERROR ProfileXConf_storeMarkerEvent(T2Event *eventInfo)
T2Debug("%s --out\n", __FUNCTION__);
return T2ERROR_SUCCESS;
}

#ifdef GTEST_ENABLE
void test_set_reportThreadExits(bool value)
{
reportThreadExits = value;
}
#endif
21 changes: 19 additions & 2 deletions source/bulkdata/reportprofiles.c
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@ void ReportProfiles_ProcessReportProfilesBlob(cJSON *profiles_root, bool rprofil
{
getMarkerCompRbusSub(false);
}

// Populate profile hash map for current configuration
for( profileIndex = 0; profileIndex < profiles_count; profileIndex++ )
{
Expand Down Expand Up @@ -976,7 +977,6 @@ void ReportProfiles_ProcessReportProfilesBlob(cJSON *profiles_root, bool rprofil
T2Error("Failed to remove previous report profile from the disk\n");
}
}

if(isRbusEnabled())
{
unregisterDEforCompEventList();
Expand Down Expand Up @@ -1064,7 +1064,6 @@ void ReportProfiles_ProcessReportProfilesBlob(cJSON *profiles_root, bool rprofil
}
}
}

if (rm_flag)
{
removeProfileFromDisk(DirPath, MSGPACK_REPORTPROFILES_PERSISTENT_FILE);
Expand Down Expand Up @@ -1515,3 +1514,21 @@ bool isMtlsEnabled(void)
#endif
#endif
}

#ifdef GTEST_ENABLE
typedef void* (*reportOnDemandFunc)(void*);
reportOnDemandFunc reportOnDemandFuncCallback(void)
{
return reportOnDemand;
}
typedef void (*freeProfilesHashMapFunc)(void *);
freeProfilesHashMapFunc freeProfilesHashMapFuncCallback(void)
{
return freeProfilesHashMap;
}
typedef void (*freeReportProfileHashMapFunc)(void *);
freeReportProfileHashMapFunc freeReportProfileHashMapFuncCallback(void)
{
return freeReportProfileHashMap;
}
#endif
2 changes: 2 additions & 0 deletions source/ccspinterface/rbusInterface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1954,9 +1954,11 @@ bool rbusCheckMethodExists(const char* rbusMethodName)
return true ;
}
#ifdef GTEST_ENABLE
#ifdef DCMAGENT
typedef void (*rbusReloadConfFunc)(rbusHandle_t, rbusEvent_t const *, rbusEventSubscription_t *);
rbusReloadConfFunc rbusReloadConfFuncCallback(void)
{
return rbusReloadConf;
}
#endif
#endif
Loading