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

fix: authorization state enum #52

Merged
merged 11 commits into from
Jun 1, 2022

Conversation

sabrinagordon-believ
Copy link
Contributor

This PR replaces the true/false return value for is_authorized with Accepted/Rejected/Ongoing, since an AuthorizationReq can be retried to deal with the time limit imposed by ISO 15118-2.

This also adds some unit tests and replaces a repeatedly-used test value with a constant.

Copy link
Contributor

@shalinnijel2 shalinnijel2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of minor changes - else LGTM.

iso15118/secc/controller/interface.py Outdated Show resolved Hide resolved
iso15118/secc/states/iso15118_2_states.py Show resolved Hide resolved
iso15118/secc/states/iso15118_2_states.py Show resolved Hide resolved
tests/secc/states/test_iso15118_2_states.py Outdated Show resolved Hide resolved
tests/secc/states/test_iso15118_2_states.py Outdated Show resolved Hide resolved
@sabrinagordon-believ sabrinagordon-believ force-pushed the fix/authorization-state-enum/1668 branch from b887106 to 6660d67 Compare May 27, 2022 15:26
@sabrinagordon-believ sabrinagordon-believ force-pushed the fix/authorization-state-enum/1668 branch from dd53698 to 3f60b1e Compare May 30, 2022 09:23
iso15118/secc/controller/interface.py Outdated Show resolved Hide resolved
@sabrinagordon-believ sabrinagordon-believ merged commit 89d3332 into master Jun 1, 2022
@tropxy tropxy mentioned this pull request Aug 17, 2022
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.

3 participants