Add support for 'verbose' in...

... CF resource 'source' in Concourse Editor.

See: https://github.com/spring-projects/sts4/issues/330
This commit is contained in:
Kris De Volder
2019-07-23 14:36:45 -07:00
parent 5b3f951a11
commit e7d166cd10
3 changed files with 12 additions and 4 deletions

View File

@@ -731,6 +731,7 @@ public class PipelineYmlSchema implements YamlSchema {
addProp(source, "organization", t_ne_string).isRequired(true);
addProp(source, "space", t_ne_string).isRequired(true);
addProp(source, "skip_cert_check", t_boolean);
addProp(source, "verbose", t_boolean);
source.require(Constraints.together("username", "password"));
source.require(Constraints.together("client_id", "client_secret"));

View File

@@ -0,0 +1,2 @@
*Optional*. Invoke `cf` cli using `CF_TRACE=true` to print all API calls made to Cloud Foundry.

View File

@@ -4417,7 +4417,8 @@ public class ConcourseEditorTest {
"client_secret: <*>",
"password: <*>",
"skip_cert_check: <*>",
"username: <*>"
"username: <*>",
"verbose: <*>"
);
}
@@ -4523,11 +4524,13 @@ public class ConcourseEditorTest {
" space: my-space\n" +
" username: ((secret))\n" +
" password: ((secret))\n" +
" skip_cert_check: not-bool"
" skip_cert_check: not-bool-1\n" +
" verbose: not-bool-2"
);
editor.assertProblems(
"pws|Unused",
"not-bool|boolean"
"not-bool-1|boolean",
"not-bool-2|boolean"
);
}
@@ -4544,7 +4547,8 @@ public class ConcourseEditorTest {
" client_secret: ((cf_client_secret))\n" +
" organization: {{cf_org}}\n" +
" space: {{cf_space}}\n" +
" skip_cert_check: true<*>"
" skip_cert_check: true<*>\n" +
" verbose: true"
);
editor.assertHoverContains("api", "address of the Cloud Controller");
editor.assertHoverContains("username", "username used to authenticate");
@@ -4554,6 +4558,7 @@ public class ConcourseEditorTest {
editor.assertHoverContains("organization", "organization to push");
editor.assertHoverContains("space", "space to push");
editor.assertHoverContains("skip_cert_check", "Check the validity of the CF SSL cert");
editor.assertHoverContains("verbose", "Invoke `cf` cli using `CF_TRACE=true`");
}
@Test public void cfPutParamsHovers() throws Exception {