Skip to content

[uss_qualifier] MockUssClient and test steps with FlightPlannerClient#347

Merged
BenjaminPelletier merged 19 commits intointeruss:mainfrom
punamverma:mock_uss_with_fp_client
Nov 20, 2023
Merged

[uss_qualifier] MockUssClient and test steps with FlightPlannerClient#347
BenjaminPelletier merged 19 commits intointeruss:mainfrom
punamverma:mock_uss_with_fp_client

Conversation

@punamverma
Copy link
Copy Markdown
Contributor

  1. Added V1FlightPlannerClient to MockUssClient, as we ll use MockUssClient for planning flights in test scenarios.
  2. Added tests steps that use V1FlightPlannerClient for planning flights.

@punamverma punamverma changed the title MockUssClient and test steps with FlightPlannerClient [uss_qualifier] MockUssClient and test steps with FlightPlannerClient Nov 16, 2023
@punamverma punamverma marked this pull request as ready for review November 16, 2023 16:52
@punamverma
Copy link
Copy Markdown
Contributor Author

@BenjaminPelletier PR is ready for review. Thanks

Copy link
Copy Markdown
Member

@BenjaminPelletier BenjaminPelletier left a comment

Choose a reason for hiding this comment

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

In addition to the comments below, we want to make sure the code works. Since these steps are being developed for a scenario that is already documented and already has an empty implementation, it should only take a few lines to call the new steps (plan_flight and cleanup_flights_fp_client) from that scenario so that nearly all of the code in the PR is actually exercised by the CI. We don't need to implement all steps of that scenario in this PR, but calling each of these two new steps once would provide nearly full test coverage of the changes in this PR.

Comment thread monitoring/monitorlib/clients/flight_planning/client_v1.py Outdated
Comment thread monitoring/monitorlib/clients/flight_planning/client_v1.py Outdated
Comment thread monitoring/monitorlib/clients/flight_planning/client_v1.py Outdated
Comment thread monitoring/uss_qualifier/resources/interuss/mock_uss/client.py Outdated
Comment thread monitoring/uss_qualifier/resources/interuss/mock_uss/client.py
Comment thread monitoring/uss_qualifier/scenarios/flight_planning/test_steps.py
Comment thread monitoring/uss_qualifier/scenarios/flight_planning/test_steps.py
Comment thread monitoring/uss_qualifier/scenarios/flight_planning/test_steps.py Outdated
Comment thread monitoring/uss_qualifier/scenarios/flight_planning/test_steps.py Outdated
Comment thread monitoring/uss_qualifier/scenarios/flight_planning/test_steps.py
@punamverma
Copy link
Copy Markdown
Contributor Author

@BenjaminPelletier Fixed the review comments. Added some steps in scenario to use the new test_steps methods. Could you please check. Thanks.

@punamverma
Copy link
Copy Markdown
Contributor Author

@BenjaminPelletier @barroco @mickmis PR is ready for your review. Thanks

Comment thread monitoring/monitorlib/clients/flight_planning/client.py Outdated
Comment thread monitoring/monitorlib/clients/flight_planning/client_scd.py Outdated
Comment thread monitoring/monitorlib/clients/flight_planning/client_scd.py Outdated
Comment thread monitoring/monitorlib/clients/flight_planning/client.py Outdated
Comment thread monitoring/monitorlib/clients/flight_planning/client.py Outdated
Comment thread monitoring/uss_qualifier/scenarios/flight_planning/test_steps.py Outdated
Comment thread monitoring/uss_qualifier/scenarios/flight_planning/test_steps.py Outdated
Comment thread monitoring/uss_qualifier/scenarios/flight_planning/test_steps.py Outdated
Comment thread monitoring/uss_qualifier/scenarios/flight_planning/test_steps.py Outdated
@punamverma
Copy link
Copy Markdown
Contributor Author

@BenjaminPelletier @barroco @mickmis Fixed PR comments. Ready for another review.

@BenjaminPelletier BenjaminPelletier merged commit 58fdbcb into interuss:main Nov 20, 2023
github-actions Bot added a commit that referenced this pull request Nov 20, 2023
…#347)

* Added V1FlightPlannerClient to MockUssClient; added test steps to plan flight using FlightPlannerClient

* Removing unwanted port mapping

* Removing unwanted import

* Update monitoring/uss_qualifier/resources/interuss/mock_uss/client.py

Co-authored-by: Benjamin Pelletier <BenjaminPelletier@users.noreply.github.com>

* Fixing per PR review comments

* Remove an unwanted import

* Adding missing code

* Removing code causing failure

* Fix bug

* Fix format

* Fix bug

* Update monitoring/uss_qualifier/scenarios/flight_planning/test_steps.py

Co-authored-by: Benjamin Pelletier <BenjaminPelletier@users.noreply.github.com>

* Fixing PR review comments

* Removing if condition not required

* Fix per PR review

* Nit fix per review

---------

Co-authored-by: Benjamin Pelletier <BenjaminPelletier@users.noreply.github.com> 58fdbcb
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.

2 participants