diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-09-01 13:03:43 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-09-01 13:04:08 +0200 |
commit | fc4fb6e4d212d5cf406a08c96ba8c423477a5408 (patch) | |
tree | 058147ce1ca9636defb733d076a4c25be4995fd1 /spec/lib/gitlab/ci/config/entry/policy_spec.rb | |
parent | 73d0cafbe4acf5a14ec196c3cfb38be4e84b67d9 (diff) | |
download | gitlab-ce-fc4fb6e4d212d5cf406a08c96ba8c423477a5408.tar.gz |
Change CI/CD kubernetes policy keyword to `active`
Diffstat (limited to 'spec/lib/gitlab/ci/config/entry/policy_spec.rb')
-rw-r--r-- | spec/lib/gitlab/ci/config/entry/policy_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/lib/gitlab/ci/config/entry/policy_spec.rb b/spec/lib/gitlab/ci/config/entry/policy_spec.rb index a5c2e3f1989..5e83abf645b 100644 --- a/spec/lib/gitlab/ci/config/entry/policy_spec.rb +++ b/spec/lib/gitlab/ci/config/entry/policy_spec.rb @@ -67,19 +67,19 @@ describe Gitlab::Ci::Config::Entry::Policy do end context 'when specifying kubernetes policy' do - let(:config) { { kubernetes: 'configured' } } + let(:config) { { kubernetes: 'active' } } it 'is a correct configuraton' do expect(entry).to be_valid - expect(entry.value).to eq(kubernetes: 'configured') + expect(entry.value).to eq(kubernetes: 'active') end end context 'when specifying invalid kubernetes policy' do - let(:config) { { kubernetes: 'active' } } + let(:config) { { kubernetes: 'something' } } it 'reports an error about invalid policy' do - expect(entry.errors).to include /unknown value: active/ + expect(entry.errors).to include /unknown value: something/ end end |