Skip to content

Commit

Permalink
task(bosh_update_*_config): fix suffix to be consistent with generate…
Browse files Browse the repository at this point in the history
…-manifest

suffix used to filter is now *-[cloud|runtime]-operators.yml
  • Loading branch information
o-orand committed Dec 8, 2017
1 parent eb49df9 commit a9b2791
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion concourse/tasks/bosh_update_cloud_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ params:
BOSH_CLIENT_SECRET:
BOSH_CA_CERT:
VARS_FILES_SUFFIX: cloud-vars.yml
OPS_FILES_SUFFIX: cloud-operator.yml
OPS_FILES_SUFFIX: cloud-operators.yml
2 changes: 1 addition & 1 deletion concourse/tasks/bosh_update_runtime_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ params:
BOSH_CLIENT_SECRET:
BOSH_CA_CERT:
VARS_FILES_SUFFIX: runtime-vars.yml
OPS_FILES_SUFFIX: runtime-operator.yml
OPS_FILES_SUFFIX: runtime-operators.yml
6 changes: 3 additions & 3 deletions spec/tasks/bosh_update_cloud_config/task_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
@secrets = Dir.mktmpdir

FileUtils.touch(File.join(@config_manifest, 'my-custom-cloud-vars.yml'))
FileUtils.touch(File.join(@config_manifest, 'my-custom-cloud-operator.yml'))
FileUtils.touch(File.join(@config_manifest, 'my-custom-cloud-operators.yml'))
FileUtils.touch(File.join(@config_manifest, 'my-custom-runtime-vars.yml'))
FileUtils.touch(File.join(@config_manifest, 'my-custom-runtime-operator.yml'))
FileUtils.touch(File.join(@config_manifest, 'my-custom-runtime-operators.yml'))

@output = execute('-c concourse/tasks/bosh_update_cloud_config.yml ' \
'-i script-resource=. ' \
Expand All @@ -37,7 +37,7 @@
end

it 'selects only config operators' do
expect(@output).to include('Operators detected: <-o ./config-manifest/my-custom-cloud-operator.yml >')
expect(@output).to include('Operators detected: <-o ./config-manifest/my-custom-cloud-operators.yml >')
end

it 'selects only config vars' do
Expand Down
6 changes: 3 additions & 3 deletions spec/tasks/bosh_update_runtime_config/task_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
@secrets = Dir.mktmpdir

FileUtils.touch(File.join(@config_manifest, 'my-custom-config-vars.yml'))
FileUtils.touch(File.join(@config_manifest, 'my-custom-config-operator.yml'))
FileUtils.touch(File.join(@config_manifest, 'my-custom-config-operators.yml'))
FileUtils.touch(File.join(@config_manifest, 'my-custom-runtime-vars.yml'))
FileUtils.touch(File.join(@config_manifest, 'my-custom-runtime-operator.yml'))
FileUtils.touch(File.join(@config_manifest, 'my-custom-runtime-operators.yml'))

@output = execute('-c concourse/tasks/bosh_update_runtime_config.yml ' \
'-i script-resource=. ' \
Expand All @@ -40,7 +40,7 @@
end

it 'selects only runtime operators' do
expect(@output).to include('Operators detected: <-o ./config-manifest/my-custom-runtime-operator.yml >')
expect(@output).to include('Operators detected: <-o ./config-manifest/my-custom-runtime-operators.yml >')
end

it 'selects only runtime vars' do
Expand Down

0 comments on commit a9b2791

Please sign in to comment.