Make fetch parameter in git-resource deprecated

See discussion here: 
 - https://github.com/concourse/git-resource/issues/118
 - https://www.pivotaltracker.com/story/show/150640930
This commit is contained in:
Kris De Volder
2017-08-29 09:25:41 -07:00
parent c30e6d558a
commit b1ae19d9c6
2 changed files with 6 additions and 5 deletions

View File

@@ -1162,11 +1162,11 @@ public class ConcourseEditorTest {
,
"disable_git_lfs: <*>"
,
"fetch:\n" +
" - <*>"
,
"submodules:\n"+
" <*>"
,
"fetch:\n" + // Deprecated, so not suggested
" - <*>"
);
assertContextualCompletions(context,
"disable_git_lfs: <*>"
@@ -3911,7 +3911,8 @@ public class ConcourseEditorTest {
" fetch: [master]\n" +
" submodules: none\n"
);
editor.assertProblems(/*NONE*/);
Diagnostic p = editor.assertProblems("fetch|Deprecated").get(0);
assertEquals(DiagnosticSeverity.Warning, p.getSeverity());
}
@Test public void bug_150337510() throws Exception {