[POC] feat: add proxy-main binary, FLXC1000 test client#14
Open
arvindr19 wants to merge 44 commits into
Open
Conversation
…nd workspace setup Signed-off-by: Arvind Rathod <Arvind.RA.Rathod@bti.bmwgroup.com>
Signed-off-by: Arvind Rathod <Arvind.RA.Rathod@bti.bmwgroup.com>
Signed-off-by: Arvind Rathod <Arvind.RA.Rathod@bti.bmwgroup.com>
Signed-off-by: Arvind Rathod <Arvind.RA.Rathod@bti.bmwgroup.com>
a2e6777 to
fcad9fb
Compare
Signed-off-by: Arvind Rathod <Arvind.RA.Rathod@bti.bmwgroup.com>
Signed-off-by: Arvind Rathod <Arvind.RA.Rathod@bti.bmwgroup.com>
Signed-off-by: Arvind Rathod <Arvind.RA.Rathod@bti.bmwgroup.com>
Open
4 tasks
fcad9fb to
ea08b1c
Compare
Signed-off-by: Arvind Rathod <Arvind.RA.Rathod@bti.bmwgroup.com>
ea08b1c to
befe769
Compare
Signed-off-by: Arvind Rathod <Arvind.RA.Rathod@bti.bmwgroup.com>
Signed-off-by: Arvind Rathod <Arvind.RA.Rathod@bti.bmwgroup.com>
Signed-off-by: Arvind Rathod <Arvind.RA.Rathod@bti.bmwgroup.com>
Signed-off-by: Arvind Rathod <Arvind.RA.Rathod@bti.bmwgroup.com>
- Add UdsResponse<'a> wrapper with sid()/is_negative()/nrc() accessors
- is_negative_response/get_nrc delegate to UdsResponse — no more raw byte indexing
- Add ResolvedService { name, params } struct; replace (String, Map) tuple in
resolve_read_service / resolve_write_service return types
- Split resolve_service_did into build_did_candidates + match_candidate_did
- or_else + match pattern in activate_base_variant (replaces nested if/else)
- Add RwLock doc comment explaining write-reservation intent
- Remove redundant HashSet alongside Vec in candidate dedup
- Add #[cfg(test)] modules to resolve.rs, metadata.rs, response.rs
(6 + 9 + 12 new unit tests; 63 total in proxy-core)
…BI only) Signed-off-by: Arvind Rathod <Arvind.RA.Rathod@bti.bmwgroup.com>
Signed-off-by: Arvind Rathod <Arvind.RA.Rathod@bti.bmwgroup.com>
Signed-off-by: Arvind Rathod <Arvind.RA.Rathod@bti.bmwgroup.com>
Signed-off-by: Arvind Rathod <Arvind.RA.Rathod@bti.bmwgroup.com>
…test client - proxy-doip/handler.rs: InvalidDid -> NRC 0x31 (requestOutOfRange); SOVD/other errors -> NRC 0x22 (conditionsNotCorrect) to distinguish 'DID not in MDD' from 'service resolved but backend unreachable' - test_client_flxc1000: accept NRC 0x22 as pass (service routing validated, no SOVD server running in CI) - testcontainer/mdd: add FLXCNG1000.mdd (copied from companion workspace)
…ound The regression was caused by running without a config file, so mock_gateway defaulted to false and all SOVD calls failed with HTTP errors. - proxy-main/src/main.rs: change default config path from 'config.toml' to 'config/config.toml' to match actual file location - proxy-doip/handler.rs: revert NRC 0x22 workaround (was masking the real bug) - test_client_flxc1000: revert NRC 0x22 acceptance (now gets real 0x62/0x6E responses)
39e2a95 to
d6ab575
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the
proxy-mainbinary entry point, FLXC1000 integration test client, and updated README with architecture docs and usage instructions.Depends on: PR #11 (proxy-core), PR #12 (proxy-sovd), PR #13 (proxy-doip)
Changes
main.rs: CLI (clap), config loading + validation, MDD loading,ServiceResolver+SovdDiagHandler+DoIpServerwiring, graceful Ctrl+C shutdowntest_client_flxc1000.rs: UDS test client -- RDBI (VIN 0xF190, ActiveSession 0xF186, Identification 0xF100) . WBDI (VIN 0xF190), some test for NRCUsage
cargo run --release -- --mdd-file FLXC1000.mdd # In another terminal: cargo run --release --example test_client_flxc1000Checklist
Related
Notes for Reviewers
Since this part of stacked PR, you could see changes from #11, #12 & #13 , until it gets merged
Review required for proxy-main crate