Skip to content

Commit

Permalink
Add missing parameter for /info/robot-settings endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
tsundvoll committed Oct 25, 2023
1 parent 55afe79 commit 8377901
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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

0 comments on commit 8377901

Please sign in to comment.