Add test for completions in GitResourceSource

This commit is contained in:
Kris De Volder
2017-01-18 16:33:40 -08:00
parent eef84c37c3
commit 65c25b271c

View File

@@ -639,7 +639,7 @@ public class PipelineYamlEditorTest {
);
}
@Test public void reconcileGitResourceSource() throws Exception {
@Test public void gitResourceSourceReconcile() throws Exception {
Editor editor = harness.newEditor(
"resources:\n" +
"- name: sts4-out\n" +
@@ -675,6 +675,51 @@ public class PipelineYamlEditorTest {
);
}
@Test public void gitResourceSourceCompletions() throws Exception {
assertContextualCompletions(
"resources:\n" +
"- name: the-repo\n" +
" type: git\n" +
" source:\n" +
" <*>"
, //================
"<*>"
, // ==>
"branch: <*>"
,
"commit_verification_key_ids:\n" +
" - <*>"
,
"commit_verification_keys:\n" +
" - <*>"
,
"disable_ci_skip: <*>"
,
"git_config:\n" +
" - <*>"
,
"gpg_keyserver: <*>"
,
"ignore_paths:\n" +
" - <*>"
,
"password: <*>"
,
"paths:\n" +
" - <*>"
,
"private_key: <*>"
,
"skip_ssl_verification: <*>"
,
"tag_filter: <*>"
,
"uri: <*>"
,
"username: <*>"
);
}
@Test public void gitResourceSourceHovers() throws Exception {
Editor editor = harness.newEditor(
"resources:\n" +