Fix failing test cases from PR 464

See https://github.com/spring-projects/sts4/pull/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.
This commit is contained in:
Kris De Volder
2020-05-21 12:14:48 -07:00
parent c01a99f3eb
commit 7ba9c07bc6

View File

@@ -315,6 +315,8 @@ public class ConcourseEditorTest {
, // ==============
"put: <*>"
, // ==============
"set_pipeline: <*>"
, // ==============
"task: <*>"
, // ==============
"try:\n" +
@@ -357,7 +359,7 @@ public class ConcourseEditorTest {
" - try:\n" +
" put: test-logs\n" +
" - set_pipeline: configure-the-pipeline\n" +
" file: my-repo/ci/pipeline.yml\n"
" file: my-repo/ci/pipeline.yml\n"
);
editor.assertHoverContains("get", "Fetches a resource");
@@ -399,11 +401,11 @@ public class ConcourseEditorTest {
" plan:\n" +
" - get: my-repo\n" +
" - set_pipeline: configure-the-pipeline\n" +
" file: my-repo/ci/pipeline.yml\n" +
" file: my-repo/ci/pipeline.yml\n" +
" var_files:\n" +
" - my-repo/ci/dev.yml\n" +
" vars:\n" +
" text: \"Hello World!\"\n"
" - my-repo/ci/dev.yml\n" +
" vars:\n" +
" text: \"Hello World!\"\n"
);
editor.assertHoverContains("file", "The path to the pipeline's configuration file.");
@@ -4197,6 +4199,7 @@ public class ConcourseEditorTest {
"- get",
"- in_parallel",
"- put",
"- set_pipeline",
"- task",
"- try",
"- aggregate",