Skip to content

Commit 7ba9c07

Browse files
committed
Fix failing test cases from PR 464
See #464 Problems found: - issues with formatting of the test case examples. Spaces vs tabs issues and weird indentation of the examples causing problems for editor to parse examples. - added 'set_pipeline' step caused some other tests fail because they should correctly expect this as a valid completion, but tests had not been updated to reflect that.
1 parent c01a99f commit 7ba9c07

File tree

1 file changed

+8
-5
lines changed
  • headless-services/concourse-language-server/src/test/java/org/springframework/ide/vscode/concourse

1 file changed

+8
-5
lines changed

headless-services/concourse-language-server/src/test/java/org/springframework/ide/vscode/concourse/ConcourseEditorTest.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,8 @@ public void primaryStepCompletions() throws Exception {
315315
, // ==============
316316
"put: <*>"
317317
, // ==============
318+
"set_pipeline: <*>"
319+
, // ==============
318320
"task: <*>"
319321
, // ==============
320322
"try:\n" +
@@ -357,7 +359,7 @@ public void primaryStepHovers() throws Exception {
357359
" - try:\n" +
358360
" put: test-logs\n" +
359361
" - set_pipeline: configure-the-pipeline\n" +
360-
" file: my-repo/ci/pipeline.yml\n"
362+
" file: my-repo/ci/pipeline.yml\n"
361363
);
362364

363365
editor.assertHoverContains("get", "Fetches a resource");
@@ -399,11 +401,11 @@ public void setPipelineStepHovers() throws Exception {
399401
" plan:\n" +
400402
" - get: my-repo\n" +
401403
" - set_pipeline: configure-the-pipeline\n" +
402-
" file: my-repo/ci/pipeline.yml\n" +
404+
" file: my-repo/ci/pipeline.yml\n" +
403405
" var_files:\n" +
404-
" - my-repo/ci/dev.yml\n" +
405-
" vars:\n" +
406-
" text: \"Hello World!\"\n"
406+
" - my-repo/ci/dev.yml\n" +
407+
" vars:\n" +
408+
" text: \"Hello World!\"\n"
407409
);
408410

409411
editor.assertHoverContains("file", "The path to the pipeline's configuration file.");
@@ -4197,6 +4199,7 @@ public void taskWithYamlParams() throws Exception {
41974199
"- get",
41984200
"- in_parallel",
41994201
"- put",
4202+
"- set_pipeline",
42004203
"- task",
42014204
"- try",
42024205
"- aggregate",

0 commit comments

Comments
 (0)