@@ -69,6 +69,34 @@ def test_install_success(hawkbit, install_config, bundle_assigned, rauc_dbus_ins
69
69
status = hawkbit .get_action_status ()
70
70
assert status [0 ]['type' ] == 'finished'
71
71
72
+ @pytest .mark .parametrize ('mode' , ('download' , 'streaming' ))
73
+ def test_install_success_without_close (hawkbit , adjust_config , bundle_assigned , rauc_dbus_install_success , mode ):
74
+ """
75
+ Assign bundle to target and test successful download and installation. Make sure installation
76
+ result is received correctly by hawkBit.
77
+ """
78
+
79
+ if mode == "streaming" :
80
+ config = adjust_config (
81
+ {'client' : {'stream_bundle' : 'true' , 'post_update_close' : "false" }},
82
+ remove = {'client' : 'bundle_download_location' },
83
+ )
84
+ else :
85
+ config = adjust_config ({'client' : {'post_update_close' : "false" }})
86
+ out , err , exitcode = run (f'rauc-hawkbit-updater -c "{ config } " -r' )
87
+
88
+ assert 'New software ready for download' in out
89
+
90
+ if mode == 'download' :
91
+ assert 'Download complete' in out
92
+
93
+ assert 'Software bundle installed successfully.' in out
94
+ assert err == ''
95
+ assert exitcode == 0
96
+
97
+ status = hawkbit .get_action_status ()
98
+ assert status [0 ]['type' ] == 'running'
99
+
72
100
@pytest .mark .parametrize ('mode' , ('download' , 'streaming' ))
73
101
def test_install_failure (hawkbit , install_config , bundle_assigned , rauc_dbus_install_failure , mode ):
74
102
"""
0 commit comments