control 'looker' do
  title 'looker ssh instance'
  desc 'Configure the looker proxy instance'

  looker_user = 'looker'
  looker_home_dir = '/home/looker'

  describe sshd_config do
    its('Port') { should eq('22') }
    its('PasswordAuthentication') { should eq 'no' }
    its('AllowTcpForwarding') { should eq 'yes' }
    its('X11Forwarding') { should eq 'no' }
    its('AllowAgentForwarding') { should eq 'no' }
    its('PermitOpen') { should eq 'statementdb.theorchard.com:3306 reportsar.theorchard.com:3306' }
  end

  describe user(looker_user) do
    it { should exist }
    its('home') { should eq looker_home_dir }
  end
end
