-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add support for _license related API's #2034
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
Conversation
- License.LoadFromDisk(path) - Backported elasticsearch node improvements from master branch - Added bat file generations for the various clusters, allows you to manually start one of our test clusters with the right settings - Make sure tests that inherit ApiTestBase directly do not use a "real" client in `mixed` testing mode - Validate license information on startup, if this fails all tests fails. From the commandline we always start a fresh cluster so the trial license'll stay valid. If you manually start a node with no license but you have ES_LICENSE_FILE pointing to a license file we will try and register that.
|
||
var exceptionMessageStart = "Server has license plugin installed, "; | ||
var licenseFile = Environment.GetEnvironmentVariable("ES_LICENSE_FILE", EnvironmentVariableTarget.Machine); | ||
if (!string.IsNullOrWhiteSpace(licenseFile)) |
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.
Should we also check for existence of the license here and continue if it isn't there?
One minor comment, otherwise LGTM 👍 |
Actually, nevermind my comment. I think it makes sense to throw the FileNotFound exception if ES_LICENSE_FILE is set. |
* authenticate * clear cached realms * roles * clear cached roles * delete role(s) * put role * get role(s) * user * delete user(s) * put user * get user(s) This also adds support for any request to be able to specify the `es-shield-runas-user` http header though the `RunAs` property on `RequestConfiguration` The OIS version of requests now directly exposes `RequestConfiguration`
86bb34b
to
d39b47e
Compare
Manually cherry-picked to 2.x and master |
manually start one of our test clusters with the right settings
client in
mixed
testing modefails. From the commandline we always start a fresh cluster so the
trial license'll stay valid. If you manually start a node with no
license but you have
ES_LICENSE_FILE
pointing to a license file we willtry and register that.