Commit 6066b61a authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'use-constant-for-helm-runner-check' into 'master'

Use constants for asserstion for helm chart test

See merge request gitlab-org/gitlab-ce!27629
parents 61438335 68dae77b
...@@ -24,7 +24,7 @@ describe Clusters::Applications::Runner do ...@@ -24,7 +24,7 @@ describe Clusters::Applications::Runner do
it 'is initialized with 4 arguments' do it 'is initialized with 4 arguments' do
expect(subject.name).to eq('runner') expect(subject.name).to eq('runner')
expect(subject.chart).to eq('runner/gitlab-runner') expect(subject.chart).to eq('runner/gitlab-runner')
expect(subject.version).to eq('0.4.0') expect(subject.version).to eq(Clusters::Applications::Runner::VERSION)
expect(subject).to be_rbac expect(subject).to be_rbac
expect(subject.repository).to eq('https://charts.gitlab.io') expect(subject.repository).to eq('https://charts.gitlab.io')
expect(subject.files).to eq(gitlab_runner.files) expect(subject.files).to eq(gitlab_runner.files)
...@@ -42,7 +42,7 @@ describe Clusters::Applications::Runner do ...@@ -42,7 +42,7 @@ describe Clusters::Applications::Runner do
let(:gitlab_runner) { create(:clusters_applications_runner, :errored, runner: ci_runner, version: '0.1.13') } let(:gitlab_runner) { create(:clusters_applications_runner, :errored, runner: ci_runner, version: '0.1.13') }
it 'is initialized with the locked version' do it 'is initialized with the locked version' do
expect(subject.version).to eq('0.4.0') expect(subject.version).to eq(Clusters::Applications::Runner::VERSION)
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment