@@ -300,8 +300,8 @@ def modified_puppet_stack_trace
300
300
301
301
# Ensure the $a_test_string variable is set correctly
302
302
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
305
305
# Ensure the $a_test_array variable exists
306
306
obj = result [ 'body' ] [ 'variables' ] . find { |item | item [ 'name' ] == 'a_test_array' }
307
307
expect ( obj ) . to_not be nil
@@ -367,11 +367,11 @@ def modified_puppet_stack_trace
367
367
expect ( @client ) . to receive_message_with_request_id_within_timeout ( [ @client . current_seq_id , 5 ] )
368
368
result = @client . data_from_request_seq_id ( @client . current_seq_id )
369
369
expect ( result [ 'body' ] [ 'result' ] ) . to eq ( 'before' )
370
- # - Check $democlass::after_var
370
+ # - Check $democlass::after_var (does not exist)
371
371
@client . send_data ( @client . evaluate_request ( @client . next_seq_id , '$democlass::after_var' , 0 , 'repl' ) )
372
372
expect ( @client ) . to receive_message_with_request_id_within_timeout ( [ @client . current_seq_id , 5 ] )
373
373
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)' )
375
375
# - Create $mid_var
376
376
@client . send_data ( @client . evaluate_request ( @client . next_seq_id , '$mid_var = \'middle\'' , 0 , 'repl' ) )
377
377
expect ( @client ) . to receive_message_with_request_id_within_timeout ( [ @client . current_seq_id , 5 ] )
0 commit comments