Skip to content

Commit

Permalink
Use new have_test_dsc_configuration_return_success serverspec type (#252
Browse files Browse the repository at this point in the history
)

Serverspec change:
`have_applied_dsc_configuration_successfully` -> `have_test_dsc_configuration_return_true`
new test `have_dsc_configuration_status_of_success`
  • Loading branch information
matt-richardson authored Apr 13, 2020
1 parent 95acd6f commit a64d600
Show file tree
Hide file tree
Showing 25 changed files with 48 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Tests/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ gem "rake"
gem "serverspec"
gem "rspec-teamcity", "~> 0.0.1"
gem "nokogiri"
gem "octopus-serverspec-extensions", "~> 0.17.2"
gem "octopus-serverspec-extensions", "~> 0.18.1"
2 changes: 1 addition & 1 deletion Tests/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ GEM
mini_portile2 (~> 2.4.0)
nokogiri (1.10.8-x64-mingw32)
mini_portile2 (~> 2.4.0)
octopus-serverspec-extensions (0.17.2)
octopus-serverspec-extensions (0.18.1)
json (~> 2.1.0)
rspec (~> 3.0)
serverspec (~> 2)
Expand Down
3 changes: 2 additions & 1 deletion Tests/Spec/server_scenario_01_install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,6 @@
#dsc overall status
describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end
3 changes: 2 additions & 1 deletion Tests/Spec/server_scenario_02_install_second_node_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,6 @@
#dsc overall status
describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end
3 changes: 2 additions & 1 deletion Tests/Spec/server_scenario_03_remove_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end

#todo: add a new type/matcher to the `octopus-serverspec-extensions` project
Expand Down
3 changes: 2 additions & 1 deletion Tests/Spec/server_scenario_04_remove_second_node_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end

#todo: add a new type/matcher to the `octopus-serverspec-extensions` project
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@

describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end
3 changes: 2 additions & 1 deletion Tests/Spec/server_scenario_06_remove_custom_instance_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end

#todo: add a new type/matcher to the `octopus-serverspec-extensions` project
Expand Down
4 changes: 2 additions & 2 deletions Tests/Spec/server_scenario_07_reinstall_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
#dsc overall status
describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end

4 changes: 2 additions & 2 deletions Tests/Spec/server_scenario_08_upgrade_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
#dsc overall status
describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end

3 changes: 2 additions & 1 deletion Tests/Spec/server_scenario_09_watchdog_create_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@

describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end
3 changes: 2 additions & 1 deletion Tests/Spec/server_scenario_10_watchdog_delete_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@

describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end
3 changes: 2 additions & 1 deletion Tests/Spec/server_scenario_11_remove_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end

#todo: add a new type/matcher to the `octopus-serverspec-extensions` project
Expand Down
3 changes: 2 additions & 1 deletion Tests/Spec/server_scenario_12_built_in_worker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@

describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end
3 changes: 2 additions & 1 deletion Tests/Spec/server_scenario_13_remove_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end

#todo: add a new type/matcher to the `octopus-serverspec-extensions` project
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@

describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@

describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end
4 changes: 2 additions & 2 deletions Tests/Spec/tentacle_scenario_01_install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@
its(:content) { should match /Tentacle\.Communication\.TrustedOctopusServers.*#{config['OctopusServerThumbprint']}/}
end

### DSC success
describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end
3 changes: 2 additions & 1 deletion Tests/Spec/tentacle_scenario_02_remove_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@

describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end

#todo: confirm whether these should be deleted
Expand Down
3 changes: 2 additions & 1 deletion Tests/Spec/tentacle_scenario_03_reinstall_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@

describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end
3 changes: 2 additions & 1 deletion Tests/Spec/tentacle_scenario_04_upgrade_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,6 @@

describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end
3 changes: 2 additions & 1 deletion Tests/Spec/tentacle_scenario_05_watchdog_create_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@

describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end
3 changes: 2 additions & 1 deletion Tests/Spec/tentacle_scenario_06_watchdog_delete_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@

describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end
3 changes: 2 additions & 1 deletion Tests/Spec/tentacle_scenario_07_remove_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@

describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end
3 changes: 2 additions & 1 deletion Tests/Spec/tentacle_scenario_08_tentacle_comms_port_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@

describe windows_dsc do
it { should be_able_to_get_dsc_configuration }
it { should have_applied_dsc_configuration_successfully }
it { should have_test_dsc_configuration_return_true }
it { should have_dsc_configuration_status_of_success }
end

0 comments on commit a64d600

Please sign in to comment.