blob: 70a68ccf060a1dbba92a730a580aaf9f1630ed37 (
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
25
26
27
28
29
|
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
describe file("C:/hab/sup/default/config/sup.toml") do
it { should exist }
its("content") { should match(/bldr_url.*willem.habitat.sh/) }
end
|