summaryrefslogtreecommitdiff
path: root/kitchen-tests/test/integration/end-to-end/habitat_win_sup/default_spec.rb
blob: d1aa757cfc327286a111f1ec78bb18652067cf0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
describe command('C:\habitat\hab.exe sup -h') do
  its(:stdout) { should match(/The Habitat Supervisor/) }
end

describe powershell("(get-service habitat).Status") do
  its(:stdout) { should match(/Running/) }
end

restart_script = <<-EOH
restart-service habitat
EOH

describe powershell(restart_script) do
  its(:exit_status) { should eq(0) }
end

# Removing these two tests temporarily, this needs to be validated and rewritten with the fixture then tested
describe port(9998) do
  it { should be_listening }
end

describe port(9999) do
  it { should be_listening }
end