# Inspec test for recipe irrigate-datadog::neo4j

base_dir = '/opt/datadog-agent/neo4j'

unless os.windows?
  describe file('/etc/datadog-agent/conf.d/neo4j.d/conf.yaml') do
    it { should exist }
    its('owner') { should eq 'dd-agent' }
  end

  # Base directory for integration
  describe directory(base_dir) do
    it { should exist }
    its('owner') { should eq 'dd-agent' }
  end

  # Once integration is installed, this should exist
  describe command('/usr/bin/datadog-agent integration show datadog-neo4j') do
    its('exit_status') { should eq 0 }
  end

  describe service('datadog-agent') do
    it { should be_installed }
    it { should be_enabled }
    it { should be_running }
  end

end
