-
Notifications
You must be signed in to change notification settings - Fork 66
Add 1.6 SmartChargingHandler Validate and Add Profile Tests #440
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
Add 1.6 SmartChargingHandler Validate and Add Profile Tests #440
Conversation
c78340e to
0c7c863
Compare
|
@shankari please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor changes, once they are done, I am happy to pass it over to the community
44c0c11 to
692a705
Compare
|
@folkengine this is also failing static code analysis now |
@shankari Yeah, I've been trying to figure out how to turn off the lint, since it's actually wrong. Those fields are a part of the test fixture. Removing them makes the files not compile. Going to need to figure out how to refactor them without copying them over and over. Alas, their linter doesn't let you disable a lint for a single line. |
bda9130 to
921899e
Compare
|
@shankari unfortunately, the refactoring you requested in moving the GTest test fixture createde Codacy linting issues, saying that class fields weren't being used, even though they were. Could not find a way in their docs to ignore specific lints on certain lines unlike other linters. It seems that the tool has bugs dealing with Google Test. I have moved the fixture back to being inside the test to get past the issue. We can escalate this issue, but that will slow us down. |
45a4ca2 to
f74628b
Compare
|
@shankari is this 👍? |
|
@folkengine can you please resolve the conflicts that occured up after merging: #447 |
|
@folkengine you need to make sure that all the commits are signed |
shankari
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am approving pending addressing the DCO
Signed-off-by: Christoph <367712+folkengine@users.noreply.github.com>
8bcbc68 to
7529b37
Compare
Fixed. Thanks @shankari ! |
@Pietfried 'Tis done. Thanks! |
Adds unit tests for
lib/ocpp/v16/smart_charging.cppSmartChargingHandler::validate_profilemethod as well as tests for theadd_charge_point_max_profile,add_tx_default_profileandadd_tx_profilemethods.Validate Profile
SmartChargingHandler::validate_profilecovers the following positive (returns true) and negative (returns false) boundary conditions:Positive Boundary Conditions:
Negative Boundary Conditions:
Add Profile Tests
Steps to run: