-
Notifications
You must be signed in to change notification settings - Fork 38
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
PLAT-10758: Remove the @pytest.mark.skip and tests fixes #171
Conversation
Because we have a new spec version, all files are modified. We observe 2 main changes: - sku property is not required in pod_model>product - removal of the agent_api>SystemApi>__v2_health_check_get
- remove unused payloads - Fix return of SignalService > delete_signal method
- Fixed presence service returns - Removed object_from_json and object_from_json_relative_path from ressource utils - Fixed related tests
@@ -37,4 +37,4 @@ generate_files() { | |||
generate_files https://raw.githubusercontent.com/symphonyoss/symphony-api-spec/master/agent/agent-api-public.yaml agent | |||
generate_files https://raw.githubusercontent.com/symphonyoss/symphony-api-spec/master/authenticator/authenticator-api-public.yaml auth | |||
generate_files https://raw.githubusercontent.com/symphonyoss/symphony-api-spec/master/login/login-api-public.yaml login | |||
generate_files https://raw.githubusercontent.com/symphonyoss/symphony-api-spec/master/pod/pod-api-public-deprecated.yaml pod | |||
generate_files https://raw.githubusercontent.com/symphonyoss/symphony-api-spec/master/pod/pod-api-public.yaml pod |
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.
@symphony-youness Why did you changed it ? If I remember well, some endpoints were missing in the non deprecated pod api
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 thought it was a mistake 🤔
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 tried to recompile the java bdk with 20.12 specs and pod-api-public.yaml and it seems fine. So it is fine to use the pod-api-public.yaml
|
||
presence = await presence_service.get_presence() | ||
|
||
assert presence.category == "AVAILABLE" | ||
assert presence.userId == 14568529068038 | ||
assert presence.user_id == 14568529068038 |
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.
is it related to the change here?
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.
yes
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 didn't see catch the usage of this in the previous ticket.
The last commit removes all remaining usage of objects directly created from Json.
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.
LGTM
* PLAT-10652: regenerated all models to enable autocomplete (#162) * PLAT-10652: regenerated all model and api files to enable autocomplete * Created a script for api generation and documented it * Updated ApiClient to ignore unknown fields when deserializing json * PLAT-10555: Deserializing models in tests (#168) Update the tests to use the generated models instead of creating objects from a JSON file. * PLAT-10652: replaced wget with curl when downloading swagger specs in generate_client_api.sh (#169) * PLAT-10278: OBO certificate authentication (#173) * PLAT-10278: Implemented OBO cert authentication * Updated authentication documentation for OBO cert authentication * PLAT-10758: Remove the @pytest.mark.skip and tests fixes (#171) - modified the generation script to use the pod-api-public - Update generated models - Remove skip test annotations - Remove unused test return payloads - Fixed presence service / tests * PLAT-10564: Implemented UserJoinedRoom Acitivity (#167) * Implemented UserJoinedRoom Acitivity * updated path to config.yaml * user_joined_room.py added and registry updated * added user joined room activity tests Co-authored-by: Reed Feldman <rfeldman@bates.edu> * PLAT-10536: Extension App certificate authentication (#174) * PLAT-10536: Ext App Cert authentication * Updated documentation * Removed sphinx warnings + references in activity api doc * Updated poetry deps * PLAT-10706: Implemented @slash for slash commands (#175) * Added suppress_message() to OBOMessageService (#172) * Added suppress_message() to OBOMessageService * moved example of message_suppress() to examples/messages.py * removed message_suppression_api attribute from child class MessageService Co-authored-by: Reed Feldman <rfeldman@bates.edu> * PLAT-10645: Aligned and rearranged examples (#176) * Rearranged examples and made them use logging.conf * Kept most relevant methods in examples * Updated markdown documentation * Added requirements on minimum python version in docs * PLAT-10276: Bot certificate authentication (#177) * Fixed logging.config imports in examples (#178) * Bumped version to 2.0b2 Co-authored-by: symphony-youness <76746033+symphony-youness@users.noreply.github.com> Co-authored-by: Reed Feldman <reed.feldman@gmail.com> Co-authored-by: Reed Feldman <rfeldman@bates.edu>
* PLAT-10652: regenerated all models to enable autocomplete (finos#162) * PLAT-10652: regenerated all model and api files to enable autocomplete * Created a script for api generation and documented it * Updated ApiClient to ignore unknown fields when deserializing json * PLAT-10555: Deserializing models in tests (finos#168) Update the tests to use the generated models instead of creating objects from a JSON file. * PLAT-10652: replaced wget with curl when downloading swagger specs in generate_client_api.sh (finos#169) * PLAT-10278: OBO certificate authentication (finos#173) * PLAT-10278: Implemented OBO cert authentication * Updated authentication documentation for OBO cert authentication * PLAT-10758: Remove the @pytest.mark.skip and tests fixes (finos#171) - modified the generation script to use the pod-api-public - Update generated models - Remove skip test annotations - Remove unused test return payloads - Fixed presence service / tests * PLAT-10564: Implemented UserJoinedRoom Acitivity (finos#167) * Implemented UserJoinedRoom Acitivity * updated path to config.yaml * user_joined_room.py added and registry updated * added user joined room activity tests Co-authored-by: Reed Feldman <rfeldman@bates.edu> * PLAT-10536: Extension App certificate authentication (finos#174) * PLAT-10536: Ext App Cert authentication * Updated documentation * Removed sphinx warnings + references in activity api doc * Updated poetry deps * PLAT-10706: Implemented @slash for slash commands (finos#175) * Added suppress_message() to OBOMessageService (finos#172) * Added suppress_message() to OBOMessageService * moved example of message_suppress() to examples/messages.py * removed message_suppression_api attribute from child class MessageService Co-authored-by: Reed Feldman <rfeldman@bates.edu> * PLAT-10645: Aligned and rearranged examples (finos#176) * Rearranged examples and made them use logging.conf * Kept most relevant methods in examples * Updated markdown documentation * Added requirements on minimum python version in docs * PLAT-10276: Bot certificate authentication (finos#177) * Fixed logging.config imports in examples (finos#178) * Bumped version to 2.0b2 Co-authored-by: symphony-youness <76746033+symphony-youness@users.noreply.github.com> Co-authored-by: Reed Feldman <reed.feldman@gmail.com> Co-authored-by: Reed Feldman <rfeldman@bates.edu>
Ticket
PLAT-10758
Description
Updated the generated models to take make the a pod_model>Product> sku property, optional
Removed the skip annotation from tests
Minor fixes in the PresenceService and related tests
Fixed forgotten object deserialization in the PresenceService tests
Removed the functions that deserializes JSON to python object in the resource utils
Dependencies
List the other pull requests that should be merged before/along this one.
Checklist