Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ public void testPluginWithVerbose() throws Exception {
"Elasticsearch Version: " + Version.CURRENT.toString(),
"Java Version: 1.8",
"Native Controller: false",
"Licensed: false",
"Type: isolated",
"Extended Plugins: []",
" * Classname: org.fake"
Expand All @@ -177,6 +178,7 @@ public void testPluginWithNativeController() throws Exception {
"Elasticsearch Version: " + Version.CURRENT.toString(),
"Java Version: 1.8",
"Native Controller: true",
"Licensed: false",
"Type: isolated",
"Extended Plugins: []",
" * Classname: org.fake"
Expand All @@ -201,6 +203,7 @@ public void testPluginWithVerboseMultiplePlugins() throws Exception {
"Elasticsearch Version: " + Version.CURRENT.toString(),
"Java Version: 1.8",
"Native Controller: false",
"Licensed: false",
"Type: isolated",
"Extended Plugins: []",
" * Classname: org.fake",
Expand All @@ -212,6 +215,7 @@ public void testPluginWithVerboseMultiplePlugins() throws Exception {
"Elasticsearch Version: " + Version.CURRENT.toString(),
"Java Version: 1.8",
"Native Controller: false",
"Licensed: false",
"Type: isolated",
"Extended Plugins: []",
" * Classname: org.fake2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,7 @@ public String getJavaOpts() {
}

/**
* Whether a license must be accepted before this plugin can be installed.
*
* @return {@code true} if a license must be accepted.
* Whether this plugin is subject to the Elastic License.
*/
public boolean isLicensed() {
return isLicensed;
Expand All @@ -379,6 +377,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
builder.field("classname", classname);
builder.field("extended_plugins", extendedPlugins);
builder.field("has_native_controller", hasNativeController);
builder.field("licensed", isLicensed);
builder.field("type", type);
if (type == PluginType.BOOTSTRAP) {
builder.field("java_opts", javaOpts);
Expand Down Expand Up @@ -422,6 +421,7 @@ public String toString(String prefix) {
.append(prefix).append("Elasticsearch Version: ").append(elasticsearchVersion).append("\n")
.append(prefix).append("Java Version: ").append(javaVersion).append("\n")
.append(prefix).append("Native Controller: ").append(hasNativeController).append("\n")
.append(prefix).append("Licensed: ").append(isLicensed).append("\n")
.append(prefix).append("Type: ").append(type).append("\n");

if (type == PluginType.BOOTSTRAP) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ public void testToXContent() throws IOException {
+ " \"classname\": \"_plugin_class\","
+ " \"extended_plugins\": [],"
+ " \"has_native_controller\": false,"
+ " \"licensed\": false,"
+ " \"type\": \"isolated\""
+ " }"
+ " ],"
Expand Down