We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey I am trying to update some data bag(on the server) in my recipe using this code :-
celerybeat_host = Chef::DataBagItem.new celerybeat_host.data_bag('paas_status') celerybeat_host.raw_data = { 'id' => 'workers_celerybeat-dev', 'fqdn' => node.name, 'updated' => Time.new.to_i } celerybeat_host.save
Could you please tell what should I mock for this situation as I am facing this error :-
Connection refused connecting to https://localhost/data/paas_status/workers_celerybeat-dev, giving up
I tried this -
@data_bag_item = Chef::DataBagItem.new do |dbi| allow(dbi).to receive(:save).and_return(true) end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey I am trying to update some data bag(on the server) in my recipe using this code :-
celerybeat_host = Chef::DataBagItem.new
celerybeat_host.data_bag('paas_status')
celerybeat_host.raw_data = {
'id' => 'workers_celerybeat-dev',
'fqdn' => node.name,
'updated' => Time.new.to_i
}
celerybeat_host.save
Could you please tell what should I mock for this situation as I am facing this error :-
Connection refused connecting to https://localhost/data/paas_status/workers_celerybeat-dev, giving up
I tried this -
@data_bag_item = Chef::DataBagItem.new do |dbi|
allow(dbi).to receive(:save).and_return(true)
end
The text was updated successfully, but these errors were encountered: