diff --git a/docs/reference/rest_api.json b/docs/reference/rest_api.json index 5ea59f7..c20738a 100644 --- a/docs/reference/rest_api.json +++ b/docs/reference/rest_api.json @@ -676,6 +676,16 @@ "type": "null" } ] + }, + "opa": { + "anyOf": [ + { + "$ref": "#/components/schemas/OpaConfig" + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -900,54 +910,6 @@ ], "title": "DeviceManagerSource" }, - "DeviceSource": { - "properties": { - "module": { - "type": "string", - "title": "Module", - "description": "Module to be imported" - }, - "kind": { - "type": "string", - "const": "deviceFunctions", - "title": "Kind", - "default": "deviceFunctions" - } - }, - "additionalProperties": false, - "type": "object", - "required": [ - "module" - ], - "title": "DeviceSource" - }, - "DodalSource": { - "properties": { - "module": { - "type": "string", - "title": "Module", - "description": "Module to be imported" - }, - "kind": { - "type": "string", - "const": "dodal", - "title": "Kind", - "default": "dodal" - }, - "mock": { - "type": "boolean", - "title": "Mock", - "description": "If true, ophyd_async device connections are mocked", - "default": false - } - }, - "additionalProperties": false, - "type": "object", - "required": [ - "module" - ], - "title": "DodalSource" - }, "EnvironmentConfig": { "properties": { "sources": { @@ -956,12 +918,6 @@ { "$ref": "#/components/schemas/PlanSource" }, - { - "$ref": "#/components/schemas/DeviceSource" - }, - { - "$ref": "#/components/schemas/DodalSource" - }, { "$ref": "#/components/schemas/DeviceManagerSource" } @@ -969,25 +925,14 @@ "discriminator": { "propertyName": "kind", "mapping": { - "deviceFunctions": "#/components/schemas/DeviceSource", "deviceManager": "#/components/schemas/DeviceManagerSource", - "dodal": "#/components/schemas/DodalSource", "planFunctions": "#/components/schemas/PlanSource" } } }, "type": "array", "title": "Sources", - "default": [ - { - "module": "dodal.plans", - "kind": "planFunctions" - }, - { - "module": "dodal.plan_stubs.wrapped", - "kind": "planFunctions" - } - ] + "default": [] }, "events": { "$ref": "#/components/schemas/WorkerEventConfig" @@ -1154,9 +1099,29 @@ "OIDCConfig": { "properties": { "well_known_url": { - "type": "string", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], "title": "Well Known Url", - "description": "URL to fetch OIDC config from the provider" + "description": "URL to fetch OIDC config from the provider", + "deprecated": true + }, + "issuer": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Issuer", + "description": "URL of OIDC provider" }, "client_id": { "type": "string", @@ -1179,11 +1144,37 @@ "additionalProperties": false, "type": "object", "required": [ - "well_known_url", "client_id" ], "title": "OIDCConfig" }, + "OpaConfig": { + "properties": { + "root": { + "type": "string", + "maxLength": 2083, + "minLength": 1, + "format": "uri", + "title": "Root", + "default": "http://localhost:8181/" + }, + "audience": { + "type": "string", + "title": "Audience", + "default": "account" + }, + "tiled_service_account_check": { + "type": "string", + "title": "Tiled Service Account Check" + } + }, + "additionalProperties": false, + "type": "object", + "required": [ + "tiled_service_account_check" + ], + "title": "OpaConfig" + }, "PlanSource": { "properties": { "module": { diff --git a/src/daq_queuing_service/plugins/i15_1_converter.py b/src/daq_queuing_service/plugins/i15_1_converter.py index 308cf8d..129c216 100644 --- a/src/daq_queuing_service/plugins/i15_1_converter.py +++ b/src/daq_queuing_service/plugins/i15_1_converter.py @@ -19,7 +19,7 @@ def construct_blueapi_tasks_from_i15_1_experiment( ), TaskRequest( name="centre_sample", - params={"start_z": -5, "end_z": 5, "steps": 20, "exposure_time": 0.01}, + params={"start_z": -20, "end_z": 0, "steps": 20, "exposure_time": 0.01}, instrument_session=experiment.instrument_session, ), TaskRequest( diff --git a/tests/unit_tests/plugins/test_i15_1_converter.py b/tests/unit_tests/plugins/test_i15_1_converter.py index 16ecabd..545ab71 100644 --- a/tests/unit_tests/plugins/test_i15_1_converter.py +++ b/tests/unit_tests/plugins/test_i15_1_converter.py @@ -39,8 +39,8 @@ def test_sample_centre_uses_expected_params(): tasks = construct_blueapi_tasks_from_i15_1_experiment(experiment) assert tasks[1].name == "centre_sample" assert tasks[1].params == { - "start_z": -5, - "end_z": 5, + "start_z": -20, + "end_z": 0, "steps": 20, "exposure_time": 0.01, }