-
Notifications
You must be signed in to change notification settings - Fork 57
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
Smart Charging: Expand add profile capabilities #682
Conversation
@shankari this is ready for your 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.
This is a fairly simple change and my comments are primarily focused on improved documentation, so I am approving this. Please do address my comments before sending it off to the community for merging. Documentation clarity is just as important, particularly in open source projects, where contributors can join and leave, as code.
dbe9afb
to
5d7919c
Compare
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.
One more clarifying question....
| K01.FR.14 | ✅ | | | ||
| K01.FR.15 | ✅ | | |
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.
These are not addressed in this PR, right?
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.
These were addressed with the check here
5d7919c
to
18f3f28
Compare
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 have some comments/questions. Not sure if there are any actual changes needed but would like some answers at least before approving.
TEST_F(ChargepointTestFixtureV201, | ||
K01FR05_IfProfileWithSameIdExistsAndIsChargingStationExternalContraints_ThenProfileIsAppended) { | ||
|
||
auto profile1 = | ||
create_charging_profile(DEFAULT_PROFILE_ID, ChargingProfilePurposeEnum::ChargingStationExternalConstraints, | ||
create_charge_schedule(ChargingRateUnitEnum::A), uuid(), | ||
ChargingProfileKindEnum::Absolute, DEFAULT_STACK_LEVEL); | ||
auto profile2 = create_charging_profile(DEFAULT_PROFILE_ID, ChargingProfilePurposeEnum::TxProfile, | ||
create_charge_schedule(ChargingRateUnitEnum::A), uuid(), | ||
ChargingProfileKindEnum::Absolute, DEFAULT_STACK_LEVEL); | ||
|
||
auto sut1 = handler.add_profile(DEFAULT_EVSE_ID, profile1); | ||
auto sut2 = handler.add_profile(DEFAULT_EVSE_ID, profile2); | ||
|
||
auto profiles = handler.get_profiles(); | ||
|
||
EXPECT_THAT(sut1.status, testing::Eq(ChargingProfileStatusEnum::Accepted)); | ||
EXPECT_THAT(sut2.status, testing::Eq(ChargingProfileStatusEnum::Accepted)); | ||
EXPECT_THAT(profiles, testing::Contains(profile1)); | ||
EXPECT_THAT(profiles, testing::Contains(profile2)); | ||
} |
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.
Based on the need for profile_ids to be unique. This test seems to be validating an invalid case.
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.
With the latest update we've removed this test.
Signed-off-by: Gianfranco Berardi <[email protected]>
Signed-off-by: Gianfranco Berardi <[email protected]>
Signed-off-by: Gianfranco Berardi <[email protected]>
Signed-off-by: Christopher Davis <[email protected]>
Signed-off-by: Gianfranco Berardi <[email protected]>
Signed-off-by: Gianfranco Berardi <[email protected]>
Signed-off-by: Gianfranco Berardi <[email protected]>
Signed-off-by: Gianfranco Berardi <[email protected]>
Signed-off-by: Gianfranco Berardi <[email protected]>
Signed-off-by: Gianfranco Berardi <[email protected]>
Signed-off-by: Gianfranco Berardi <[email protected]>
Signed-off-by: Gianfranco Berardi <[email protected]>
Signed-off-by: Gianfranco Berardi <[email protected]>
Signed-off-by: Gianfranco Berardi <[email protected]>
Signed-off-by: Christopher Davis <[email protected]>
Signed-off-by: Coury Richards <[email protected]>
Signed-off-by: Coury Richards <[email protected]>
18f3f28
to
8c5aa0f
Compare
Clarify where the existing profiles in the FR05 tests are. Signed-off-by: Christopher Davis <[email protected]>
Signed-off-by: Christopher Davis <[email protected]>
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.
Except for 2 small comments this looks good. The comments are relatively minor and I can accept to merge this as is and fix those later if you want to.
We don't need a try-catch actually Signed-off-by: Christopher Davis <[email protected]>
Signed-off-by: Christopher Davis <[email protected]>
Signed-off-by: Coury Richards <[email protected]>
4b49b17
to
570bd0c
Compare
Describe your changes
Issue ticket number and link
Checklist before requesting a review