-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature/extensions] Read from extensions.yml #3381
[Feature/extensions] Read from extensions.yml #3381
Conversation
Signed-off-by: Ryan Bogan <rbogan@amazon.com>
…rchestrator to read from extensions.yml Signed-off-by: Ryan Bogan <rbogan@amazon.com>
Signed-off-by: Ryan Bogan <rbogan@amazon.com>
Signed-off-by: Ryan Bogan <rbogan@amazon.com>
server/build.gradle
Outdated
@@ -76,6 +76,7 @@ if (!isEclipse) { | |||
} | |||
} | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Remove extra line
@@ -93,6 +98,32 @@ private void extensionsDiscovery() throws IOException { | |||
for (final Path plugin : PluginsService.findPluginDirs(extensionsPath)) { | |||
try { | |||
PluginInfo pluginInfo = PluginInfo.readFromProperties(plugin); | |||
|
|||
// TODO: Add unit tests for commented section below |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have an issue for unit tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's my next task. I'll create one once I merge this PR
|
||
assertNotNull(extensions); | ||
assertEquals("firstExtension", extensions.getExtensions().get(0).getName()); | ||
assertEquals("9301", extensions.getExtensions().get(1).getPort()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add more assert statements for hostName
, hostAddress
, version
and the reset
Signed-off-by: Ryan Bogan <rbogan@amazon.com>
Server tests are expected to fail due to #2772 |
Signed-off-by: Ryan Bogan <rbogan@amazon.com>
Signed-off-by: Ryan Bogan <rbogan@amazon.com>
Description
Adds method and structure to read from extensions.yml file
Issues Resolved
3084
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.