Skip to content

Commit 106fbf3

Browse files
authored
Merge pull request #43 from rdkcentral/topic/api-test-app-update
2 parents 897ccc8 + 4409b80 commit 106fbf3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1006
-1661
lines changed

.github/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
FROM ubuntu:24.04
32

43
ENV DEBIAN_FRONTEND=noninteractive
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
# vim: ts=4
33

4-
# Copyright 2025 Comcast Cable Communications Management, LLC
4+
# Copyright 2026 Comcast Cable Communications Management, LLC
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -57,7 +57,7 @@ done
5757
[[ -e "$specOpenRpc" ]] || die "OpenRPC spec '$specOpenRpc' not found"
5858
[[ -e "$specAppOpenRpc" ]] || die "OpenRPC App spec '$specAppOpenRpc' not found"
5959
[[ -e "$mockConfig" ]] || die "Config '$mockConfig' not found"
60-
[[ -e "$testExe" ]] || die "Executable for cpp_test '$testExe' not found"
60+
[[ -e "$testExe" ]] || die "Executable '$testExe' not found"
6161

6262
cfgFile=$mockPath/server/src/.mf.config.json
6363

@@ -93,13 +93,10 @@ while ! nc -z localhost $mockPort >/dev/null 2>&1; do
9393
sleep 1
9494
done
9595

96-
echo "Starting cpp_test with -mock and -auto flags"
96+
echo "Starting '$(basename "$testExe") --mock --auto'"
9797
cd "$(dirname "$testExe")"
98-
99-
# Capture exit code without triggering set -e
10098
set +e
101-
"./$(basename "$testExe")" -mock -auto
99+
"./$(basename "$testExe")" --mock --auto
102100
exitCode=$?
103-
set -e
104101

105102
exit $exitCode

.github/workflows/ci.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ jobs:
269269
--app-openrpc /workspace/docs/openrpc/the-spec/firebolt-app-open-rpc.json \
270270
--test-exe /workspace/build/test/ctApp
271271
272-
cpp_demo_tests:
272+
api_test_app:
273273
permissions:
274274
contents: read
275275
packages: read
@@ -292,7 +292,7 @@ jobs:
292292
name: build-dir
293293
path: ${{ github.workspace }}/build
294294

295-
- name: Build api_test_app standalone
295+
- name: Build api-test-app standalone
296296
run: |
297297
docker run --rm --user "$(id -u):$(id -g)" -v ${{ github.workspace }}:/workspace ${{ needs.build_docker.outputs.image_tag }} \
298298
bash -c " \
@@ -314,16 +314,13 @@ jobs:
314314
path: ${{ env.MOCK_PATH }}
315315
key: ${{ runner.os }}-mock-${{ steps.setup-mock.outputs.deps_cache_key }}
316316

317-
- name: Run Demo with mock server
317+
- name: Run api-test-app with mock server
318318
run: |
319-
chmod +x ${{ github.workspace }}/test/api_test_app/build/api_test_app
319+
chmod +x ${{ github.workspace }}/test/api_test_app/build/api-test-app
320320
docker run --rm --user "$(id -u):$(id -g)" -v ${{ github.workspace }}:/workspace -v ${{ env.MOCK_PATH }}:/mock ${{ needs.build_docker.outputs.image_tag }} \
321-
./.github/scripts/run-cpp-test.sh \
321+
./.github/scripts/run-api-test-app.sh \
322322
--mock /mock \
323323
--config /workspace/.github/mock-firebolt/config.json \
324324
--openrpc /workspace/docs/openrpc/the-spec/firebolt-open-rpc.json \
325325
--app-openrpc /workspace/docs/openrpc/the-spec/firebolt-app-open-rpc.json \
326-
--test-exe /workspace/test/api_test_app/build/api_test_app
327-
328-
# Removed artifact upload step for api_test_app binary as per PR feedback
329-
326+
--test-exe /workspace/test/api_test_app/build/api-test-app

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,3 @@ endif()
101101
if (ENABLE_TESTS)
102102
add_subdirectory(test)
103103
endif()
104-

demo/CMakeLists.txt

Lines changed: 0 additions & 71 deletions
This file was deleted.

demo/FireboltDemoService.cpp

Lines changed: 0 additions & 216 deletions
This file was deleted.

0 commit comments

Comments
 (0)