Add test for completions in GitResourceSource
This commit is contained in:
@@ -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" +
|
||||
|
||||
Reference in New Issue
Block a user