From 4e3ff2409cbffbbd6ce9a7be6d30de6779553a26 Mon Sep 17 00:00:00 2001 From: Anton Nekipelov <226657+anton-107@users.noreply.github.com> Date: Tue, 18 Mar 2025 09:43:11 +0100 Subject: [PATCH] Enable bind/experiment acceptance test to run locally (#2510) ## Changes 1. Enable local mode and write the server mocks ## Why Acceptance tests that can run locally can indicate a breaking change without waiting for a cloud run ## Tests Ran the `bundle/deployment/bind/experiment` acceptance test locally --- .../deployment/bind/experiment/test.toml | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/acceptance/bundle/deployment/bind/experiment/test.toml b/acceptance/bundle/deployment/bind/experiment/test.toml index 726c4c55d..4bc883471 100644 --- a/acceptance/bundle/deployment/bind/experiment/test.toml +++ b/acceptance/bundle/deployment/bind/experiment/test.toml @@ -1,6 +1,32 @@ -Local = false +Local = true Cloud = true [[Repls]] Old = "[0-9]{3,}" -New = "[NUMID]" \ No newline at end of file +New = "[NUMID]" + +[[Server]] +Pattern = "POST /api/2.0/mlflow/experiments/create" +Response.Body = ''' +{ + "experiment_id":"1234567890" +} +''' + +[[Server]] +Pattern = "GET /api/2.0/mlflow/experiments/get" +Response.Body = ''' +{ + "experiment_id": "1234567890", + "experiment": { + "name": "/Users/[USERNAME]/test-experiment6260d50f-e8ff-4905-8f28-812345678903", + "lifecycle_stage": "active" + } +} +''' + +[[Server]] +Pattern = "POST /api/2.0/mlflow/experiments/update" + +[[Server]] +Pattern = "POST /api/2.0/mlflow/experiments/delete" \ No newline at end of file