@@ -300,8 +300,8 @@ def modified_puppet_stack_trace
300300
301301 # Ensure the $a_test_string variable is set correctly
302302 expect ( result [ 'body' ] [ 'variables' ] . find { |item | item [ 'name' ] == 'a_test_string' } ) . to include ( 'value' => 'This is a string' )
303- # Ensure the core fact, in the global scope, exists 'operatingsystem '
304- expect ( result [ 'body' ] [ 'variables' ] . find { |item | item [ 'name' ] == 'operatingsystem ' } ) . to_not be nil
303+ # Ensure the core fact, in the global scope, exists 'os '
304+ expect ( result [ 'body' ] [ 'variables' ] . find { |item | item [ 'name' ] == 'os ' } ) . to_not be nil
305305 # Ensure the $a_test_array variable exists
306306 obj = result [ 'body' ] [ 'variables' ] . find { |item | item [ 'name' ] == 'a_test_array' }
307307 expect ( obj ) . to_not be nil
@@ -367,11 +367,11 @@ def modified_puppet_stack_trace
367367 expect ( @client ) . to receive_message_with_request_id_within_timeout ( [ @client . current_seq_id , 5 ] )
368368 result = @client . data_from_request_seq_id ( @client . current_seq_id )
369369 expect ( result [ 'body' ] [ 'result' ] ) . to eq ( 'before' )
370- # - Check $democlass::after_var
370+ # - Check $democlass::after_var (does not exist)
371371 @client . send_data ( @client . evaluate_request ( @client . next_seq_id , '$democlass::after_var' , 0 , 'repl' ) )
372372 expect ( @client ) . to receive_message_with_request_id_within_timeout ( [ @client . current_seq_id , 5 ] )
373373 result = @client . data_from_request_seq_id ( @client . current_seq_id )
374- expect ( result [ 'body' ] [ 'result' ] ) . to be_nil
374+ expect ( result [ 'message' ] ) . to eq ( 'Evaluation Error: Unknown variable: \'democlass::after_var\'. (line: 1, column: 1)' )
375375 # - Create $mid_var
376376 @client . send_data ( @client . evaluate_request ( @client . next_seq_id , '$mid_var = \'middle\'' , 0 , 'repl' ) )
377377 expect ( @client ) . to receive_message_with_request_id_within_timeout ( [ @client . current_seq_id , 5 ] )
0 commit comments