Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[yum_repository] Use :create action instead of deprecated :add #362

Merged
merged 1 commit into from
Sep 19, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion recipes/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
proxy_username node['datadog']['yumrepo_proxy_username']
proxy_password node['datadog']['yumrepo_proxy_password']
gpgkey node['datadog']['yumrepo_gpgkey']
action :add
action :create
end
end
2 changes: 1 addition & 1 deletion spec/dd-agent_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def set_env_var(name, value)

shared_examples_for 'rhellions repo' do
it 'sets up a yum repo' do
expect(chef_run).to add_yum_repository('datadog')
expect(chef_run).to create_yum_repository('datadog')
end
end

Expand Down
4 changes: 2 additions & 2 deletions spec/repository_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
end

it 'sets up a yum repo' do
expect(chef_run).to add_yum_repository('datadog').with(
expect(chef_run).to create_yum_repository('datadog').with(
gpgkey: 'http://yum.datadoghq.com/DATADOG_RPM_KEY.public'
)
end
Expand All @@ -28,7 +28,7 @@
end

it 'sets up a yum repo' do
expect(chef_run).to add_yum_repository('datadog').with(
expect(chef_run).to create_yum_repository('datadog').with(
gpgkey: 'https://yum.datadoghq.com/DATADOG_RPM_KEY.public'
)
end
Expand Down