diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-25 00:10:12 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-25 00:10:12 +0300 |
commit | 65aa9cb3b665f885b5c80b817d84af6076b35f26 (patch) | |
tree | 53f3396ed5ba8acc1fe8f2f12a8ecb6e7978ae58 /spec/services | |
parent | 2ae564d6f59fc939bfdbb155d445efe97b34c1e1 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/ml/experiment_tracking/candidate_repository_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/services/ml/experiment_tracking/candidate_repository_spec.rb b/spec/services/ml/experiment_tracking/candidate_repository_spec.rb index 079c36c9613..9b46675a08e 100644 --- a/spec/services/ml/experiment_tracking/candidate_repository_spec.rb +++ b/spec/services/ml/experiment_tracking/candidate_repository_spec.rb @@ -61,6 +61,15 @@ RSpec.describe ::Ml::ExperimentTracking::CandidateRepository, feature_category: expect(subject.name).to eq('blah') end end + + context 'when name is nil and no mlflow.runName is not present' do + let(:tags) { nil } + let(:name) { nil } + + it 'gives the candidate a random name' do + expect(subject.name).to match(/[a-z]+-[a-z]+-[a-z]+-\d+/) + end + end end end |