|
25 | 25 | # Format range | X | - | - |
|
26 | 26 | # OnType Formatting | X | - | - |
|
27 | 27 | # Document Symbols | X | - | - |
|
28 |
| -# Workspace Symbols | - | | | |
| 28 | +# Workspace Symbols | - | | X | |
29 | 29 |
|
30 | 30 | describe 'End to End Testing' do
|
31 | 31 | before(:each) do
|
@@ -321,10 +321,23 @@ def path_to_uri(path)
|
321 | 321 | @client.send_data(@client.puppetfile_getdependencies_request(@client.next_seq_id, puppetfile_uri))
|
322 | 322 | expect(@client).to receive_message_with_request_id_within_timeout([@client.current_seq_id, 10])
|
323 | 323 | result = @client.data_from_request_seq_id(@client.current_seq_id)
|
324 |
| - # Expect something to be returned |
325 |
| - expect(result['result']).not_to be_nil |
326 |
| - expect(result['result']['dependencies']).not_to be_nil |
327 |
| - expect(result['result']['dependencies']).not_to be_empty |
| 324 | + # Expect something to be returned |
| 325 | + expect(result['result']).not_to be_nil |
| 326 | + expect(result['result']['dependencies']).not_to be_nil |
| 327 | + expect(result['result']['dependencies']).not_to be_empty |
| 328 | + |
| 329 | + # Workspace Symbols |
| 330 | + @client.send_data(@client.workspace_symbols_request(@client.next_seq_id, '')) |
| 331 | + expect(@client).to receive_message_with_request_id_within_timeout([@client.current_seq_id, 15]) |
| 332 | + result = @client.data_from_request_seq_id(@client.current_seq_id) |
| 333 | + # Expect something to be returned |
| 334 | + expect(result['result']).not_to be_nil |
| 335 | + # Should contain the default puppet user class |
| 336 | + index = result['result'].find { |item| item['name'] == 'user' && item['kind'] == 6 } |
| 337 | + expect(index).not_to be_nil |
| 338 | + # Should contain a profile from the control-repo |
| 339 | + index = result['result'].find { |item| item['name'] == 'profile::editorservices' && item['kind'] == 5 } |
| 340 | + expect(index).not_to be_nil |
328 | 341 |
|
329 | 342 | # Start shutdown process
|
330 | 343 | @client.clear_messages!
|
|
0 commit comments