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
Install all plugins during bats tests #13076
Conversation
This only installs and removes that plugins using the plugin script - it doesn't try to run elasticsearch with them all installed. I'm not sure vagrant the vagrant tests are the appropriate place to do that since they are ostensibly repeated once per target OS. |
Ping @tlrx for more fun bats code to review. This one has a symlink! |
@@ -0,0 +1 @@ | |||
plugin_test_cases.bash |
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.
This is a symlink but its hard to read in github's ui.
@brwe , this is one of the in flight bats changes. |
@spinscale, want to review some packaging tests? |
Needed to use |
I thought that was the default. I can certainly do that though. |
Same here, otherwise vagrant tries to use libvirt or something. |
wat? The default for vagrant for forever was virtualbox. Anyway, #13217. |
@nik9000 It should be the default, but somehow because I use lxc in other contexts it seems to be sticking around somewhere. I even ran with |
|
I've added the 2.0.0 label to this to make it clear that this is going to the 2.0 branch. I'll need to merge #13223 before I can merge this to the 2.0 branch but I'll get it before closing this pr. |
@tlrx, would you mind reviewing this on its own? I think it might be ok and its worth getting in if we can. |
#!/usr/bin/env bats | ||
|
||
# This file is used to test the installation and removal | ||
# of plugins with a tar gz archive. |
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.
Not only tar gz archive now
Thanks! I'll read these and fix. |
CONF_DIR="$ESCONFIG" remove_jvm_example | ||
} | ||
|
||
@test "[$GROUP] install jvm-example plugin with a custom ES_JAVA_OPTS" { |
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.
There's good chance that this test becomes obsolete soon with #12801... I'm +1 for removing it now
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.
It looks like it just won't work with that in there. I can drop the test.
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.
++
I like these changes, great work @nik9000 ! I read carefully the bats files and I made some minor comments. Tests succeed on my laptop for precise, trusty and centos-7 (still have to remove the elasticsearch-rpm dependency to get them work). Please let me know if you want me to test a specific VM. The last and most important thing I see is that for now the test installs a plugin, check for files and remove the plugin. That would be nice to start elasticsearch with the installed plugin and checks that it started correctly and that the plugin is referenced in Nodes Info API... What do you think? |
Those vms are fine.
Yeah - we probably should do it. I think that should be in another pr though. |
Sounds good. Can you create an issue please? |
LGTM then |
In that case I'll squash, rebase, and merge. |
54aafdc
to
e441048
Compare
Packaging: Install all plugins during bats tests
Did that in #13255. |
And merged to 2.0! Yay! All done. |
Related to #12717