ernestio / ernest

Ernest is a tool to define, manage and collaborate on your infrastructure
http://ernest.io/
Mozilla Public License 2.0
17 stars 6 forks source link

Undefined method in `azure_loadbalancer_probe` policy #891

Closed reidjc closed 6 years ago

reidjc commented 6 years ago

Policy:

describe azure_loadbalancer_probe('http') do
  it {should exist}
  its('probe') {should be 'web-probe'}
end

Error:

✘ Azure Loadbalancer Probe http
  ✔ should exist
  ✘ probe
    undefined method `probe' for Azure Loadbalancer Probe http:#<Class:0x000055f8701c23c0>
    Did you mean?  proc
g3kk0 commented 6 years ago

Can you please provide the manifest resource to help reproduce this.

g3kk0 commented 6 years ago

The probe attribute isn't actually a part of the azure_loadbalancer_probe resource (only exists within azure_loadbalancer_rule). Readme updated.