Enable bind/experiment acceptance test to run locally (#2510)

## Changes
<!-- Brief summary of your changes that is easy to understand -->
1. Enable local mode and write the server mocks

## Why
<!-- Why are these changes needed? Provide the context that the reviewer
might be missing.
For example, were there any decisions behind the change that are not
reflected in the code itself? -->
Acceptance tests that can run locally can indicate a breaking change
without waiting for a cloud run

## Tests
<!-- How have you tested the changes? -->
Ran the `bundle/deployment/bind/experiment` acceptance test locally

<!-- If your PR needs to be included in the release notes for next
release,
add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
This commit is contained in:
Anton Nekipelov 2025-03-18 09:43:11 +01:00 committed by GitHub
parent e233919212
commit 4e3ff2409c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 28 additions and 2 deletions

View File

@ -1,6 +1,32 @@
Local = false
Local = true
Cloud = true
[[Repls]]
Old = "[0-9]{3,}"
New = "[NUMID]"
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"