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

Add transactionId to validation method of StartTransactionConfirmation #91

Merged
merged 2 commits into from
Feb 13, 2019

Conversation

simonweiser
Copy link
Contributor

According to the OCPP 1.6 Standard the transactionId is a required field in the StartTransactionConfirmation. Some charging stations can not handle a missing transactionId. Therefore I added it to the validate() method and added some unit tests.

@coveralls
Copy link

coveralls commented Jan 11, 2019

Coverage Status

Coverage decreased (-0.03%) to 43.176% when pulling 588d6aa on simonweiser:master into 0f3e760 on ChargeTimeEU:master.

Copy link
Member

@TVolden TVolden left a comment

Choose a reason for hiding this comment

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

Looks good.

@TVolden
Copy link
Member

TVolden commented Jan 14, 2019

Hi @simonweiser

Thanks for you pull request. It's a big help, that people like you go through the code and correct stuff like this. I really appreciate it.

The integration tests fails, probably because the request/responses aren't set up to pass the new validation rule. Can I get you to look into it?

@codecov-io
Copy link

Codecov Report

Merging #91 into master will decrease coverage by 0.05%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master      #91      +/-   ##
============================================
- Coverage     41.93%   41.87%   -0.06%     
+ Complexity      877      876       -1     
============================================
  Files           214      214              
  Lines          4226     4227       +1     
  Branches        437      438       +1     
============================================
- Hits           1772     1770       -2     
- Misses         2349     2351       +2     
- Partials        105      106       +1

@simonweiser
Copy link
Contributor Author

Hi @TVolden

I fixed the integration tests and aligned it to the new validation rule.

@TVolden TVolden merged commit 2ee40bc into ChargeTimeEU:master Feb 13, 2019
@TVolden
Copy link
Member

TVolden commented Feb 13, 2019

Thanks Simon, I have merged it in.

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.

4 participants