@@ -127,6 +127,10 @@ class DeploymentScriptTests(unittest.TestCase):
|
||||
'jwebot_log "runtime install ready"',
|
||||
'jwebot_log "edge active"',
|
||||
'jwebot_log "adaptive active"',
|
||||
'send_release_lifecycle_notice shutdown',
|
||||
'send_release_lifecycle_notice startup',
|
||||
'jwebot_log "release lifecycle shutdown notice ready"',
|
||||
'jwebot_log "release lifecycle startup notice ready"',
|
||||
'jwebot_log "release settlement starting"',
|
||||
'"${target_runtime}/jwebot_release_update.py"',
|
||||
'jwebot_log "release settlement ready"',
|
||||
@@ -142,10 +146,20 @@ class DeploymentScriptTests(unittest.TestCase):
|
||||
source.count("xdotool"),
|
||||
source.count("/usr/bin/xdotool"),
|
||||
)
|
||||
cutover_index = source.index('jwebot_log "cutover starting"')
|
||||
actual_stop_index = source.index("user_systemctl stop", cutover_index)
|
||||
self.assertLess(
|
||||
source.index('jwebot_log "release lifecycle shutdown notice ready"'),
|
||||
actual_stop_index,
|
||||
)
|
||||
self.assertLess(
|
||||
source.index("trap - EXIT HUP INT TERM"),
|
||||
source.index('jwebot_log "release settlement starting"'),
|
||||
)
|
||||
self.assertLess(
|
||||
source.index('jwebot_log "release lifecycle startup notice ready"'),
|
||||
source.index('jwebot_log "release settlement starting"'),
|
||||
)
|
||||
self.assertLess(
|
||||
source.index('jwebot_log "release settlement ready"'),
|
||||
source.index('jwebot_log "deployment ready version='),
|
||||
|
||||
Reference in New Issue
Block a user