Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-02-13 09:09:20 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-13 09:09:20 +0300
commit00d1f41541a21e13e3c6bd94d897dc5e4da8278a (patch)
treeb5bf678b7f004c60e152414f52e8d279346e7a70 /spec/lib/api
parent6b15723e0656c73c0c3971e71629d73d62c49974 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/api')
-rw-r--r--spec/lib/api/ci/helpers/runner_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/api/ci/helpers/runner_spec.rb b/spec/lib/api/ci/helpers/runner_spec.rb
index b5046bb9983..7f711ba1ca0 100644
--- a/spec/lib/api/ci/helpers/runner_spec.rb
+++ b/spec/lib/api/ci/helpers/runner_spec.rb
@@ -69,7 +69,7 @@ RSpec.describe API::Ci::Helpers::Runner do
describe '#current_runner_machine', :freeze_time, feature_category: :runner_fleet do
let(:runner) { create(:ci_runner, token: 'foo') }
- let(:runner_machine) { create(:ci_runner_machine, runner: runner, machine_xid: 'bar', contacted_at: 1.hour.ago) }
+ let(:runner_machine) { create(:ci_runner_machine, runner: runner, system_xid: 'bar', contacted_at: 1.hour.ago) }
subject(:current_runner_machine) { helper.current_runner_machine }
@@ -86,7 +86,7 @@ RSpec.describe API::Ci::Helpers::Runner do
context 'when runner machine already exists' do
before do
- allow(helper).to receive(:params).and_return(token: runner.token, system_id: runner_machine.machine_xid)
+ allow(helper).to receive(:params).and_return(token: runner.token, system_id: runner_machine.system_xid)
end
it { is_expected.to eq(runner_machine) }
@@ -102,7 +102,7 @@ RSpec.describe API::Ci::Helpers::Runner do
expect { current_runner_machine }.to change { Ci::RunnerMachine.count }.by(1)
expect(current_runner_machine).not_to be_nil
- expect(current_runner_machine.machine_xid).to eq('new_system_id')
+ expect(current_runner_machine.system_xid).to eq('new_system_id')
expect(current_runner_machine.contacted_at).to eq(Time.current)
expect(current_runner_machine.runner).to eq(runner)
end