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 missing parameter for /info/robot-settings endpoint #496

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/isar/apis/schedule/scheduling_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,9 @@ def get_info(self):
robot_package=settings.ROBOT_PACKAGE,
isar_id=settings.ISAR_ID,
robot_name=settings.ROBOT_NAME,
robot_map_name=settings.DEFAULT_MAP,
robot_capabilities=robot_settings.CAPABILITIES,
robot_map_name=settings.DEFAULT_MAP,
plant_short_name=settings.PLANT_SHORT_NAME,
)

def _api_response(self, mission: Mission) -> StartMissionResponse:
Expand Down
6 changes: 6 additions & 0 deletions tests/isar/apis/scheduler/test_scheduler_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,3 +363,9 @@ def test_drive_to_timeout(self, client: TestClient):
def test_state_machine_in_conflicting_state(self, client: TestClient):
response = client.post(url=self.schedule_drive_to_path, data=self.mock_data)
assert response.status_code == HTTPStatus.CONFLICT


class TestInfoRobotSettings:
def test_info_robot_settings(self, client: TestClient):
response = client.get(url="/info/robot-settings")
assert response.status_code == HTTPStatus.OK