@@ -307,9 +307,11 @@ describe("native runtime qualification producer workflow", () => {
307307 expect ( boundary . run ) . toContain ( "/usr/bin/systemctl --user start dbus.socket" ) ;
308308 expect ( boundary . run ) . toContain ( "/usr/bin/systemctl --user is-active --quiet dbus.socket" ) ;
309309 expect ( boundary . run ) . toContain ( "Qualification systemd user bus socket unit is not active" ) ;
310- expect ( boundary . run ) . toContain ( "stat -c '%u' \"$runtime_dir/bus\"" ) ;
311- expect ( boundary . run ) . not . toContain ( "stat -c '%u:%g' \"$runtime_dir/bus\"" ) ;
312- expect ( boundary . run ) . toContain ( "Qualification systemd user bus is missing or invalid" ) ;
310+ expect ( boundary . run ) . toContain ( 'sudo -u "$account" /usr/bin/test -S "$runtime_dir/bus"' ) ;
311+ expect ( boundary . run ) . not . toContain ( "stat -c '%u' \"$runtime_dir/bus\"" ) ;
312+ expect ( boundary . run ) . toContain (
313+ "Qualification systemd user bus is not accessible to the execution account" ,
314+ ) ;
313315 expect ( boundary . run ) . toContain ( 'sudo -u "$account" env -i' ) ;
314316 expect ( boundary . run ) . toContain ( 'CONTAINERS_CONF="$containers_config"' ) ;
315317 expect ( boundary . run ) . toContain ( 'CONTAINERS_STORAGE_CONF="$storage_config"' ) ;
@@ -376,8 +378,13 @@ describe("native runtime qualification producer workflow", () => {
376378 expect ( installer . run ) . toContain ( 'sudo chown "$ACCOUNT_UID:$ACCOUNT_GID"' ) ;
377379 expect ( installer . run ) . toContain ( "/usr/bin/systemctl --user start dbus.socket" ) ;
378380 expect ( installer . run ) . toContain ( "Qualification systemd user bus socket unit did not restart" ) ;
379- expect ( installer . run ) . toContain ( "stat -c '%u' \"$RUNTIME_DIRECTORY/bus\"" ) ;
380- expect ( installer . run ) . not . toContain ( "stat -c '%u:%g' \"$RUNTIME_DIRECTORY/bus\"" ) ;
381+ expect ( installer . run ) . toContain (
382+ 'sudo -u "$ACCOUNT" /usr/bin/test -S "$RUNTIME_DIRECTORY/bus"' ,
383+ ) ;
384+ expect ( installer . run ) . not . toContain ( "stat -c '%u' \"$RUNTIME_DIRECTORY/bus\"" ) ;
385+ expect ( installer . run ) . toContain (
386+ "Qualification systemd user bus is not accessible after installer isolation" ,
387+ ) ;
381388 expect ( installer . env ?. CONTAINERS_CONFIG ) . toBe (
382389 "${{ steps.boundary.outputs.containers_config }}" ,
383390 ) ;
0 commit comments