Skip to content

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

Closed
wants to merge 3 commits into from

Conversation

Mpdreamz
Copy link
Member

  • 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.

- 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))
Copy link
Contributor

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?

@gmarz
Copy link
Contributor

gmarz commented Apr 14, 2016

One minor comment, otherwise LGTM 👍

@gmarz
Copy link
Contributor

gmarz commented Apr 14, 2016

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`
@Mpdreamz Mpdreamz force-pushed the feature/graph-api branch from 86bb34b to d39b47e Compare April 20, 2016 17:54
@Mpdreamz
Copy link
Member Author

Manually cherry-picked to 2.x and master

@Mpdreamz Mpdreamz closed this Apr 22, 2016
@gmarz gmarz deleted the feature/license-api branch April 29, 2016 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants