File tree Expand file tree Collapse file tree 4 files changed +21
-9
lines changed
Expand file tree Collapse file tree 4 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 22
33### Changed
44- Updated Firebolt C++ Transport dependency to ` v1.1.3 `
5+ - In API Test App, URL can be specified on command line: ` --url URL `
56
67### Fixed
78- Prevented a crash when a mandatory field was missing from the JSON payload
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ params=
2424buildType=" Debug"
2525cleanFirst=false
2626
27- while [[ -n " ${1 :- } " ]]; do
27+ while [[ ! -z $1 ]]; do
2828 case $1 in
2929 --clean) cleanFirst=true;;
3030 --release) buildType=" Release" ;;
Original file line number Diff line number Diff line change @@ -17,31 +17,34 @@ The app binary name is:
1717## Command Line Usage
1818
1919``` bash
20- api-test-app [--auto] [--mock] [--platform] [--dbg] [--help]
20+ api-test-app [--auto] [--mock] [--platform] [--url < URL > ] [-- dbg] [--help]
2121```
2222
2323### Options
2424
25- - ` --auto `
25+ - ` --auto `
2626 Run all methods for all interfaces automatically.
2727
28- - ` --mock `
28+ - ` --mock `
2929 Use local mock endpoint: ` ws://127.0.0.1:9998/ ` .
3030
31- - ` --platform `
31+ - ` --platform `
3232 Use platform endpoint: ` ws://127.0.0.1:3474/ ` .
3333
34- - ` --dbg `
34+ - ` --url URL `
35+ Set url from command line
36+
37+ - ` --dbg `
3538 Enable debug logging.
3639
37- - ` --help `
40+ - ` --help `
3841 Print usage and exit.
3942
4043## Endpoint Selection Priority
4144
4245The app chooses the WebSocket endpoint in this order:
4346
44- 1 . ` --mock ` or ` --platform ` (if provided)
47+ 1 . ` --mock ` or ` --platform ` or ` --url URL ` (if provided)
45482 . ` FIREBOLT_ENDPOINT ` environment variable (if set)
46493 . Default fallback: ` ws://127.0.0.1:9998/ `
4750
Original file line number Diff line number Diff line change @@ -57,17 +57,25 @@ int main(int argc, char** argv)
5757 {
5858 url = " ws://127.0.0.1:3474/" ;
5959 }
60+ else if (std::string (argv[i]) == " --url" )
61+ {
62+ url = argv[++i];
63+ }
6064 else if (std::string (argv[i]) == " --dbg" )
6165 {
6266 logLevel = Firebolt::LogLevel::Debug;
6367 }
6468 else if (std::string (argv[i]) == " --help" )
6569 {
6670 /* clang-format off */
67- std::cout << " Usage: " << argv[0 ] << " [--auto] [--mock] [--platform] [--dbg] [--help]" << std::endl;
71+ std::cout << " SYNOPSIS" << std::endl;
72+ std::cout << " " << argv[0 ] << " [<options>]" << std::endl;
73+ std::cout << std::endl;
74+ std::cout << " OPTIONS" << std::endl;
6875 std::cout << " --auto Automatically run all methods for all interfaces without user input." << std::endl;
6976 std::cout << " --mock Connect to a local mock server instead of the default Firebolt Demo Service." << std::endl;
7077 std::cout << " --platform Connect to the platform's Firebolt service (default if available)." << std::endl;
78+ std::cout << " --url Specify a custom URL for the Firebolt service." << std::endl;
7179 std::cout << " --dbg Enable debug logging." << std::endl;
7280 std::cout << " --help Show this help message." << std::endl;
7381 /* clang-format on */
You can’t perform that action at this time.
0 commit comments