From eca4fc01a9930a5371512948fbbff984949d62c1 Mon Sep 17 00:00:00 2001 From: jordanbreen28 Date: Thu, 15 May 2025 14:27:31 +0100 Subject: [PATCH] (maint) - Fix nightlies --- .../integration/puppet-debugserver/end_to_end_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/debugserver/integration/puppet-debugserver/end_to_end_spec.rb b/spec/debugserver/integration/puppet-debugserver/end_to_end_spec.rb index 23632f17..e3b3b64c 100644 --- a/spec/debugserver/integration/puppet-debugserver/end_to_end_spec.rb +++ b/spec/debugserver/integration/puppet-debugserver/end_to_end_spec.rb @@ -300,8 +300,8 @@ def modified_puppet_stack_trace # Ensure the $a_test_string variable is set correctly expect(result['body']['variables'].find { |item| item['name'] == 'a_test_string'}).to include('value' => 'This is a string') - # Ensure the core fact, in the global scope, exists 'operatingsystem' - expect(result['body']['variables'].find { |item| item['name'] == 'operatingsystem'}).to_not be nil + # Ensure the core fact, in the global scope, exists 'os' + expect(result['body']['variables'].find { |item| item['name'] == 'os'}).to_not be nil # Ensure the $a_test_array variable exists obj = result['body']['variables'].find { |item| item['name'] == 'a_test_array'} expect(obj).to_not be nil @@ -367,11 +367,11 @@ def modified_puppet_stack_trace expect(@client).to receive_message_with_request_id_within_timeout([@client.current_seq_id, 5]) result = @client.data_from_request_seq_id(@client.current_seq_id) expect(result['body']['result']).to eq('before') - # - Check $democlass::after_var + # - Check $democlass::after_var (does not exist) @client.send_data(@client.evaluate_request(@client.next_seq_id, '$democlass::after_var', 0, 'repl')) expect(@client).to receive_message_with_request_id_within_timeout([@client.current_seq_id, 5]) result = @client.data_from_request_seq_id(@client.current_seq_id) - expect(result['body']['result']).to be_nil + expect(result['message']).to eq('Evaluation Error: Unknown variable: \'democlass::after_var\'. (line: 1, column: 1)') # - Create $mid_var @client.send_data(@client.evaluate_request(@client.next_seq_id, '$mid_var = \'middle\'', 0, 'repl')) expect(@client).to receive_message_with_request_id_within_timeout([@client.current_seq_id, 5])