Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split #3054: Update of Ecu, EcuResponse, EcuSession and EcuAnsweringMachine. Including typing #3099

Merged
merged 15 commits into from
Mar 8, 2021

Conversation

polybassa
Copy link
Contributor

@polybassa polybassa commented Feb 16, 2021

This PR uses the new EcuState for further utility objects. This includes refactoring of multiple unit tests, which are based on a AnsweringMachine.

Furthermore, this PR introduces decorators to dynamically extend the protocols UDS and GMLAN with ecu_state and logging functionalities through separated files. This aims to keep the basic protocol description clean, but allows to extend the functionally for certain use cases.

@codecov
Copy link

codecov bot commented Feb 16, 2021

Codecov Report

Merging #3099 (4d9f0e0) into master (086fb5e) will increase coverage by 0.03%.
The diff coverage is 83.09%.

@@            Coverage Diff             @@
##           master    #3099      +/-   ##
==========================================
+ Coverage   85.26%   85.29%   +0.03%     
==========================================
  Files         256      260       +4     
  Lines       54336    54394      +58     
==========================================
+ Hits        46328    46398      +70     
+ Misses       8008     7996      -12     
Impacted Files Coverage Δ
scapy/contrib/automotive/gm/gmlan.py 97.54% <ø> (+5.21%) ⬆️
scapy/contrib/isotp.py 69.64% <0.00%> (-0.06%) ⬇️
scapy/contrib/automotive/uds_logging.py 71.56% <71.56%> (ø)
scapy/contrib/automotive/gm/gmlan_logging.py 73.33% <73.33%> (ø)
scapy/contrib/automotive/uds_ecu_states.py 88.23% <88.23%> (ø)
scapy/contrib/automotive/ecu.py 93.12% <93.61%> (+1.02%) ⬆️
scapy/contrib/automotive/gm/gmlan_ecu_states.py 95.00% <95.00%> (ø)
scapy/compat.py 95.13% <100.00%> (+0.03%) ⬆️
scapy/contrib/automotive/uds.py 97.07% <100.00%> (+5.98%) ⬆️
scapy/plist.py 86.31% <0.00%> (ø)
... and 9 more

@polybassa
Copy link
Contributor Author

This PR is ready for review.

@polybassa
Copy link
Contributor Author

@gpotter2 If you find some time, could you please review this PR

@polybassa
Copy link
Contributor Author

Sorry for bugging you again, but would it be possible to get this PR merged, so I can continue with the split of #3054

@gpotter2 gpotter2 merged commit 6231668 into secdev:master Mar 8, 2021
bzalkilani pushed a commit to bzalkilani/scapy that referenced this pull request Jun 12, 2022
…weringMachine. Including typing (secdev#3099)

* Split secdev#3054: Update of Ecu, EcuResponse, EcuSession and EcuAnsweringMachine. Including typing

* Update documentation

* fix obdscanner tests

* Update documentation

* update test

* update test and docs

* make api-doc more nice

* update codespell

* major cleanup

* fix code spell

* fix docs build

* apply feedback

* cleanup

* fix typing

* fix typing
bzalkilani pushed a commit to bzalkilani/scapy that referenced this pull request Jun 14, 2022
…weringMachine. Including typing (secdev#3099)

* Split secdev#3054: Update of Ecu, EcuResponse, EcuSession and EcuAnsweringMachine. Including typing

* Update documentation

* fix obdscanner tests

* Update documentation

* update test

* update test and docs

* make api-doc more nice

* update codespell

* major cleanup

* fix code spell

* fix docs build

* apply feedback

* cleanup

* fix typing

* fix typing
@polybassa polybassa deleted the EcuRefactorings branch July 27, 2022 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants