diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-11 15:09:43 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-11 15:09:43 +0300 |
commit | f20820d7faa4b0cc31d4b40be66f1aad5f8442bc (patch) | |
tree | 87dff45ebcf5b6cbb3db6c53185b08724e88d414 /spec/requests/api/ml | |
parent | 289ce60cdc5fe83278ff01f9506db862e6f8e9ac (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests/api/ml')
-rw-r--r-- | spec/requests/api/ml/mlflow/runs_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/requests/api/ml/mlflow/runs_spec.rb b/spec/requests/api/ml/mlflow/runs_spec.rb index af04c387830..75b70dd867a 100644 --- a/spec/requests/api/ml/mlflow/runs_spec.rb +++ b/spec/requests/api/ml/mlflow/runs_spec.rb @@ -185,7 +185,7 @@ RSpec.describe API::Ml::Mlflow::Runs, feature_category: :mlops do end end - describe 'GET /projects/:id/ml/mlflow/api/2.0/mlflow/runs/search' do + describe 'POST /projects/:id/ml/mlflow/api/2.0/mlflow/runs/search' do let_it_be(:search_experiment) { create(:ml_experiments, user: nil, project: project) } let_it_be(:first_candidate) do create(:ml_candidates, experiment: search_experiment, name: 'c', user: nil).tap do |c| @@ -215,6 +215,8 @@ RSpec.describe API::Ml::Mlflow::Runs, feature_category: :mlops do } end + let(:request) { post api(route), params: params, headers: headers } + it 'searches runs for a project', :aggregate_failures do is_expected.to have_gitlab_http_status(:ok) is_expected.to match_response_schema('ml/search_runs') @@ -231,7 +233,7 @@ RSpec.describe API::Ml::Mlflow::Runs, feature_category: :mlops do params = default_params.merge(page_token: json_response['next_page_token']) - get api(route), params: params, headers: headers + post api(route), params: params, headers: headers second_page_response = Gitlab::Json.parse(response.body) second_page_runs = second_page_response['runs'] |