Rephrase test in terms of `hab svc update`
@@ -38,7 +38,8 @@ if ($IsWindows) {
$release="habitat-testing/nginx/1.18.0/20200626184200"
}
-Describe "modification of Supervisor-specific service configuration" {
+Describe "hab svc update" {
+ Context "an updating service" {
Start-Supervisor -Timeout 45
hab pkg promote $release $testChannelOne
@@ -54,9 +55,7 @@ Describe "modification of Supervisor-specific service configuration" {
}
Context "modify update channel" {
- # We must include the strategy as well, because `hab svc load`
- # is not a patchy operation.
- hab svc load $pkg --force --strategy "at-once" --channel $testChannelTwo
+ hab svc update $pkg --channel $testChannelTwo
# Give *plenty* of time to pick up the new spec (as well as
# time for a service to restart, if things are broken and
@@ -65,7 +64,7 @@ Describe "modification of Supervisor-specific service configuration" {
It "has the new channel in the spec file" {
'/hab/sup/default/specs/nginx.spec' | Should -FileContentMatchExactly "channel = `"$testChannelTwo`""
- '/hab/sup/default/specs/nginx.spec' | Should -FileContentMatchExactly "strategy = `"at-once`""
+ '/hab/sup/default/specs/nginx.spec' | Should -FileContentMatchExactly "update_strategy = `"at-once`""
}
It "does not restart the service process" {
@@ -81,3 +80,4 @@ Describe "modification of Supervisor-specific service configuration" {
Stop-Supervisor
}
}
+}
