OpenSearch/plugins/discovery-ec2
David Pilato a38bcc5d62 [test] plugins simple RestIT tests don't work from IDE
When running a RestIT test from the IDE, you actually start an internal node which does not automatically load the plugin you would like to test.

We need to add:

```java
    @Override
    protected Collection<Class<? extends Plugin>> nodePlugins() {
        return pluginList(PLUGIN_HERE.class);
    }
```

Everything works fine when running from maven because each test basically:

* installs elasticsearch
* installs one plugin
* starts elasticsearch with this plugin loaded
* runs the test

Note that this PR only fixes the fact we run an internal cluster with the expected plugin.

Cloud tests will still fail when run from the IDE because is such a case you actually start an internal node with many mock plugins.
And REST test suite for cloud plugins basically checks if the plugin is running by checking the output of NodesInfo API.

And we check:

```yml
- match:  { nodes.$master.plugins.0.name: cloud-azure  }
- match:  { nodes.$master.plugins.0.jvm: true  }
```

But in that case, this condition is certainly false as we started also `mock-transport-service`, `mock-index-store`, `mock-engine-factory`, `node-mocks`, `asserting-local-transport`, `mock-search-service`.

Closes #13479
2015-09-15 10:10:05 +02:00
..
licenses [plugin] split cloud-aws in repository-s3 and discovery-ec2 2015-09-03 11:12:20 +02:00
rest-api-spec/test/discovery_ec2 [plugin] split cloud-aws in repository-s3 and discovery-ec2 2015-09-03 11:12:20 +02:00
src [test] plugins simple RestIT tests don't work from IDE 2015-09-15 10:10:05 +02:00
LICENSE.txt [plugin] split cloud-aws in repository-s3 and discovery-ec2 2015-09-03 11:12:20 +02:00
NOTICE.txt [plugin] split cloud-aws in repository-s3 and discovery-ec2 2015-09-03 11:12:20 +02:00
pom.xml Add xlint ignores for warning classes, where appropriate. 2015-09-09 12:47:07 -07:00